Home
last modified time | relevance | path

Searched refs:Bytecodes (Results 1 – 21 of 21) sorted by relevance

/external/v8/src/interpreter/
Dbytecode-array-accessor.cc32 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in UpdateOperandScale()
33 if (Bytecodes::IsPrefixScalingBytecode(current_bytecode)) { in UpdateOperandScale()
35 Bytecodes::PrefixBytecodeToOperandScale(current_bytecode); in UpdateOperandScale()
52 Bytecode current_bytecode = Bytecodes::FromByte(current_byte); in current_bytecode()
53 DCHECK(!Bytecodes::IsPrefixScalingBytecode(current_bytecode)); in current_bytecode()
59 Bytecodes::Size(current_bytecode(), current_operand_scale()); in current_bytecode_size()
65 DCHECK_LT(operand_index, Bytecodes::NumberOfOperands(current_bytecode())); in GetUnsignedOperand()
67 Bytecodes::GetOperandType(current_bytecode(), operand_index)); in GetUnsignedOperand()
68 DCHECK(Bytecodes::IsUnsignedOperandType(operand_type)); in GetUnsignedOperand()
72 Bytecodes::GetOperandOffset(current_bytecode(), operand_index, in GetUnsignedOperand()
[all …]
Dbytecode-pipeline.h143 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in NON_EXPORTED_BASE()
152 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in NON_EXPORTED_BASE()
162 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in NON_EXPORTED_BASE()
174 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in NON_EXPORTED_BASE()
187 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in NON_EXPORTED_BASE()
205 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode_), in NON_EXPORTED_BASE()
206 Bytecodes::NumberOfOperands(bytecode)); in NON_EXPORTED_BASE()
218 DCHECK_EQ(Bytecodes::NumberOfOperands(new_bytecode), in NON_EXPORTED_BASE()
219 Bytecodes::NumberOfOperands(bytecode()) + 1); in NON_EXPORTED_BASE()
220 DCHECK(Bytecodes::NumberOfOperands(bytecode()) < 1 || in NON_EXPORTED_BASE()
[all …]
Dbytecodes.cc17 const OperandType* const Bytecodes::kOperandTypes[] = {
23 const OperandTypeInfo* const Bytecodes::kOperandTypeInfos[] = {
29 const int Bytecodes::kOperandCount[] = {
35 const AccumulatorUse Bytecodes::kAccumulatorUse[] = {
41 const int Bytecodes::kBytecodeSizes[][3] = {
50 const OperandSize* const Bytecodes::kOperandSizes[][3] = {
61 const char* Bytecodes::ToString(Bytecode bytecode) { in ToString()
74 std::string Bytecodes::ToString(Bytecode bytecode, OperandScale operand_scale) { in ToString()
88 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) { in GetDebugBreak()
108 int Bytecodes::GetOperandOffset(Bytecode bytecode, int i, in GetOperandOffset()
[all …]
Dbytecode-array-writer.cc57 DCHECK(!Bytecodes::IsJump(node->bytecode())); in Write()
64 DCHECK(Bytecodes::IsJump(node->bytecode())); in WriteJump()
111 Bytecode prefix = Bytecodes::OperandScaleToPrefixBytecode(operand_scale); in EmitBytecode()
112 bytecodes()->push_back(Bytecodes::ToByte(prefix)); in EmitBytecode()
114 bytecodes()->push_back(Bytecodes::ToByte(bytecode)); in EmitBytecode()
119 Bytecodes::GetOperandSizes(bytecode, operand_scale); in EmitBytecode()
177 Bytecode jump_bytecode = Bytecodes::FromByte(bytecodes()->at(jump_location)); in PatchJumpWith8BitOperand()
178 DCHECK(Bytecodes::IsForwardJump(jump_bytecode)); in PatchJumpWith8BitOperand()
179 DCHECK(Bytecodes::IsJumpImmediate(jump_bytecode)); in PatchJumpWith8BitOperand()
180 DCHECK_EQ(Bytecodes::GetOperandType(jump_bytecode, 0), OperandType::kUImm); in PatchJumpWith8BitOperand()
[all …]
Dbytecode-decoder.cc19 DCHECK(Bytecodes::IsRegisterOperandType(operand_type)); in DecodeRegisterOperand()
38 DCHECK(!Bytecodes::IsUnsignedOperandType(operand_type)); in DecodeSignedOperand()
39 switch (Bytecodes::SizeOfOperand(operand_type, operand_scale)) { in DecodeSignedOperand()
56 DCHECK(Bytecodes::IsUnsignedOperandType(operand_type)); in DecodeUnsignedOperand()
57 switch (Bytecodes::SizeOfOperand(operand_type, operand_scale)) { in DecodeUnsignedOperand()
91 Bytecode bytecode = Bytecodes::FromByte(bytecode_start[0]); in Decode()
94 if (Bytecodes::IsPrefixScalingBytecode(bytecode)) { in Decode()
96 operand_scale = Bytecodes::PrefixBytecodeToOperandScale(bytecode); in Decode()
97 bytecode = Bytecodes::FromByte(bytecode_start[1]); in Decode()
106 int bytecode_size = Bytecodes::Size(bytecode, operand_scale); in Decode()
[all …]
Dinterpreter-assembler.cc63 DCHECK_EQ(accumulator_use_, Bytecodes::GetAccumulatorUse(bytecode_)); in ~InterpreterAssembler()
70 } else if (Bytecodes::MakesCallAlongCriticalPath(bytecode_) && made_call_ && in GetInterpretedFramePointer()
83 DCHECK(Bytecodes::ReadsAccumulator(bytecode_)); in GetAccumulator()
89 DCHECK(Bytecodes::WritesAccumulator(bytecode_)); in SetAccumulator()
168 if (Bytecodes::MakesCallAlongCriticalPath(bytecode_) && made_call_ && in BytecodeOffset()
188 if (Bytecodes::MakesCallAlongCriticalPath(bytecode_) && made_call_ && in DispatchTableRawPointer()
246 Bytecodes::GetOperandOffset(bytecode_, operand_index, operand_scale())); in OperandOffset()
250 DCHECK_LT(operand_index, Bytecodes::NumberOfOperands(bytecode_)); in BytecodeOperandUnsignedByte()
251 DCHECK_EQ(OperandSize::kByte, Bytecodes::GetOperandSize( in BytecodeOperandUnsignedByte()
259 DCHECK_LT(operand_index, Bytecodes::NumberOfOperands(bytecode_)); in BytecodeOperandSignedByte()
[all …]
Dmkpeephole.cc34 return "Bytecode::k" + std::string(Bytecodes::ToString(bytecode)); in BytecodeName()
84 if (current == Bytecode::kToName && Bytecodes::PutsNameInAccumulator(last)) { in LookupActionAndData()
91 if (Bytecodes::IsJump(current)) { in LookupActionAndData()
101 if (Bytecodes::IsAccumulatorLoadWithoutEffects(last) && in LookupActionAndData()
102 Bytecodes::IsAccumulatorLoadWithoutEffects(current)) { in LookupActionAndData()
109 if (Bytecodes::IsAccumulatorLoadWithoutEffects(last) && in LookupActionAndData()
110 Bytecodes::GetAccumulatorUse(current) == AccumulatorUse::kWrite) { in LookupActionAndData()
117 if (Bytecodes::IsLdarOrStar(last) && Bytecodes::IsLdarOrStar(current)) { in LookupActionAndData()
126 if (Bytecodes::WritesBooleanToAccumulator(last)) { in LookupActionAndData()
127 if (Bytecodes::IsJumpIfToBoolean(current)) { in LookupActionAndData()
[all …]
Dbytecode-peephole-optimizer.cc163 DCHECK(!Bytecodes::IsJump(node->bytecode())); in DefaultAction()
172 DCHECK(!Bytecodes::IsJump(node->bytecode())); in UpdateLastAction()
180 DCHECK(!Bytecodes::IsJump(node->bytecode())); in UpdateLastIfSourceInfoPresentAction()
190 DCHECK(!Bytecodes::IsJump(node->bytecode())); in ElideCurrentAction()
205 DCHECK(!Bytecodes::IsJump(node->bytecode())); in ElideCurrentIfOperand0MatchesAction()
217 DCHECK(!Bytecodes::IsJump(node->bytecode())); in ElideLastAction()
235 DCHECK(!Bytecodes::IsJump(node->bytecode())); in ChangeBytecodeAction()
244 DCHECK(!Bytecodes::IsJump(node->bytecode())); in TransformLdaSmiBinaryOpToBinaryOpWithSmiAction()
260 DCHECK(!Bytecodes::IsJump(node->bytecode())); in TransformLdaZeroBinaryOpToBinaryOpWithZeroAction()
274 DCHECK(!Bytecodes::IsJump(node->bytecode())); in TransformEqualityWithNullOrUndefinedAction()
[all …]
Dbytecode-pipeline.cc18 os << Bytecodes::ToString(bytecode_); in Print()
Dbytecode-array-writer.h48 Bytecodes::kMaxOperands * static_cast<size_t>(OperandSize::kLast); in NON_EXPORTED_BASE()
Dbytecode-array-builder.cc108 !Bytecodes::IsWithoutExternalSideEffects(bytecode)) { in CurrentSourcePosition()
248 static_assert(sizeof...(Operands) <= Bytecodes::kMaxOperands, \
260 DCHECK(Bytecodes::IsJump(Bytecode::k##name)); \
1048 DCHECK(Bytecodes::SizeForUnsignedOperand(function_id) <= OperandSize::kShort); in CallRuntime()
1075 DCHECK(Bytecodes::SizeForUnsignedOperand(function_id) <= OperandSize::kShort); in CallRuntimeForPair()
Dbytecode-register-optimizer.h51 if (Bytecodes::IsJump(bytecode) || bytecode == Bytecode::kDebugger || in NON_EXPORTED_BASE()
Dinterpreter.cc138 if (!Bytecodes::BytecodeHasHandler(bytecode, operand_scale)) return; in InstallBytecodeHandler()
143 Bytecodes::ToString(bytecode), Bytecodes::ReturnCount(bytecode)); in InstallBytecodeHandler()
145 if (Bytecodes::MakesCallAlongCriticalPath(bytecode)) { in InstallBytecodeHandler()
156 Bytecodes::ToString(bytecode, operand_scale).c_str())); in InstallBytecodeHandler()
162 DCHECK(Bytecodes::BytecodeHasHandler(bytecode, operand_scale)); in GetBytecodeHandler()
314 if (dispatch_table_[Bytecodes::ToByte(Bytecode::k##Name)] == \ in LookupNameOfBytecodeHandler()
325 int from_index = Bytecodes::ToByte(from); in GetDispatchCounter()
326 int to_index = Bytecodes::ToByte(to); in GetDispatchCounter()
349 Bytecode from_bytecode = Bytecodes::FromByte(from_index); in GetDispatchCountersObject()
353 Bytecode to_bytecode = Bytecodes::FromByte(to_index); in GetDispatchCountersObject()
[all …]
Dbytecodes.h407 class V8_EXPORT_PRIVATE Bytecodes final {
/external/v8/src/runtime/
Druntime-interpreter.cc68 if ((is_input && interpreter::Bytecodes::ReadsAccumulator(bytecode)) || in PrintRegisters()
69 (!is_input && interpreter::Bytecodes::WritesAccumulator(bytecode))) { in PrintRegisters()
80 int operand_count = interpreter::Bytecodes::NumberOfOperands(bytecode); in PrintRegisters()
83 interpreter::Bytecodes::GetOperandType(bytecode, operand_index); in PrintRegisters()
86 ? interpreter::Bytecodes::IsRegisterInputOperandType(operand_type) in PrintRegisters()
87 : interpreter::Bytecodes::IsRegisterOutputOperandType(operand_type); in PrintRegisters()
Druntime-debug.cc61 interpreter::Bytecodes::FromByte(bytecode_array->get(bytecode_offset)); in RUNTIME_FUNCTION()
/external/v8/src/compiler/
Dbytecode-analysis.cc99 int num_operands = Bytecodes::NumberOfOperands(bytecode); in UpdateInLiveness()
100 const OperandType* operand_types = Bytecodes::GetOperandTypes(bytecode); in UpdateInLiveness()
102 if (Bytecodes::WritesAccumulator(bytecode)) { in UpdateInLiveness()
135 DCHECK(!Bytecodes::IsRegisterOutputOperandType(operand_types[i])); in UpdateInLiveness()
140 if (Bytecodes::ReadsAccumulator(bytecode)) { in UpdateInLiveness()
172 DCHECK(!Bytecodes::IsRegisterInputOperandType(operand_types[i])); in UpdateInLiveness()
187 if (Bytecodes::IsForwardJump(bytecode)) { in UpdateOutLiveness()
195 !Bytecodes::IsUnconditionalJump(bytecode)) { in UpdateOutLiveness()
200 if (!interpreter::Bytecodes::IsWithoutExternalSideEffects(bytecode)) { in UpdateOutLiveness()
216 int num_operands = Bytecodes::NumberOfOperands(bytecode); in UpdateAssignments()
[all …]
/external/v8/src/debug/
Ddebug-evaluate.cc331 typedef interpreter::Bytecodes Bytecodes; in BytecodeHasNoSideEffect() typedef
332 if (Bytecodes::IsWithoutExternalSideEffects(bytecode)) return true; in BytecodeHasNoSideEffect()
333 if (Bytecodes::IsCallOrConstruct(bytecode)) return true; in BytecodeHasNoSideEffect()
334 if (Bytecodes::WritesBooleanToAccumulator(bytecode)) return true; in BytecodeHasNoSideEffect()
335 if (Bytecodes::IsJumpIfToBoolean(bytecode)) return true; in BytecodeHasNoSideEffect()
336 if (Bytecodes::IsPrefixScalingBytecode(bytecode)) return true; in BytecodeHasNoSideEffect()
399 Bytecodes::ToString(bytecode)); in BytecodeHasNoSideEffect()
528 if (interpreter::Bytecodes::IsCallRuntime(bytecode)) { in FunctionHasNoSideEffect()
Ddebug.cc296 interpreter::Bytecodes::FromByte(bytecode_array->get(code_offset())); in GetDebugBreakType()
306 } else if (interpreter::Bytecodes::IsCallOrConstruct(bytecode)) { in GetDebugBreakType()
327 interpreter::Bytecodes::FromByte(bytecode_array->get(code_offset())); in SetDebugBreak()
328 if (interpreter::Bytecodes::IsDebugBreak(bytecode)) return; in SetDebugBreak()
330 interpreter::Bytecodes::GetDebugBreak(bytecode); in SetDebugBreak()
332 interpreter::Bytecodes::ToByte(debugbreak)); in SetDebugBreak()
350 interpreter::Bytecodes::FromByte(bytecode_array->get(code_offset())); in IsDebugBreak()
351 return interpreter::Bytecodes::IsDebugBreak(bytecode); in IsDebugBreak()
/external/v8/src/
Dlog.cc1578 interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(index); in LogBytecodeHandlers()
1579 if (interpreter::Bytecodes::BytecodeHasHandler(bytecode, operand_scale)) { in LogBytecodeHandlers()
1582 interpreter::Bytecodes::ToString(bytecode, operand_scale); in LogBytecodeHandlers()
Dobjects.cc14695 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) { in Disassemble()