Home
last modified time | relevance | path

Searched refs:Bytecode (Results 1 – 25 of 63) sorted by relevance

123

/external/v8/src/interpreter/
Dbytecodes.cc61 const char* Bytecodes::ToString(Bytecode bytecode) { in ToString()
64 case Bytecode::k##Name: \ in ToString()
74 std::string Bytecodes::ToString(Bytecode bytecode, OperandScale operand_scale) { in ToString()
79 Bytecode prefix_bytecode = OperandScaleToPrefixBytecode(operand_scale); in ToString()
88 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) { in GetDebugBreak()
90 if (bytecode == Bytecode::kWide) { in GetDebugBreak()
91 return Bytecode::kDebugBreakWide; in GetDebugBreak()
93 if (bytecode == Bytecode::kExtraWide) { in GetDebugBreak()
94 return Bytecode::kDebugBreakExtraWide; in GetDebugBreak()
98 if (bytecode_size == Size(Bytecode::k##Name, OperandScale::kSingle)) { \ in GetDebugBreak()
[all …]
Dmkpeephole.cc33 std::string BytecodeName(Bytecode bytecode) { in BytecodeName()
40 static_cast<size_t>(Bytecode::kLast) + 1;
59 PeepholeActionAndData LookupActionAndData(Bytecode last, Bytecode current);
60 void BuildRow(Bytecode last, Row* row);
81 Bytecode last, Bytecode current) { in LookupActionAndData()
84 if (current == Bytecode::kToName && Bytecodes::PutsNameInAccumulator(last)) { in LookupActionAndData()
85 return {PeepholeAction::kChangeBytecodeAction, Bytecode::kStar}; in LookupActionAndData()
90 if (last == Bytecode::kNop) { in LookupActionAndData()
92 return {PeepholeAction::kElideLastBeforeJumpAction, Bytecode::kIllegal}; in LookupActionAndData()
94 return {PeepholeAction::kElideLastAction, Bytecode::kIllegal}; in LookupActionAndData()
[all …]
Dbytecodes.h396 enum class Bytecode : uint8_t { enum
413 static const char* ToString(Bytecode bytecode);
416 static std::string ToString(Bytecode bytecode, OperandScale operand_scale);
419 static uint8_t ToByte(Bytecode bytecode) { in ToByte()
420 DCHECK_LE(bytecode, Bytecode::kLast); in ToByte()
425 static Bytecode FromByte(uint8_t value) { in FromByte()
426 Bytecode bytecode = static_cast<Bytecode>(value); in FromByte()
427 DCHECK(bytecode <= Bytecode::kLast); in FromByte()
433 static Bytecode OperandScaleToPrefixBytecode(OperandScale operand_scale) { in OperandScaleToPrefixBytecode()
436 return Bytecode::kExtraWide; in OperandScaleToPrefixBytecode()
[all …]
Dbytecode-array-writer.cc105 DCHECK_NE(node->bytecode(), Bytecode::kIllegal); in EmitBytecode()
107 Bytecode bytecode = node->bytecode(); in EmitBytecode()
111 Bytecode prefix = Bytecodes::OperandScaleToPrefixBytecode(operand_scale); in EmitBytecode()
149 Bytecode GetJumpWithConstantOperand(Bytecode jump_bytecode) { in GetJumpWithConstantOperand()
151 case Bytecode::kJump: in GetJumpWithConstantOperand()
152 return Bytecode::kJumpConstant; in GetJumpWithConstantOperand()
153 case Bytecode::kJumpIfTrue: in GetJumpWithConstantOperand()
154 return Bytecode::kJumpIfTrueConstant; in GetJumpWithConstantOperand()
155 case Bytecode::kJumpIfFalse: in GetJumpWithConstantOperand()
156 return Bytecode::kJumpIfFalseConstant; in GetJumpWithConstantOperand()
[all …]
Dbytecode-pipeline.h137 INLINE(BytecodeNode(Bytecode bytecode, in NON_EXPORTED_BASE()
146 INLINE(BytecodeNode(Bytecode bytecode, uint32_t operand0, in NON_EXPORTED_BASE()
156 INLINE(BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1, in NON_EXPORTED_BASE()
167 INLINE(BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1, in NON_EXPORTED_BASE()
180 INLINE(BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1, in NON_EXPORTED_BASE()
198 return Create<Bytecode::k##Name, __VA_ARGS__>(source_info, operands...); \ in NON_EXPORTED_BASE()
204 void replace_bytecode(Bytecode bytecode) { in NON_EXPORTED_BASE()
217 void Transform(Bytecode new_bytecode, uint32_t extra_operand) { in NON_EXPORTED_BASE()
236 Bytecode bytecode() const { return bytecode_; } in NON_EXPORTED_BASE()
256 template <Bytecode bytecode, AccumulatorUse accumulator_use, in NON_EXPORTED_BASE()
[all …]
Dbytecode-dead-code-optimizer.cc29 case Bytecode::kReturn: in Write()
30 case Bytecode::kThrow: in Write()
31 case Bytecode::kReThrow: in Write()
50 case Bytecode::kJump: in WriteJump()
51 case Bytecode::kJumpConstant: in WriteJump()
Dbytecode-peephole-optimizer.cc73 return last_.bytecode() != Bytecode::kIllegal; in LastIsValid()
80 DCHECK(node->bytecode() != Bytecode::kNop || node->source_info().is_valid()); in SetLast()
121 Bytecode new_bytecode, BytecodeNode* const last, in TransformLdaSmiBinaryOpToBinaryOpWithSmi()
123 DCHECK_EQ(last->bytecode(), Bytecode::kLdaSmi); in TransformLdaSmiBinaryOpToBinaryOpWithSmi()
133 Bytecode new_bytecode, BytecodeNode* const last, in TransformLdaZeroBinaryOpToBinaryOpWithZero()
135 DCHECK_EQ(last->bytecode(), Bytecode::kLdaZero); in TransformLdaZeroBinaryOpToBinaryOpWithZero()
144 BytecodeNode TransformEqualityWithNullOrUndefined(Bytecode new_bytecode, in TransformEqualityWithNullOrUndefined()
147 DCHECK((last->bytecode() == Bytecode::kLdaNull) || in TransformEqualityWithNullOrUndefined()
148 (last->bytecode() == Bytecode::kLdaUndefined)); in TransformEqualityWithNullOrUndefined()
149 DCHECK((current->bytecode() == Bytecode::kTestEqual) || in TransformEqualityWithNullOrUndefined()
[all …]
Dinterpreter.h50 Code* GetBytecodeHandler(Bytecode bytecode, OperandScale operand_scale);
83 void InstallBytecodeHandler(Zone* zone, Bytecode bytecode,
167 uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const;
170 static size_t GetDispatchTableIndex(Bytecode bytecode,
178 static const int kNumberOfBytecodes = static_cast<int>(Bytecode::kLast) + 1;
Dbytecode-peephole-table.h51 Bytecode bytecode;
58 static const PeepholeActionAndData* Lookup(Bytecode last, Bytecode current);
62 static_cast<size_t>(Bytecode::kLast) + 1;
Dbytecode-array-accessor.cc32 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in UpdateOperandScale()
48 Bytecode BytecodeArrayAccessor::current_bytecode() const { in current_bytecode()
52 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in current_bytecode()
179 Bytecode bytecode = current_bytecode(); in GetJumpTargetOffset()
182 if (bytecode == Bytecode::kJumpLoop) { in GetJumpTargetOffset()
/external/v8/src/debug/
Ddebug-evaluate.cc329 bool BytecodeHasNoSideEffect(interpreter::Bytecode bytecode) { in BytecodeHasNoSideEffect()
330 typedef interpreter::Bytecode Bytecode; in BytecodeHasNoSideEffect() typedef
340 case Bytecode::kLdaLookupSlot: in BytecodeHasNoSideEffect()
341 case Bytecode::kLdaGlobal: in BytecodeHasNoSideEffect()
342 case Bytecode::kLdaNamedProperty: in BytecodeHasNoSideEffect()
343 case Bytecode::kLdaKeyedProperty: in BytecodeHasNoSideEffect()
345 case Bytecode::kAdd: in BytecodeHasNoSideEffect()
346 case Bytecode::kAddSmi: in BytecodeHasNoSideEffect()
347 case Bytecode::kSub: in BytecodeHasNoSideEffect()
348 case Bytecode::kSubSmi: in BytecodeHasNoSideEffect()
[all …]
/external/javassist/src/main/javassist/
DCtField.java813 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 …]
DCtNewWrappedMethod.java44 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()
DCtNewMethod.java231 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()
DCtNewWrappedConstructor.java37 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()
DCtMethod.java285 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()
DCtNewConstructor.java141 Bytecode code = new Bytecode(cp, 1, 1); in defaultConstructor()
151 code.add(Bytecode.RETURN); in defaultConstructor()
/external/javassist/src/main/javassist/compiler/
DAccessorMaker.java61 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()
DJavac.java27 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()
DProceedHandler.java18 import javassist.bytecode.Bytecode;
28 void doit(JvstCodeGen gen, Bytecode b, ASTList args) throws CompileError; in doit()
/external/javassist/src/main/javassist/convert/
DTransformBefore.java83 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/
DAnalyzerTest.java12 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()
DScannerTest.java11 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/
DProxyFactory.java860 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/v8/src/compiler/
Dbytecode-analysis.cc97 void UpdateInLiveness(Bytecode bytecode, BytecodeLivenessState& in_liveness, in UpdateInLiveness()
178 void UpdateOutLiveness(Bytecode bytecode, BytecodeLivenessState& out_liveness, in UpdateOutLiveness()
214 void UpdateAssignments(Bytecode bytecode, BytecodeLoopAssignments& assignments, in UpdateAssignments()
252 Bytecode bytecode = iterator.current_bytecode(); in Analyze()
255 if (bytecode == Bytecode::kJumpLoop) { in Analyze()
349 DCHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpLoop); in Analyze()
368 Bytecode bytecode = iterator.current_bytecode(); in Analyze()
505 Bytecode bytecode = iterator.current_bytecode(); in LivenessIsValid()
516 if (bytecode == Bytecode::kJumpLoop) { in LivenessIsValid()
575 if (forward_iterator.current_bytecode() == Bytecode::kJumpLoop) { in LivenessIsValid()
[all …]

123