| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/log.h" | 5 #include "src/log.h" |
| 6 | 6 |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 if (!FLAG_ignition) return; | 1608 if (!FLAG_ignition) return; |
| 1609 | 1609 |
| 1610 interpreter::Interpreter* interpreter = isolate_->interpreter(); | 1610 interpreter::Interpreter* interpreter = isolate_->interpreter(); |
| 1611 const int last_index = static_cast<int>(interpreter::Bytecode::kLast); | 1611 const int last_index = static_cast<int>(interpreter::Bytecode::kLast); |
| 1612 for (auto operand_scale = interpreter::OperandScale::kSingle; | 1612 for (auto operand_scale = interpreter::OperandScale::kSingle; |
| 1613 operand_scale <= interpreter::OperandScale::kMaxValid; | 1613 operand_scale <= interpreter::OperandScale::kMaxValid; |
| 1614 operand_scale = | 1614 operand_scale = |
| 1615 interpreter::Bytecodes::NextOperandScale(operand_scale)) { | 1615 interpreter::Bytecodes::NextOperandScale(operand_scale)) { |
| 1616 for (int index = 0; index <= last_index; ++index) { | 1616 for (int index = 0; index <= last_index; ++index) { |
| 1617 interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(index); | 1617 interpreter::Bytecode bytecode = interpreter::Bytecodes::FromByte(index); |
| 1618 if (interpreter::Interpreter::BytecodeHasHandler(bytecode, | 1618 if (interpreter::Bytecodes::BytecodeHasHandler(bytecode, operand_scale)) { |
| 1619 operand_scale)) { | |
| 1620 Code* code = interpreter->GetBytecodeHandler(bytecode, operand_scale); | 1619 Code* code = interpreter->GetBytecodeHandler(bytecode, operand_scale); |
| 1621 std::string bytecode_name = | 1620 std::string bytecode_name = |
| 1622 interpreter::Bytecodes::ToString(bytecode, operand_scale); | 1621 interpreter::Bytecodes::ToString(bytecode, operand_scale); |
| 1623 CodeCreateEvent(Logger::BYTECODE_HANDLER_TAG, AbstractCode::cast(code), | 1622 CodeCreateEvent(Logger::BYTECODE_HANDLER_TAG, AbstractCode::cast(code), |
| 1624 bytecode_name.c_str()); | 1623 bytecode_name.c_str()); |
| 1625 } | 1624 } |
| 1626 } | 1625 } |
| 1627 } | 1626 } |
| 1628 } | 1627 } |
| 1629 | 1628 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 removeCodeEventListener(jit_logger_); | 1874 removeCodeEventListener(jit_logger_); |
| 1876 delete jit_logger_; | 1875 delete jit_logger_; |
| 1877 jit_logger_ = NULL; | 1876 jit_logger_ = NULL; |
| 1878 } | 1877 } |
| 1879 | 1878 |
| 1880 return log_->Close(); | 1879 return log_->Close(); |
| 1881 } | 1880 } |
| 1882 | 1881 |
| 1883 } // namespace internal | 1882 } // namespace internal |
| 1884 } // namespace v8 | 1883 } // namespace v8 |
| OLD | NEW |