Home
last modified time | relevance | path

Searched refs:Bytecode (Results 1 - 25 of 47) sorted by relevance

12

/third_party/node/deps/v8/src/interpreter/
H A Dbytecodes.cc99 STATIC_ASSERT(Bytecode::k##Name >= Bytecode::kFirstShortStar && \
100 Bytecode::k##Name <= Bytecode::kLastShortStar);
105 const char* Bytecodes::ToString(Bytecode bytecode) { in ToString()
108 case Bytecode::k##Name: \ in ToString()
117 std::string Bytecodes::ToString(Bytecode bytecode, OperandScale operand_scale, in ToString()
121 Bytecode prefix_bytecode = OperandScaleToPrefixBytecode(operand_scale); in ToString()
130 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecod
[all...]
H A Dbytecodes.h545 enum class Bytecode : uint8_t { class
564 static const int kBytecodeCount = static_cast<int>(Bytecode::kLast) + 1;
567 static_cast<int>(Bytecode::kLastShortStar) -
568 static_cast<int>(Bytecode::kFirstShortStar) + 1;
571 static const char* ToString(Bytecode bytecode);
575 static std::string ToString(Bytecode bytecode, OperandScale operand_scale,
579 static uint8_t ToByte(Bytecode bytecode) { in ToByte()
580 DCHECK_LE(bytecode, Bytecode::kLast); in ToByte()
585 static Bytecode FromByte(uint8_t value) { in FromByte()
586 Bytecode bytecod in FromByte()
[all...]
H A Dbytecode-array-writer.cc32 last_bytecode_(Bytecode::kIllegal), in BytecodeArrayWriter()
133 DCHECK_EQ(node->bytecode(), Bytecode::kJumpLoop); in WriteJumpLoop()
234 void BytecodeArrayWriter::UpdateExitSeenInBlock(Bytecode bytecode) { in UpdateExitSeenInBlock()
236 case Bytecode::kReturn: in UpdateExitSeenInBlock()
237 case Bytecode::kThrow: in UpdateExitSeenInBlock()
238 case Bytecode::kReThrow: in UpdateExitSeenInBlock()
239 case Bytecode::kAbort: in UpdateExitSeenInBlock()
240 case Bytecode::kJump: in UpdateExitSeenInBlock()
241 case Bytecode::kJumpLoop: in UpdateExitSeenInBlock()
242 case Bytecode in UpdateExitSeenInBlock()
[all...]
H A Dbytecode-register.h68 static constexpr Register FromShortStar(Bytecode bytecode) { in FromShortStar()
70 return Register(static_cast<int>(Bytecode::kStar0) - in FromShortStar()
74 const base::Optional<Bytecode> TryToShortStar() const { in TryToShortStar()
76 Bytecode bytecode = in TryToShortStar()
77 static_cast<Bytecode>(static_cast<int>(Bytecode::kStar0) - index()); in TryToShortStar()
78 DCHECK_GE(bytecode, Bytecode::kFirstShortStar); in TryToShortStar()
79 DCHECK_LE(bytecode, Bytecode::kLastShortStar); in TryToShortStar()
H A Dbytecode-node.h21 V8_INLINE BytecodeNode(Bytecode bytecode, in BytecodeNode()
30 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode()
40 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode()
52 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode()
65 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode()
80 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode()
100 return Create<Bytecode::k##Name, __VA_ARGS__>(source_info, operands...); \
108 Bytecode bytecode() const { return bytecode_; } in bytecode()
130 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use,
134 V8_INLINE BytecodeNode(Bytecode bytecod
[all...]
H A Dinterpreter.h65 V8_EXPORT_PRIVATE CodeT GetBytecodeHandler(Bytecode bytecode,
69 void SetBytecodeHandler(Bytecode bytecode, OperandScale operand_scale,
77 void ForEachBytecode(const std::function<void(Bytecode, OperandScale)>& f);
102 V8_EXPORT_PRIVATE uintptr_t GetDispatchCounter(Bytecode from,
103 Bytecode to) const;
106 static size_t GetDispatchTableIndex(Bytecode bytecode,
111 static const int kNumberOfBytecodes = static_cast<int>(Bytecode::kLast) + 1;
H A Dinterpreter.cc80 static const int kBytecodeCount = static_cast<int>(Bytecode::kLast) + 1; in InitDispatchCounters()
89 Builtin BuiltinIndexFromBytecode(Bytecode bytecode, in BuiltinIndexFromBytecode()
94 index = static_cast<int>(Bytecode::kFirstShortStar); in BuiltinIndexFromBytecode()
95 } else if (bytecode > Bytecode::kLastShortStar) { in BuiltinIndexFromBytecode()
118 CodeT Interpreter::GetBytecodeHandler(Bytecode bytecode, in GetBytecodeHandler()
124 void Interpreter::SetBytecodeHandler(Bytecode bytecode, in SetBytecodeHandler()
134 size_t Interpreter::GetDispatchTableIndex(Bytecode bytecode, in GetDispatchTableIndex()
224 std::cerr << "Bytecode mismatch"; in CheckAndPrintBytecodeMismatch()
245 FATAL("Bytecode mismatch at offset %d\n", first_mismatch); in CheckAndPrintBytecodeMismatch()
294 os << "Bytecode lengt in DoFinalizeJobImpl()
[all...]
H A Dbytecode-array-writer.h80 2 * sizeof(Bytecode) +
103 void UpdateExitSeenInBlock(Bytecode bytecode);
105 void MaybeElideLastBytecode(Bytecode next_bytecode, bool has_source_info);
123 Bytecode last_bytecode_;
H A Dbytecode-register-optimizer.h68 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use>
71 bytecode == Bytecode::kDebugger || in PrepareForBytecode()
72 bytecode == Bytecode::kSuspendGenerator || in PrepareForBytecode()
73 bytecode == Bytecode::kResumeGenerator) { in PrepareForBytecode()
H A Dbytecode-array-iterator.h88 inline Bytecode current_bytecode() const { in current_bytecode()
91 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in current_bytecode()
166 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in UpdateOperandScale()
H A Dbytecode-array-iterator.cc49 interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(*cursor); in ApplyDebugBreak()
51 interpreter::Bytecode debugbreak = in ApplyDebugBreak()
228 Bytecode bytecode = current_bytecode(); in GetRelativeJumpTargetOffset()
231 if (bytecode == Bytecode::kJumpLoop) { in GetRelativeJumpTargetOffset()
251 if (current_bytecode() == Bytecode::kSwitchOnGeneratorState) { in GetJumpTableTargetOffsets()
256 DCHECK_EQ(current_bytecode(), Bytecode::kSwitchOnSmiNoFeedback); in GetJumpTableTargetOffsets()
H A Dinterpreter-assembler.cc26 Bytecode bytecode, in InterpreterAssembler()
304 Bytecode::kFirstShortStar)))); in StoreRegisterForShortStar()
308 opcode, UintPtrConstant(static_cast<int>(Bytecode::kLastShortStar)))); in StoreRegisterForShortStar()
310 // Compute the constant that we can add to a Bytecode value to map the range in StoreRegisterForShortStar()
311 // [Bytecode::kStar15, Bytecode::kStar0] to the range in StoreRegisterForShortStar()
314 Register(0).ToOperand() - static_cast<int>(Bytecode::kStar0); in StoreRegisterForShortStar()
317 Register(1).ToOperand() - static_cast<int>(Bytecode::kStar1)); in StoreRegisterForShortStar()
712 bytecode_ == Bytecode::kInvokeIntrinsic); in CallJSAndDispatch()
741 bytecode_ == Bytecode in CallJSAndDispatch()
[all...]
H A Dinterpreter-generator.h21 Bytecode bytecode,
H A Dinterpreter-generator.cc45 Bytecode bytecode, OperandScale scale) \
57 Name##Assembler assembler(state, Bytecode::k##Name, scale); \
173 InterpreterLoadGlobalAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterLoadGlobalAssembler()
355 Bytecode bytecode, in InterpreterLookupContextSlotAssembler()
407 InterpreterLookupGlobalAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterLookupGlobalAssembler()
595 Bytecode bytecode, in InterpreterSetNamedPropertyAssembler()
869 InterpreterBinaryOpAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterBinaryOpAssembler()
999 Bytecode bytecode, in InterpreterBitwiseBinaryOpAssembler()
1358 InterpreterJSCallAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterJSCallAssembler()
1603 InterpreterCompareOpAssembler(CodeAssemblerState* state, Bytecode bytecod
[all...]
H A Dinterpreter-assembler.h22 InterpreterAssembler(compiler::CodeAssemblerState* state, Bytecode bytecode,
279 Bytecode bytecode() const { return bytecode_; } in bytecode()
420 Bytecode bytecode_;
H A Dbytecode-array-builder.cc133 Bytecode bytecode) { in CurrentSourcePosition()
199 base::Optional<Bytecode> short_code = reg.TryToShortStar(); in OutputStarRaw()
332 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use,
360 return BytecodeNodeBuilder<Bytecode::k##name, __VA_ARGS__>::Make( \
373 DCHECK(Bytecodes::IsForwardJump(Bytecode::k##name)); \
685 SetDeferredSourceInfo(CurrentSourcePosition(Bytecode::kLdar)); in LoadAccumulatorWithRegister()
698 SetDeferredSourceInfo(CurrentSourcePosition(Bytecode::kStar)); in StoreAccumulatorInRegister()
712 SetDeferredSourceInfo(CurrentSourcePosition(Bytecode::kMov)); in MoveRegister()
1602 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use>
/third_party/node/deps/v8/src/debug/
H A Ddebug-evaluate.cc424 bool BytecodeHasNoSideEffect(interpreter::Bytecode bytecode) { in BytecodeHasNoSideEffect()
425 using interpreter::Bytecode; in BytecodeHasNoSideEffect()
434 case Bytecode::kLdaLookupSlot: in BytecodeHasNoSideEffect()
435 case Bytecode::kLdaGlobal: in BytecodeHasNoSideEffect()
436 case Bytecode::kGetNamedProperty: in BytecodeHasNoSideEffect()
437 case Bytecode::kGetKeyedProperty: in BytecodeHasNoSideEffect()
438 case Bytecode::kLdaGlobalInsideTypeof: in BytecodeHasNoSideEffect()
439 case Bytecode::kLdaLookupSlotInsideTypeof: in BytecodeHasNoSideEffect()
440 case Bytecode::kGetIterator: in BytecodeHasNoSideEffect()
442 case Bytecode in BytecodeHasNoSideEffect()
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dbytecode-analysis.cc19 using interpreter::Bytecode;
105 template <Bytecode bytecode, OperandType operand_type, size_t i>
154 template <Bytecode bytecode, OperandType operand_type, size_t i>
192 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use,
198 if (bytecode == Bytecode::kSuspendGenerator) { in UpdateInLiveness()
206 if (bytecode == Bytecode::kResumeGenerator) { in UpdateInLiveness()
231 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use,
240 void UpdateInLiveness(Bytecode bytecode, BytecodeLivenessState* in_liveness, in UpdateInLiveness()
244 case Bytecode::k##Name: \ in UpdateInLiveness()
245 return UpdateInLiveness<Bytecode in UpdateInLiveness()
[all...]
/third_party/node/deps/v8/src/builtins/
H A Dgenerate-bytecodes-builtins-list.cc17 void WriteBytecode(std::ofstream& out, Bytecode bytecode, in WriteBytecode()
26 if (bytecode == Bytecode::kStar0) { in WriteBytecode()
32 << operand_scale << ", interpreter::Bytecode::k" in WriteBytecode()
61 WriteBytecode(out, Bytecode::k##Name, operand_scale, &count, offset_table, \ in WriteHeader()
83 << "// Mapping from Bytecode to a dense form with all the illegal\n" in WriteHeader()
H A Dbuiltins.cc41 interpreter::Bytecode bytecode : 8;
45 STATIC_ASSERT(sizeof(interpreter::Bytecode) == 1);
61 constexpr KindSpecificData(interpreter::Bytecode bytecode, in KindSpecificData()
76 #define DECL_BCH(Name, OperandScale, Bytecode) \
77 {#Name, Builtins::BCH, {Bytecode, OperandScale}},
354 interpreter::Bytecode bytecode = in EmitCodeCreateEvents()
H A Dsetup-builtins-internal.cc266 interpreter::Bytecode bytecode) { in GenerateBytecodeHandler()
324 #define BUILD_BCH(Name, OperandScale, Bytecode) \ in SetupBuiltinsInternal()
326 Bytecode); \ in SetupBuiltinsInternal()
/third_party/node/deps/v8/src/snapshot/
H A Dserializer-deserializer.h84 enum Bytecode : byte {
186 template <Bytecode kBytecode, int kMinValue, int kMaxValue,
207 template <Bytecode bytecode>
/third_party/node/deps/v8/src/maglev/
H A Dmaglev-graph-builder.h134 interpreter::Bytecode bytecode = iterator_.current_bytecode(); in EmitUnconditionalDeopt()
142 } else if (bytecode == interpreter::Bytecode::kJumpLoop) { in EmitUnconditionalDeopt()
183 case interpreter::Bytecode::k##name: \ in VisitSingleBytecode()
478 interpreter::Bytecode bytecode = iterator.current_bytecode(); in CalculatePredecessorCounts()
/third_party/node/deps/v8/src/baseline/
H A Dbaseline-compiler.cc438 case interpreter::Bytecode::kJumpLoop: in PreVisitSingleBytecode()
444 case interpreter::Bytecode::kCallProperty: in PreVisitSingleBytecode()
445 case interpreter::Bytecode::kCallAnyReceiver: in PreVisitSingleBytecode()
446 case interpreter::Bytecode::kCallWithSpread: in PreVisitSingleBytecode()
447 case interpreter::Bytecode::kConstruct: in PreVisitSingleBytecode()
448 case interpreter::Bytecode::kConstructWithSpread: in PreVisitSingleBytecode()
451 case interpreter::Bytecode::kCallUndefinedReceiver: in PreVisitSingleBytecode()
454 case interpreter::Bytecode::kCallProperty0: in PreVisitSingleBytecode()
455 case interpreter::Bytecode::kCallUndefinedReceiver0: in PreVisitSingleBytecode()
457 case interpreter::Bytecode in PreVisitSingleBytecode()
[all...]
/third_party/python/Lib/test/
H A Dtest_dis.py1670 b = dis.Bytecode(obj)
1673 self.assertRaises(TypeError, dis.Bytecode, object())
1678 via_object = list(dis.Bytecode(obj))
1683 actual = dis.Bytecode(outer, first_line=expected_outer_line)
1688 actual = dis.Bytecode(simple).dis()
1693 actual = dis.Bytecode(simple, first_line=350).dis()
1700 b = dis.Bytecode(x)
1704 actual = dis.Bytecode(_f).dis()
1709 b = dis.Bytecode.from_traceback(tb)
1717 b = dis.Bytecode
[all...]

Completed in 26 milliseconds

12