Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: src/log.cc

Issue 2443573002: [compiler] Prepare for partially shipping Ignition. (Closed)
Patch Set: Rebased. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
1489 const interpreter::OperandScale kOperandScales[] = { 1487 const interpreter::OperandScale kOperandScales[] = {
1490 #define VALUE(Name, _) interpreter::OperandScale::k##Name, 1488 #define VALUE(Name, _) interpreter::OperandScale::k##Name,
1491 OPERAND_SCALE_LIST(VALUE) 1489 OPERAND_SCALE_LIST(VALUE)
1492 #undef VALUE 1490 #undef VALUE
1493 }; 1491 };
1494 1492
1495 const int last_index = static_cast<int>(interpreter::Bytecode::kLast); 1493 const int last_index = static_cast<int>(interpreter::Bytecode::kLast);
1496 interpreter::Interpreter* interpreter = isolate_->interpreter(); 1494 interpreter::Interpreter* interpreter = isolate_->interpreter();
1497 for (auto operand_scale : kOperandScales) { 1495 for (auto operand_scale : kOperandScales) {
1498 for (int index = 0; index <= last_index; ++index) { 1496 for (int index = 0; index <= last_index; ++index) {
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 1777
1780 if (profiler_listener_.get() != nullptr) { 1778 if (profiler_listener_.get() != nullptr) {
1781 removeCodeEventListener(profiler_listener_.get()); 1779 removeCodeEventListener(profiler_listener_.get());
1782 } 1780 }
1783 1781
1784 return log_->Close(); 1782 return log_->Close();
1785 } 1783 }
1786 1784
1787 } // namespace internal 1785 } // namespace internal
1788 } // namespace v8 1786 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698