Lines Matching refs:bytecode
10 #include "src/interpreter/bytecode-traits.h"
105 const char* Bytecodes::ToString(Bytecode bytecode) {
106 switch (bytecode) {
117 std::string Bytecodes::ToString(Bytecode bytecode, OperandScale operand_scale,
119 std::string value(ToString(bytecode));
130 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) {
131 DCHECK(!IsDebugBreak(bytecode));
132 if (bytecode == Bytecode::kWide) {
135 if (bytecode == Bytecode::kExtraWide) {
138 int bytecode_size = Size(bytecode, OperandScale::kSingle);
149 int Bytecodes::GetOperandOffset(Bytecode bytecode, int i,
151 DCHECK_LT(i, Bytecodes::NumberOfOperands(bytecode));
156 GetOperandSize(bytecode, operand_index, operand_scale);
163 Bytecode Bytecodes::GetJumpWithoutToBoolean(Bytecode bytecode) {
164 switch (bytecode) {
180 bool Bytecodes::IsDebugBreak(Bytecode bytecode) {
181 switch (bytecode) {
220 bool Bytecodes::MakesCallAlongCriticalPath(Bytecode bytecode) {
221 if (IsCallOrConstruct(bytecode) || IsCallRuntime(bytecode)) return true;
222 switch (bytecode) {
271 bool Bytecodes::IsStarLookahead(Bytecode bytecode, OperandScale operand_scale) {
273 switch (bytecode) {
275 // handler for all short-star codes re-reads the opcode from the bytecode
324 bool Bytecodes::IsBytecodeWithScalableOperands(Bytecode bytecode) {
325 for (int i = 0; i < NumberOfOperands(bytecode); i++) {
326 if (OperandIsScalable(bytecode, i)) return true;
344 bool Bytecodes::BytecodeHasHandler(Bytecode bytecode,
347 (!IsShortStar(bytecode) || bytecode == Bytecode::kStar0)) ||
348 Bytecodes::IsBytecodeWithScalableOperands(bytecode);
351 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) {
352 return os << Bytecodes::ToString(bytecode);