Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index a3557bfb19e954b9c93ebc7f259137f59c95e78b..bd5a96deae0c4d60095a954b7e8ecf38d4a91416 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1580,12 +1580,15 @@ void Logger::LogCodeObjects() { |
void Logger::LogBytecodeHandlers() { |
if (!FLAG_ignition) return; |
- interpreter::Interpreter* interpreter = isolate_->interpreter(); |
+ const interpreter::OperandScale kOperandScales[] = { |
+#define VALUE(Name, _) interpreter::OperandScale::k##Name, |
+ OPERAND_SCALE_LIST(VALUE) |
+#undef VALUE |
+ }; |
+ |
const int last_index = static_cast<int>(interpreter::Bytecode::kLast); |
- for (auto operand_scale = interpreter::OperandScale::kSingle; |
- operand_scale <= interpreter::OperandScale::kMaxValid; |
- operand_scale = |
- interpreter::Bytecodes::NextOperandScale(operand_scale)) { |
+ interpreter::Interpreter* interpreter = isolate_->interpreter(); |
+ for (auto operand_scale : kOperandScales) { |
for (int index = 0; index <= last_index; ++index) { |
interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(index); |
if (interpreter::Bytecodes::BytecodeHasHandler(bytecode, operand_scale)) { |