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

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

Issue 2909893002: [debug] Untangle DebugInfo from break point support (Closed)
Patch Set: Address comments Created 3 years, 6 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.cc ('k') | src/objects/debug-objects.h » ('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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 os << "\n - line ends: " << Brief(line_ends()); 1456 os << "\n - line ends: " << Brief(line_ends());
1457 os << "\n - eval from shared: " << Brief(eval_from_shared()); 1457 os << "\n - eval from shared: " << Brief(eval_from_shared());
1458 os << "\n - eval from position: " << eval_from_position(); 1458 os << "\n - eval from position: " << eval_from_position();
1459 os << "\n - shared function infos: " << Brief(shared_function_infos()); 1459 os << "\n - shared function infos: " << Brief(shared_function_infos());
1460 os << "\n"; 1460 os << "\n";
1461 } 1461 }
1462 1462
1463 1463
1464 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT 1464 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT
1465 HeapObject::PrintHeader(os, "DebugInfo"); 1465 HeapObject::PrintHeader(os, "DebugInfo");
1466 os << "\n - flags: " << flags();
1467 os << "\n - debugger_hints: " << debugger_hints();
1466 os << "\n - shared: " << Brief(shared()); 1468 os << "\n - shared: " << Brief(shared());
1467 os << "\n - debug bytecode array: " << Brief(debug_bytecode_array()); 1469 os << "\n - debug bytecode array: " << Brief(debug_bytecode_array());
1468 os << "\n - break_points: "; 1470 os << "\n - break_points: ";
1469 break_points()->Print(os); 1471 break_points()->Print(os);
1470 } 1472 }
1471 1473
1472 1474
1473 void StackFrameInfo::StackFrameInfoPrint(std::ostream& os) { // NOLINT 1475 void StackFrameInfo::StackFrameInfoPrint(std::ostream& os) { // NOLINT
1474 HeapObject::PrintHeader(os, "StackFrame"); 1476 HeapObject::PrintHeader(os, "StackFrame");
1475 os << "\n - line_number: " << line_number(); 1477 os << "\n - line_number: " << line_number();
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1737 printf("Not a transition array\n"); 1739 printf("Not a transition array\n");
1738 } else { 1740 } else {
1739 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1741 reinterpret_cast<i::TransitionArray*>(object)->Print();
1740 } 1742 }
1741 } 1743 }
1742 1744
1743 extern void _v8_internal_Print_StackTrace() { 1745 extern void _v8_internal_Print_StackTrace() {
1744 i::Isolate* isolate = i::Isolate::Current(); 1746 i::Isolate* isolate = i::Isolate::Current();
1745 isolate->PrintStack(stdout); 1747 isolate->PrintStack(stdout);
1746 } 1748 }
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects/debug-objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698