| 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 <memory> | 8 #include <memory> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1477 Heap* heap = isolate_->heap(); | 1477 Heap* heap = isolate_->heap(); |
| 1478 HeapIterator iterator(heap); | 1478 HeapIterator iterator(heap); |
| 1479 DisallowHeapAllocation no_gc; | 1479 DisallowHeapAllocation no_gc; |
| 1480 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { | 1480 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
| 1481 if (obj->IsCode()) LogCodeObject(obj); | 1481 if (obj->IsCode()) LogCodeObject(obj); |
| 1482 if (obj->IsBytecodeArray()) LogCodeObject(obj); | 1482 if (obj->IsBytecodeArray()) LogCodeObject(obj); |
| 1483 } | 1483 } |
| 1484 } | 1484 } |
| 1485 | 1485 |
| 1486 void Logger::LogBytecodeHandlers() { | 1486 void Logger::LogBytecodeHandlers() { |
| 1487 if (!FLAG_ignition) return; |
| 1488 |
| 1487 const interpreter::OperandScale kOperandScales[] = { | 1489 const interpreter::OperandScale kOperandScales[] = { |
| 1488 #define VALUE(Name, _) interpreter::OperandScale::k##Name, | 1490 #define VALUE(Name, _) interpreter::OperandScale::k##Name, |
| 1489 OPERAND_SCALE_LIST(VALUE) | 1491 OPERAND_SCALE_LIST(VALUE) |
| 1490 #undef VALUE | 1492 #undef VALUE |
| 1491 }; | 1493 }; |
| 1492 | 1494 |
| 1493 const int last_index = static_cast<int>(interpreter::Bytecode::kLast); | 1495 const int last_index = static_cast<int>(interpreter::Bytecode::kLast); |
| 1494 interpreter::Interpreter* interpreter = isolate_->interpreter(); | 1496 interpreter::Interpreter* interpreter = isolate_->interpreter(); |
| 1495 for (auto operand_scale : kOperandScales) { | 1497 for (auto operand_scale : kOperandScales) { |
| 1496 for (int index = 0; index <= last_index; ++index) { | 1498 for (int index = 0; index <= last_index; ++index) { |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 | 1779 |
| 1778 if (profiler_listener_.get() != nullptr) { | 1780 if (profiler_listener_.get() != nullptr) { |
| 1779 removeCodeEventListener(profiler_listener_.get()); | 1781 removeCodeEventListener(profiler_listener_.get()); |
| 1780 } | 1782 } |
| 1781 | 1783 |
| 1782 return log_->Close(); | 1784 return log_->Close(); |
| 1783 } | 1785 } |
| 1784 | 1786 |
| 1785 } // namespace internal | 1787 } // namespace internal |
| 1786 } // namespace v8 | 1788 } // namespace v8 |
| OLD | NEW |