/external/v8/src/interpreter/ |
D | bytecode-array-builder.cc | 22 MUST_USE_RESULT Bytecode GetBytecode() const { in GetBytecode() 32 Bytecode bytecode = GetBytecode(); in GetOperand() 164 void BytecodeArrayBuilder::Output(Bytecode bytecode, uint32_t(&operands)[N]) { in Output() 191 void BytecodeArrayBuilder::Output(Bytecode bytecode, uint32_t operand0, in Output() 199 void BytecodeArrayBuilder::Output(Bytecode bytecode, uint32_t operand0, in Output() 206 void BytecodeArrayBuilder::Output(Bytecode bytecode, uint32_t operand0, in Output() 213 void BytecodeArrayBuilder::Output(Bytecode bytecode, uint32_t operand0) { in Output() 219 void BytecodeArrayBuilder::Output(Bytecode bytecode) { in Output() 253 Output(Bytecode::kLogicalNot); in LogicalNot() 259 Output(Bytecode::kTypeOf); in TypeOf() [all …]
|
D | bytecodes.cc | 16 const char* Bytecodes::ToString(Bytecode bytecode) { in ToString() 19 case Bytecode::k##Name: \ in ToString() 59 uint8_t Bytecodes::ToByte(Bytecode bytecode) { in ToByte() 65 Bytecode Bytecodes::FromByte(uint8_t value) { in FromByte() 66 Bytecode bytecode = static_cast<Bytecode>(value); in FromByte() 67 DCHECK(bytecode <= Bytecode::kLast); in FromByte() 73 int Bytecodes::Size(Bytecode bytecode) { in Size() 74 DCHECK(bytecode <= Bytecode::kLast); in Size() 77 case Bytecode::k##Name: \ in Size() 88 int Bytecodes::NumberOfOperands(Bytecode bytecode) { in NumberOfOperands() [all …]
|
D | bytecode-array-builder.h | 245 static Bytecode BytecodeForBinaryOperation(Token::Value op); 246 static Bytecode BytecodeForCountOperation(Token::Value op); 247 static Bytecode BytecodeForCompareOperation(Token::Value op); 248 static Bytecode BytecodeForWideOperands(Bytecode bytecode); 249 static Bytecode BytecodeForLoadIC(LanguageMode language_mode); 250 static Bytecode BytecodeForKeyedLoadIC(LanguageMode language_mode); 251 static Bytecode BytecodeForStoreIC(LanguageMode language_mode); 252 static Bytecode BytecodeForKeyedStoreIC(LanguageMode language_mode); 253 static Bytecode BytecodeForLoadGlobal(LanguageMode language_mode, 255 static Bytecode BytecodeForStoreGlobal(LanguageMode language_mode); [all …]
|
D | bytecodes.h | 255 enum class Bytecode : uint8_t { enum 335 static const char* ToString(Bytecode bytecode); 344 static uint8_t ToByte(Bytecode bytecode); 347 static Bytecode FromByte(uint8_t value); 350 static int NumberOfOperands(Bytecode bytecode); 353 static OperandType GetOperandType(Bytecode bytecode, int i); 356 static OperandSize GetOperandSize(Bytecode bytecode, int i); 360 static int GetOperandOffset(Bytecode bytecode, int i); 363 static int Size(Bytecode bytecode); 370 static bool IsConditionalJumpImmediate(Bytecode bytecode); [all …]
|
/external/javassist/src/main/javassist/ |
D | CtField.java | 813 abstract int compile(CtClass type, String name, Bytecode code, in compile() 819 Bytecode code, Javac drv) throws CannotCompileException; in compileIfStatic() 829 int compile(CtClass type, String name, Bytecode code, in compile() 836 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile() 844 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() 849 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic() 929 int compile(CtClass type, String name, Bytecode code, in compile() 937 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile() 973 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() 994 int compile(CtClass type, String name, Bytecode code, in compile() [all …]
|
D | CtNewWrappedMethod.java | 44 Bytecode code = makeBody(declaring, declaring.getClassFile2(), body, in wrapped() 50 static Bytecode makeBody(CtClass clazz, ClassFile classfile, in makeBody() 58 Bytecode code = new Bytecode(classfile.getConstPool(), 0, 0); in makeBody() 73 Bytecode code) in makeBody0() 111 code.addInvokestatic(Bytecode.THIS, bodyname, desc); in makeBody0() 113 code.addInvokespecial(Bytecode.THIS, bodyname, desc); in makeBody0() 171 static int compileParameterList(Bytecode code, in compileParameterList() 179 private static void compileReturn(Bytecode code, CtClass type) { in compileReturn() 193 code.addOpcode(Bytecode.ARETURN); in compileReturn()
|
D | CtNewMethod.java | 231 Bytecode code = new Bytecode(cp, 2, 1); in getter() 236 code.addGetfield(Bytecode.THIS, fieldName, fieldType); in getter() 239 code.addGetstatic(Bytecode.THIS, fieldName, fieldType); in getter() 272 Bytecode code = new Bytecode(cp, 3, 3); in setter() 278 code.addPutfield(Bytecode.THIS, fieldName, fieldType); in setter() 282 code.addPutstatic(Bytecode.THIS, fieldName, fieldType); in setter() 342 Bytecode code = new Bytecode(cp, 0, 0); in delegator0()
|
D | CtNewWrappedConstructor.java | 37 Bytecode code = makeBody(declaring, declaring.getClassFile2(), in wrapped() 48 protected static Bytecode makeBody(CtClass declaring, ClassFile classfile, in makeBody() 58 Bytecode code = new Bytecode(classfile.getConstPool(), 0, 0); in makeBody() 89 code.add(Bytecode.RETURN); in makeBody()
|
D | CtMethod.java | 285 Bytecode code = CtNewWrappedMethod.makeBody(clazz, in setWrappedBody() 341 int compile(Bytecode code) throws CannotCompileException { in compile() 380 int compile(Bytecode code) throws CannotCompileException { in compile() 401 int compile(Bytecode code) throws CannotCompileException { in compile() 422 int compile(Bytecode code) throws CannotCompileException { in compile()
|
D | CtNewConstructor.java | 141 Bytecode code = new Bytecode(cp, 1, 1); in defaultConstructor() 151 code.add(Bytecode.RETURN); in defaultConstructor()
|
D | CtBehavior.java | 401 Bytecode b = jv.compileBody(this, src); in setBody() 706 Bytecode b = jv.getBytecode(); in insertBefore() 770 Bytecode b = new Bytecode(pool, 0, retAddr + 1); in insertAfter() 826 private void insertAfterAdvice(Bytecode code, Javac jv, String src, in insertAfterAdvice() 878 private int insertAfterHandler(boolean asFinally, Bytecode b, in insertAfterHandler() 1011 Bytecode b = new Bytecode(cp, ca.getMaxStack(), ca.getMaxLocals()); in addCatch() 1126 Bytecode b = jv.getBytecode(); in insertAt()
|
/external/v8/test/unittests/interpreter/ |
D | bytecode-array-iterator-unittest.cc | 56 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaConstant); in TEST_F() 61 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaConstant); in TEST_F() 66 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaZero); in TEST_F() 70 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaSmi8); in TEST_F() 75 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaConstant); in TEST_F() 80 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdar); in TEST_F() 85 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLoadICSloppy); in TEST_F() 92 CHECK_EQ(iterator.current_bytecode(), Bytecode::kStar); in TEST_F() 97 CHECK_EQ(iterator.current_bytecode(), Bytecode::kCallRuntime); in TEST_F() 105 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); in TEST_F()
|
D | bytecode-array-builder-unittest.cc | 290 std::vector<int> scorecard(Bytecodes::ToByte(Bytecode::kLast) + 1); in TEST_F() 291 Bytecode final_bytecode = Bytecode::kLdaZero; in TEST_F() 301 CHECK_EQ(final_bytecode, Bytecode::kReturn); in TEST_F() 306 CHECK_GE(scorecard[Bytecodes::ToByte(Bytecode::k##Name)], 1); in TEST_F() 458 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJump); in TEST_F() 465 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpIfTrue); in TEST_F() 472 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpIfFalse); in TEST_F() 479 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpIfToBooleanTrue); in TEST_F() 486 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpIfToBooleanFalse); in TEST_F() 491 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpConstant); in TEST_F() [all …]
|
/external/javassist/src/main/javassist/compiler/ |
D | AccessorMaker.java | 61 Bytecode code = new Bytecode(cp); in getConstructor() 121 Bytecode code = new Bytecode(cp); in getMethodAccessor() 173 Bytecode code = new Bytecode(cp); in getFieldGetter() 175 code.addGetstatic(Bytecode.THIS, fieldName, fieldType); in getFieldGetter() 179 code.addGetfield(Bytecode.THIS, fieldName, fieldType); in getFieldGetter() 224 Bytecode code = new Bytecode(cp); in getFieldSetter() 228 code.addPutstatic(Bytecode.THIS, fieldName, fieldType); in getFieldSetter() 234 code.addPutfield(Bytecode.THIS, fieldName, fieldType); in getFieldSetter()
|
D | Javac.java | 27 import javassist.bytecode.Bytecode; 39 private Bytecode bytecode; 52 this(new Bytecode(thisClass.getClassFile2().getConstPool(), 0, 0), in Javac() 64 public Javac(Bytecode b, CtClass thisClass) { in Javac() 73 public Bytecode getBytecode() { return bytecode; } in getBytecode() 190 public Bytecode compileBody(CtBehavior method, String src) in compileBody() 232 private static void makeDefaultBody(Bytecode b, CtClass type) { in makeDefaultBody() 439 public void doit(JvstCodeGen gen, Bytecode b, ASTList args) in recordProceed() 483 public void doit(JvstCodeGen gen, Bytecode b, ASTList args) in recordStaticProceed() 529 public void doit(JvstCodeGen gen, Bytecode b, ASTList args) in recordSpecialProceed()
|
D | ProceedHandler.java | 18 import javassist.bytecode.Bytecode; 28 void doit(JvstCodeGen gen, Bytecode b, ASTList args) throws CompileError; in doit()
|
D | JvstCodeGen.java | 44 public JvstCodeGen(Bytecode b, CtClass cc, ClassPool cp) { in JvstCodeGen() 142 protected void atAssignParamList(CtClass[] params, Bytecode code) in atAssignParamList() 604 public static int compileParameterList(Bytecode code, in compileParameterList() 617 code.addOpcode(Bytecode.DUP); // dup in compileParameterList() 623 code.addOpcode(Bytecode.DUP); // dup in compileParameterList() 636 code.addOpcode(Bytecode.AASTORE); // aastore in compileParameterList() 643 protected void compileUnwrapValue(CtClass type, Bytecode code) in compileUnwrapValue()
|
/external/v8/test/unittests/compiler/ |
D | interpreter-assembler-unittest.cc | 21 const interpreter::Bytecode kBytecodes[] = { 22 #define DEFINE_BYTECODE(Name, ...) interpreter::Bytecode::k##Name, 185 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 225 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 267 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 308 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 335 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 379 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 409 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() 423 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { in TARGET_TEST_F() [all …]
|
/external/javassist/src/main/javassist/convert/ |
D | TransformBefore.java | 83 Bytecode save = new Bytecode(cp, 0, 0); in makeCode() 84 Bytecode load = new Bytecode(cp, 0, 0); in makeCode() 96 private void makeCode2(Bytecode save, Bytecode load, in makeCode2()
|
/external/javassist/src/test/test/javassist/bytecode/analysis/ |
D | AnalyzerTest.java | 12 import javassist.bytecode.Bytecode; 142 private static void addJump(Bytecode code, int opcode, int pos) { in addJump() 202 Bytecode code = new Bytecode(info.getConstPool(), 1, 2); in generateDeadCode() 222 Bytecode code = new Bytecode(info.getConstPool(), 1, 2); in generateInvalidCode() 239 Bytecode code = new Bytecode(info.getConstPool(), 1, 2); in generateCodeFalloff() 254 Bytecode code = new Bytecode(info.getConstPool(), 1, 2); in generateJsrMerge() 278 Bytecode code = new Bytecode(info.getConstPool(), 1, 2); in generateJsrMerge2()
|
D | ScannerTest.java | 11 import javassist.bytecode.Bytecode; 111 Bytecode code = new Bytecode(info.getConstPool(), 2, 9); in generate() 180 private static void addJump(Bytecode code, int opcode, int pos) { in addJump()
|
/external/javassist/src/main/javassist/util/proxy/ |
D | ProxyFactory.java | 860 Bytecode code = new Bytecode(cp, 0, 0); in addMethodsHolder() 867 code.addOpcode(Bytecode.RETURN); in addMethodsHolder() 878 Bytecode code = new Bytecode(cp, 2, 2); in addSetter() 882 code.addOpcode(Bytecode.RETURN); in addSetter() 893 Bytecode code = new Bytecode(cp, 1, 1); in addGetter() 896 code.addOpcode(Bytecode.ARETURN); in addGetter() 1061 Bytecode code = new Bytecode(cp, 0, 0); in makeConstructor() 1105 Bytecode code = new Bytecode(cp, 0, 0); in makeDelegator() 1128 Bytecode code = new Bytecode(cp, 0, args + 2); in makeForwarder() 1192 private static int addLoadParameters(Bytecode code, Class[] params, in addLoadParameters() [all …]
|
/external/javassist/src/main/javassist/expr/ |
D | Expr.java | 27 import javassist.bytecode.Bytecode; 233 int regno, Bytecode bytecode) { in storeStack() 242 Bytecode bytecode) { in storeStack0() 289 protected void replace0(int pos, Bytecode bytecode, int size) in replace0()
|
D | FieldAccess.java | 195 Bytecode bytecode = jc.getBytecode(); in replace() 236 public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args) in doit() 284 public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args) in doit()
|
/external/v8/src/compiler/ |
D | bytecode-branch-analysis.cc | 60 interpreter::Bytecode bytecode = iterator.current_bytecode(); in Analyze() 79 DCHECK_EQ(bytecode, interpreter::Bytecode::kReturn); in Analyze()
|