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

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

Issue 2789073002: [inspector] store stack frame in struct instead of JSObject (Closed)
Patch Set: gcmole should be happy 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-wasm.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 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 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 } 1465 }
1466 1466
1467 1467
1468 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT 1468 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
1469 HeapObject::PrintHeader(os, "BreakPointInfo"); 1469 HeapObject::PrintHeader(os, "BreakPointInfo");
1470 os << "\n - source_position: " << source_position(); 1470 os << "\n - source_position: " << source_position();
1471 os << "\n - break_point_objects: " << Brief(break_point_objects()); 1471 os << "\n - break_point_objects: " << Brief(break_point_objects());
1472 os << "\n"; 1472 os << "\n";
1473 } 1473 }
1474 1474
1475 void StackFrameInfo::StackFrameInfoPrint(std::ostream& os) { // NOLINT
1476 HeapObject::PrintHeader(os, "StackFrame");
1477 os << "\n - line_number: " << line_number();
1478 os << "\n - column_number: " << column_number();
1479 os << "\n - script_id: " << script_id();
1480 os << "\n - script_name: " << Brief(script_name());
1481 os << "\n - script_name_or_source_url: "
1482 << Brief(script_name_or_source_url());
1483 os << "\n - function_name: " << Brief(function_name());
1484 os << "\n - is_eval: " << (is_eval() ? "true" : "false");
1485 os << "\n - is_constructor: " << (is_constructor() ? "true" : "false");
1486 os << "\n";
1487 }
1475 1488
1476 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT 1489 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1477 for (int i = 0; i < 32; i++) { 1490 for (int i = 0; i < 32; i++) {
1478 if ((i & 7) == 0) os << " "; 1491 if ((i & 7) == 0) os << " ";
1479 os << (((value & 1) == 0) ? "_" : "x"); 1492 os << (((value & 1) == 0) ? "_" : "x");
1480 value >>= 1; 1493 value >>= 1;
1481 } 1494 }
1482 } 1495 }
1483 1496
1484 1497
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 printf("Not a transition array\n"); 1743 printf("Not a transition array\n");
1731 } else { 1744 } else {
1732 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1745 reinterpret_cast<i::TransitionArray*>(object)->Print();
1733 } 1746 }
1734 } 1747 }
1735 1748
1736 extern void _v8_internal_Print_StackTrace() { 1749 extern void _v8_internal_Print_StackTrace() {
1737 i::Isolate* isolate = i::Isolate::Current(); 1750 i::Isolate* isolate = i::Isolate::Current();
1738 isolate->PrintStack(stdout); 1751 isolate->PrintStack(stdout);
1739 } 1752 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698