Home
last modified time | relevance | path

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

123

/external/v8/src/interpreter/
Dbytecodes.cc98 const char* Bytecodes::ToString(Bytecode bytecode) { in ToString()
101 case Bytecode::k##Name: \ in ToString()
110 std::string Bytecodes::ToString(Bytecode bytecode, OperandScale operand_scale) { in ToString()
115 Bytecode prefix_bytecode = OperandScaleToPrefixBytecode(operand_scale); in ToString()
124 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) { in GetDebugBreak()
126 if (bytecode == Bytecode::kWide) { in GetDebugBreak()
127 return Bytecode::kDebugBreakWide; in GetDebugBreak()
129 if (bytecode == Bytecode::kExtraWide) { in GetDebugBreak()
130 return Bytecode::kDebugBreakExtraWide; in GetDebugBreak()
134 if (bytecode_size == Size(Bytecode::k##Name, OperandScale::kSingle)) { \ in GetDebugBreak()
[all …]
Dbytecodes.h449 enum class Bytecode : uint8_t { enum
466 static const int kBytecodeCount = static_cast<int>(Bytecode::kLast) + 1;
469 static const char* ToString(Bytecode bytecode);
472 static std::string ToString(Bytecode bytecode, OperandScale operand_scale);
475 static uint8_t ToByte(Bytecode bytecode) { in ToByte()
476 DCHECK_LE(bytecode, Bytecode::kLast); in ToByte()
481 static Bytecode FromByte(uint8_t value) { in FromByte()
482 Bytecode bytecode = static_cast<Bytecode>(value); in FromByte()
483 DCHECK_LE(bytecode, Bytecode::kLast); in FromByte()
489 static Bytecode OperandScaleToPrefixBytecode(OperandScale operand_scale) { in OperandScaleToPrefixBytecode()
[all …]
Dbytecode-array-writer.cc31 last_bytecode_(Bytecode::kIllegal), in BytecodeArrayWriter()
153 void BytecodeArrayWriter::UpdateExitSeenInBlock(Bytecode bytecode) { in UpdateExitSeenInBlock()
155 case Bytecode::kReturn: in UpdateExitSeenInBlock()
156 case Bytecode::kThrow: in UpdateExitSeenInBlock()
157 case Bytecode::kReThrow: in UpdateExitSeenInBlock()
158 case Bytecode::kAbort: in UpdateExitSeenInBlock()
159 case Bytecode::kJump: in UpdateExitSeenInBlock()
160 case Bytecode::kJumpConstant: in UpdateExitSeenInBlock()
161 case Bytecode::kSuspendGenerator: in UpdateExitSeenInBlock()
169 void BytecodeArrayWriter::MaybeElideLastBytecode(Bytecode next_bytecode, in MaybeElideLastBytecode()
[all …]
Dbytecode-node.h21 V8_INLINE BytecodeNode(Bytecode bytecode,
30 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
40 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
52 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
65 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
80 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
100 return Create<Bytecode::k##Name, __VA_ARGS__>(source_info, operands...); \
108 Bytecode bytecode() const { return bytecode_; } in bytecode()
130 template <Bytecode bytecode, AccumulatorUse accumulator_use,
134 V8_INLINE BytecodeNode(Bytecode bytecode, int operand_count,
[all …]
Dinterpreter.h54 Code* GetAndMaybeDeserializeBytecodeHandler(Bytecode bytecode,
58 Code* GetBytecodeHandler(Bytecode bytecode, OperandScale operand_scale);
61 void SetBytecodeHandler(Bytecode bytecode, OperandScale operand_scale,
87 uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const;
90 static size_t GetDispatchTableIndex(Bytecode bytecode,
95 static const int kNumberOfBytecodes = static_cast<int>(Bytecode::kLast) + 1;
Dinterpreter.cc54 static const int kBytecodeCount = static_cast<int>(Bytecode::kLast) + 1; in Interpreter()
63 Bytecode bytecode, OperandScale operand_scale) { in GetAndMaybeDeserializeBytecodeHandler()
82 Code* Interpreter::GetBytecodeHandler(Bytecode bytecode, in GetBytecodeHandler()
91 void Interpreter::SetBytecodeHandler(Bytecode bytecode, in SetBytecodeHandler()
100 size_t Interpreter::GetDispatchTableIndex(Bytecode bytecode, in GetDispatchTableIndex()
239 if (dispatch_table_[Bytecodes::ToByte(Bytecode::k##Name)] == \ in LookupNameOfBytecodeHandler()
249 uintptr_t Interpreter::GetDispatchCounter(Bytecode from, Bytecode to) const { in GetDispatchCounter()
274 Bytecode from_bytecode = Bytecodes::FromByte(from_index); in GetDispatchCountersObject()
278 Bytecode to_bytecode = Bytecodes::FromByte(to_index); in GetDispatchCountersObject()
Dbytecode-array-accessor.cc35 interpreter::Bytecode bytecode = in ApplyDebugBreak()
38 interpreter::Bytecode debugbreak = in ApplyDebugBreak()
47 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in UpdateOperandScale()
63 Bytecode BytecodeArrayAccessor::current_bytecode() const { in current_bytecode()
67 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in current_bytecode()
210 Bytecode bytecode = current_bytecode(); in GetJumpTargetOffset()
213 if (bytecode == Bytecode::kJumpLoop) { in GetJumpTargetOffset()
229 if (current_bytecode() == Bytecode::kSwitchOnGeneratorState) { in GetJumpTableTargetOffsets()
234 DCHECK_EQ(current_bytecode(), Bytecode::kSwitchOnSmiNoFeedback); in GetJumpTableTargetOffsets()
Dbytecode-array-writer.h53 2 * sizeof(Bytecode) +
75 void UpdateExitSeenInBlock(Bytecode bytecode);
77 void MaybeElideLastBytecode(Bytecode next_bytecode, bool has_source_info);
93 Bytecode last_bytecode_;
Dsetup-interpreter-internal.cc18 void PrintBuiltinSize(Bytecode bytecode, OperandScale operand_scale, in PrintBuiltinSize()
45 Bytecode::k##Name, operand_scale); in InstallBytecodeHandlers()
52 Bytecode::kIllegal, OperandScale::kSingle); in InstallBytecodeHandlers()
78 Bytecode bytecode, in InstallBytecodeHandler()
Dbytecode-register-optimizer.h65 template <Bytecode bytecode, AccumulatorUse accumulator_use> in NON_EXPORTED_BASE()
68 bytecode == Bytecode::kDebugger || in NON_EXPORTED_BASE()
69 bytecode == Bytecode::kSuspendGenerator || in NON_EXPORTED_BASE()
70 bytecode == Bytecode::kResumeGenerator) { in NON_EXPORTED_BASE()
Dinterpreter-generator.cc39 Bytecode bytecode, OperandScale scale) \
50 Name##Assembler assembler(state, Bytecode::k##Name, scale); \
152 InterpreterLoadGlobalAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterLoadGlobalAssembler()
324 Bytecode bytecode, in InterpreterLookupContextSlotAssembler()
376 InterpreterLookupGlobalAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterLookupGlobalAssembler()
540 Bytecode bytecode, in InterpreterStoreNamedPropertyAssembler()
769 InterpreterBinaryOpAssembler(CodeAssemblerState* state, Bytecode bytecode, in InterpreterBinaryOpAssembler()
896 Bytecode bytecode, in InterpreterBitwiseBinaryOpAssembler()
1121 UnaryNumericOpAssembler(CodeAssemblerState* state, Bytecode bytecode, in UnaryNumericOpAssembler()
1225 explicit NegateAssemblerImpl(CodeAssemblerState* state, Bytecode bytecode, in NegateAssemblerImpl()
[all …]
Dinterpreter-generator.h15 extern Handle<Code> GenerateBytecodeHandler(Isolate* isolate, Bytecode bytecode,
Dsetup-interpreter.h25 Bytecode bytecode,
/external/v8/src/debug/
Ddebug-evaluate.cc423 bool BytecodeHasNoSideEffect(interpreter::Bytecode bytecode) { in BytecodeHasNoSideEffect()
424 typedef interpreter::Bytecode Bytecode; in BytecodeHasNoSideEffect() typedef
433 case Bytecode::kLdaLookupSlot: in BytecodeHasNoSideEffect()
434 case Bytecode::kLdaGlobal: in BytecodeHasNoSideEffect()
435 case Bytecode::kLdaNamedProperty: in BytecodeHasNoSideEffect()
436 case Bytecode::kLdaKeyedProperty: in BytecodeHasNoSideEffect()
437 case Bytecode::kLdaGlobalInsideTypeof: in BytecodeHasNoSideEffect()
438 case Bytecode::kLdaLookupSlotInsideTypeof: in BytecodeHasNoSideEffect()
440 case Bytecode::kAdd: in BytecodeHasNoSideEffect()
441 case Bytecode::kAddSmi: in BytecodeHasNoSideEffect()
[all …]
/external/v8/src/compiler/
Dbytecode-analysis.cc15 using interpreter::Bytecode;
95 void UpdateInLiveness(Bytecode bytecode, BytecodeLivenessState& in_liveness, in UpdateInLiveness()
101 if (bytecode == Bytecode::kSuspendGenerator) { in UpdateInLiveness()
109 if (bytecode == Bytecode::kResumeGenerator) { in UpdateInLiveness()
203 void UpdateOutLiveness(Bytecode bytecode, BytecodeLivenessState& out_liveness, in UpdateOutLiveness()
211 if (bytecode == Bytecode::kSuspendGenerator || in UpdateOutLiveness()
212 bytecode == Bytecode::kResumeGenerator) { in UpdateOutLiveness()
263 void UpdateLiveness(Bytecode bytecode, BytecodeLiveness& liveness, in UpdateLiveness()
275 void UpdateAssignments(Bytecode bytecode, BytecodeLoopAssignments& assignments, in UpdateAssignments()
321 Bytecode bytecode = iterator.current_bytecode(); in Analyze()
[all …]
/external/v8/src/snapshot/
Dbuiltin-snapshot-utils.h18 using Bytecode = interpreter::Bytecode; variable
42 static int BytecodeToIndex(Bytecode bytecode, OperandScale operand_scale);
46 static std::pair<Bytecode, OperandScale> BytecodeFromIndex(int index);
50 static void ForEachBytecode(std::function<void(Bytecode, OperandScale)> f);
Dbuiltin-deserializer.h22 using Bytecode = interpreter::Bytecode; variable
43 Code* DeserializeHandler(Bytecode bytecode, OperandScale operand_scale);
52 Code* DeserializeHandlerRaw(Bytecode bytecode, OperandScale operand_scale);
Dbuiltin-snapshot-utils.cc23 int BuiltinSnapshotUtils::BytecodeToIndex(Bytecode bytecode, in BytecodeToIndex()
36 std::pair<interpreter::Bytecode, interpreter::OperandScale>
41 Bytecode bytecode = Bytecodes::FromByte(x % Bytecodes::kBytecodeCount); in BytecodeFromIndex()
52 std::function<void(Bytecode, OperandScale)> f) { in ForEachBytecode() argument
Dbuiltin-deserializer-allocator.h26 using Bytecode = interpreter::Bytecode; variable
101 void ReserveForHandler(Bytecode bytecode, OperandScale operand_scale);
118 const Heap::Chunk& chunk, interpreter::Bytecode bytecode,
Dbuiltin-deserializer.cc95 BSU::ForEachBytecode([=](Bytecode bytecode, OperandScale operand_scale) { in DeserializeEagerBuiltinsAndHandlers()
113 Bytecode::kIllegal, OperandScale::kSingle); in DeserializeEagerBuiltinsAndHandlers()
115 BSU::ForEachBytecode([=](Bytecode bytecode, OperandScale operand_scale) { in DeserializeEagerBuiltinsAndHandlers()
138 Code* BuiltinDeserializer::DeserializeHandler(Bytecode bytecode, in DeserializeHandler()
175 Code* BuiltinDeserializer::DeserializeHandlerRaw(Bytecode bytecode, in DeserializeHandlerRaw()
Dbuiltin-serializer.cc14 using interpreter::Bytecode;
40 BSU::ForEachBytecode([=](Bytecode bytecode, OperandScale operand_scale) { in SerializeBuiltinsAndHandlers()
135 void BuiltinSerializer::SetHandlerOffset(Bytecode bytecode, in SetHandlerOffset()
Dbuiltin-deserializer-allocator.cc97 [=, &result](Bytecode bytecode, OperandScale operand_scale) { in CreateReservationsForEagerBuiltinsAndHandlers()
134 const Heap::Chunk& chunk, interpreter::Bytecode bytecode, in InitializeHandlerFromReservation()
190 [=, &reservation_index](Bytecode bytecode, OperandScale operand_scale) { in InitializeFromReservations()
240 Bytecode bytecode, OperandScale operand_scale) { in ReserveForHandler()
/external/v8/src/runtime/
Druntime-interpreter.cc32 using interpreter::Bytecode; in RUNTIME_FUNCTION()
36 Bytecode bytecode = Bytecodes::FromByte(bytecode_int); in RUNTIME_FUNCTION()
73 interpreter::Bytecode bytecode = bytecode_iterator.current_bytecode(); in PrintRegisters()
/external/python/setuptools/setuptools/
Ddepends.py7 from .py33compat import Bytecode
159 for byte_code in Bytecode(code):
/external/python/cpython3/Lib/test/
Dtest_dis.py1060 b = dis.Bytecode(obj)
1063 self.assertRaises(TypeError, dis.Bytecode, object())
1068 via_object = list(dis.Bytecode(obj))
1073 actual = dis.Bytecode(outer, first_line=expected_outer_line)
1078 actual = dis.Bytecode(simple).dis()
1083 actual = dis.Bytecode(simple, first_line=350).dis()
1090 b = dis.Bytecode(x)
1094 actual = dis.Bytecode(_f).dis()
1099 b = dis.Bytecode.from_traceback(tb)
1106 b = dis.Bytecode.from_traceback(tb)

123