Searched defs:sources (Results 1 - 20 of 20) sorted by relevance

/dalvik/dx/src/com/android/dx/ssa/
H A DRegisterMapper.java45 * @param sources old register list
48 public final RegisterSpecList map(RegisterSpecList sources) { argument
49 int sz = sources.size();
53 newSources.set(i, map(sources.get(i)));
58 // Return the old sources if nothing has changed.
59 return newSources.equals(sources) ? sources : newSources;
H A DPhiInsn.java47 private RegisterSpecList sources; field in class:PhiInsn
81 * Updates the TypeBearers of all the sources (phi operands) to be
98 sources = null;
132 // Un-cache sources, in case someone has already called getSources().
133 sources = null;
178 * Gets sources. Constructed lazily from phi operand data structures and
181 * @return {@code non-null;} sources list
184 if (sources != null) {
185 return sources;
194 sources
[all...]
/dalvik/dx/src/com/android/dx/rop/code/
H A DConservativeTranslationAdvice.java44 RegisterSpecList sources) {
43 requiresSourcesInOrder(Rop opcode, RegisterSpecList sources) argument
H A DCstInsn.java35 * @param sources {@code non-null;} specs for all the sources
39 RegisterSpecList sources, Constant cst) {
40 super(opcode, position, result, sources);
38 CstInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, Constant cst) argument
H A DTranslationAdvice.java31 * The instruction associated must have exactly two sources.
43 * Returns true if the translation target requires the sources of the
47 * @param sources {@code non-null;} source list
48 * @return {@code true} iff the target requires the sources to be
51 public boolean requiresSourcesInOrder(Rop opcode, RegisterSpecList sources); argument
H A DDexTranslationAdvice.java38 * instruction that requires its sources to be in order and contiguous.
92 RegisterSpecList sources) {
95 && totalRopWidth(sources) >= MIN_INVOKE_IN_ORDER;
101 * @param sources {@code non-null;} list of SSA registers
104 private int totalRopWidth(RegisterSpecList sources) { argument
105 int sz = sources.size();
109 total += sources.get(i).getCategory();
91 requiresSourcesInOrder(Rop opcode, RegisterSpecList sources) argument
H A DPlainCstInsn.java36 * @param sources {@code non-null;} specs for all the sources
40 RegisterSpec result, RegisterSpecList sources,
42 super(opcode, position, result, sources, cst);
79 RegisterSpecList sources) {
83 sources,
39 PlainCstInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, Constant cst) argument
78 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
H A DPlainInsn.java37 * @param sources {@code non-null;} specs for all the sources
40 RegisterSpec result, RegisterSpecList sources) {
41 super(opcode, position, result, sources);
99 RegisterSpecList sources = getSources();
100 int szSources = sources.size();
106 TypeBearer lastType = sources.get(szSources - 1).getTypeBearer();
114 RegisterSpecList newSources = sources.withoutLast();
133 RegisterSpecList sources) {
137 sources);
39 PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources) argument
132 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
[all...]
H A DFillArrayDataInsn.java47 * @param sources {@code non-null;} specs for all the sources
52 RegisterSpecList sources,
55 super(opcode, position, null, sources);
111 RegisterSpecList sources) {
114 sources, initValues, arrayType);
51 FillArrayDataInsn(Rop opcode, SourcePosition position, RegisterSpecList sources, ArrayList<Constant> initValues, Constant cst) argument
110 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
H A DSwitchInsn.java38 * @param sources {@code non-null;} specs for all the sources
42 RegisterSpecList sources, IntList cases) {
43 super(opcode, position, result, sources);
103 RegisterSpecList sources) {
107 sources,
41 SwitchInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, IntList cases) argument
102 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
H A DThrowingCstInsn.java37 * @param sources {@code non-null;} specs for all the sources
42 RegisterSpecList sources,
44 super(opcode, position, null, sources, cst);
96 RegisterSpecList sources) {
99 sources,
41 ThrowingCstInsn(Rop opcode, SourcePosition position, RegisterSpecList sources, TypeList catches, Constant cst) argument
95 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
H A DThrowingInsn.java59 * @param sources {@code non-null;} specs for all the sources
63 RegisterSpecList sources,
65 super(opcode, position, null, sources);
114 RegisterSpecList sources) {
117 sources,
62 ThrowingInsn(Rop opcode, SourcePosition position, RegisterSpecList sources, TypeList catches) argument
113 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
H A DRop.java61 /** {@code non-null;} types of all the sources of this operation */
62 private final TypeList sources; field in class:Rop
86 * @param sources {@code non-null;} types of all the sources of this operation
94 public Rop(int opcode, Type result, TypeList sources, argument
101 if (sources == null) {
102 throw new NullPointerException("sources == null");
120 this.sources = sources;
134 * @param sources {
141 Rop(int opcode, Type result, TypeList sources, TypeList exceptions, int branchingness, String nickname) argument
159 Rop(int opcode, Type result, TypeList sources, int branchingness, String nickname) argument
176 Rop(int opcode, Type result, TypeList sources, String nickname) argument
194 Rop(int opcode, Type result, TypeList sources, TypeList exceptions, String nickname) argument
210 Rop(int opcode, TypeList sources, TypeList exceptions) argument
[all...]
H A DInsn.java29 * list of actual sources and result registers/values, and additional
42 /** {@code non-null;} specs for all the sources of this instruction */
43 private final RegisterSpecList sources; field in class:Insn
51 * @param sources {@code non-null;} specs for all the sources
54 RegisterSpecList sources) {
63 if (sources == null) {
64 throw new NullPointerException("sources == null");
70 this.sources = sources;
53 Insn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources) argument
297 withNewRegisters(RegisterSpec result, RegisterSpecList sources) argument
[all...]
H A DRops.java1107 * and sources. The result is typically, but not necessarily, a
1118 * @param sources {@code non-null;} list of source types
1122 public static Rop ropFor(int opcode, TypeBearer dest, TypeList sources, argument
1131 case RegOps.IF_EQ: return opIfEq(sources);
1132 case RegOps.IF_NE: return opIfNe(sources);
1133 case RegOps.IF_LT: return opIfLt(sources);
1134 case RegOps.IF_GE: return opIfGe(sources);
1135 case RegOps.IF_LE: return opIfLe(sources);
1136 case RegOps.IF_GT: return opIfGt(sources);
1138 case RegOps.ADD: return opAdd(sources);
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DDatagramChannel.java380 * @param sources
385 * {@code sources.length}.
389 * {@code sources.length - offset}.
408 public abstract long write(ByteBuffer[] sources, int offset, int length) argument
420 * @param sources
440 public synchronized final long write(ByteBuffer[] sources) argument
442 return write(sources, 0, sources.length);
H A DSocketChannel.java379 * sources[offset]}. The number of bytes actually written is returned.
384 * @param sources
404 * offset + length} is greater than the size of {@code sources}.
412 public abstract long write(ByteBuffer[] sources, int offset, int length) argument
418 * Calling this method is equivalent to calling {@code write(sources, 0,
419 * sources.length);}
421 * @param sources
439 public synchronized final long write(ByteBuffer[] sources) argument
441 return write(sources, 0, sources
[all...]
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
H A DDatagramChannelImpl.java574 public long write(ByteBuffer[] sources, int offset, int length) argument
577 || (long) length + (long) offset > sources.length) {
583 int count = calculateByteBufferArray(sources, offset, length);
589 ByteBuffer source = sources[val];
599 ByteBuffer source = sources[val];
708 private int calculateByteBufferArray(ByteBuffer[] sources, int offset, argument
712 sum += sources[val].remaining();
H A DSocketChannelImpl.java499 public long write(ByteBuffer[] sources, int offset, int length) argument
501 if (!isIndexValid(sources, offset, length)) {
506 int count = calculateByteBufferArray(sources, offset, length);
512 ByteBuffer source = sources[val];
522 ByteBuffer source = sources[val];
531 private int calculateByteBufferArray(ByteBuffer[] sources, int offset, argument
535 sum = sum + sources[val].remaining();
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DSocketChannelTest.java3584 // second parameter and sources.length as the third parameter.
4356 public long write(ByteBuffer[] sources, int offset, int length) argument
4360 // second parameter and sources.length as the third parameter.
4361 if (0 == offset && length == sources.length) {

Completed in 342 milliseconds