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

Side by Side Diff: src/objects-printer.cc

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: rebased Created 3 years, 8 months 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 os << "\n"; 1506 os << "\n";
1507 } 1507 }
1508 1508
1509 void StackTraceInfo::StackTraceInfoPrint(std::ostream& os) { // NOLINT 1509 void StackTraceInfo::StackTraceInfoPrint(std::ostream& os) { // NOLINT
1510 HeapObject::PrintHeader(os, "StackTraceInfo"); 1510 HeapObject::PrintHeader(os, "StackTraceInfo");
1511 os << "\n - frames: " << Brief(frames()); 1511 os << "\n - frames: " << Brief(frames());
1512 os << "\n - options: " << options(); 1512 os << "\n - options: " << options();
1513 os << "\n"; 1513 os << "\n";
1514 } 1514 }
1515 1515
1516 void SourcePositionTableWithFrameCache::SourcePositionTableWithFrameCachePrint(
1517 std::ostream& os) { // NOLINT
1518 HeapObject::PrintHeader(os, "SourcePositionTableWithFrameCache");
1519 os << "\n - source_position_table: " << Brief(source_position_table());
1520 os << "\n - stack_frame_cache: " << Brief(stack_frame_cache());
1521 os << "\n";
1522 }
1523
1516 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT 1524 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1517 for (int i = 0; i < 32; i++) { 1525 for (int i = 0; i < 32; i++) {
1518 if ((i & 7) == 0) os << " "; 1526 if ((i & 7) == 0) os << " ";
1519 os << (((value & 1) == 0) ? "_" : "x"); 1527 os << (((value & 1) == 0) ? "_" : "x");
1520 value >>= 1; 1528 value >>= 1;
1521 } 1529 }
1522 } 1530 }
1523 1531
1524 1532
1525 void LayoutDescriptor::Print() { 1533 void LayoutDescriptor::Print() {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 printf("Not a transition array\n"); 1778 printf("Not a transition array\n");
1771 } else { 1779 } else {
1772 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1780 reinterpret_cast<i::TransitionArray*>(object)->Print();
1773 } 1781 }
1774 } 1782 }
1775 1783
1776 extern void _v8_internal_Print_StackTrace() { 1784 extern void _v8_internal_Print_StackTrace() {
1777 i::Isolate* isolate = i::Isolate::Current(); 1785 i::Isolate* isolate = i::Isolate::Current();
1778 isolate->PrintStack(stdout); 1786 isolate->PrintStack(stdout);
1779 } 1787 }
OLDNEW
« src/api.cc ('K') | « src/objects-inl.h ('k') | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698