Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index e520ff6aed04aada83d0aacf5b0231ca36bef32f..90c378674b641b7a09aeec47ebce55d2684d0e72 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1608,11 +1608,18 @@ void Logger::LogBytecodeHandlers() { |
if (!FLAG_ignition) return; |
const int last_index = static_cast<int>(interpreter::Bytecode::kLast); |
- for (int index = 0; index <= last_index; ++index) { |
- interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(index); |
- Code* code = isolate_->interpreter()->GetBytecodeHandler(bytecode); |
- CodeCreateEvent(Logger::BYTECODE_HANDLER_TAG, AbstractCode::cast(code), |
- interpreter::Bytecodes::ToString(bytecode)); |
+ for (int operand_scale = 1; operand_scale <= 4; operand_scale *= 2) { |
+ for (int index = 0; index <= last_index; ++index) { |
+ interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(index); |
+ Code* code = |
+ isolate_->interpreter()->GetBytecodeHandler(bytecode, operand_scale); |
+ if (code != nullptr) { |
+ std::string bytecode_name = |
+ interpreter::Bytecodes::ToString(bytecode, operand_scale); |
+ CodeCreateEvent(Logger::BYTECODE_HANDLER_TAG, AbstractCode::cast(code), |
+ bytecode_name.c_str()); |
+ } |
+ } |
} |
} |