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

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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 os << "\n - script_id: " << script_id(); 1499 os << "\n - script_id: " << script_id();
1500 os << "\n - script_name: " << Brief(script_name()); 1500 os << "\n - script_name: " << Brief(script_name());
1501 os << "\n - script_name_or_source_url: " 1501 os << "\n - script_name_or_source_url: "
1502 << Brief(script_name_or_source_url()); 1502 << Brief(script_name_or_source_url());
1503 os << "\n - function_name: " << Brief(function_name()); 1503 os << "\n - function_name: " << Brief(function_name());
1504 os << "\n - is_eval: " << (is_eval() ? "true" : "false"); 1504 os << "\n - is_eval: " << (is_eval() ? "true" : "false");
1505 os << "\n - is_constructor: " << (is_constructor() ? "true" : "false"); 1505 os << "\n - is_constructor: " << (is_constructor() ? "true" : "false");
1506 os << "\n"; 1506 os << "\n";
1507 } 1507 }
1508 1508
1509 void SourcePositionTableWithFrameCache::SourcePositionTableWithFrameCachePrint(
1510 std::ostream& os) { // NOLINT
1511 HeapObject::PrintHeader(os, "SourcePositionTableWithFrameCache");
1512 os << "\n - source_position_table: " << Brief(source_position_table());
1513 os << "\n - stack_frame_cache: " << Brief(stack_frame_cache());
1514 os << "\n";
1515 }
1516
1509 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT 1517 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1510 for (int i = 0; i < 32; i++) { 1518 for (int i = 0; i < 32; i++) {
1511 if ((i & 7) == 0) os << " "; 1519 if ((i & 7) == 0) os << " ";
1512 os << (((value & 1) == 0) ? "_" : "x"); 1520 os << (((value & 1) == 0) ? "_" : "x");
1513 value >>= 1; 1521 value >>= 1;
1514 } 1522 }
1515 } 1523 }
1516 1524
1517 1525
1518 void LayoutDescriptor::Print() { 1526 void LayoutDescriptor::Print() {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 printf("Not a transition array\n"); 1771 printf("Not a transition array\n");
1764 } else { 1772 } else {
1765 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1773 reinterpret_cast<i::TransitionArray*>(object)->Print();
1766 } 1774 }
1767 } 1775 }
1768 1776
1769 extern void _v8_internal_Print_StackTrace() { 1777 extern void _v8_internal_Print_StackTrace() {
1770 i::Isolate* isolate = i::Isolate::Current(); 1778 i::Isolate* isolate = i::Isolate::Current();
1771 isolate->PrintStack(stdout); 1779 isolate->PrintStack(stdout);
1772 } 1780 }
OLDNEW
« include/v8.h ('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