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

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

Issue 2685163006: [inspector] migrate set/remove BreakPoint to debug-interface.h (Closed)
Patch Set: added comment about inlined jsframe index Created 3 years, 10 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/wasm/wasm-objects.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 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 } 1402 }
1403 1403
1404 1404
1405 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT 1405 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
1406 HeapObject::PrintHeader(os, "BreakPointInfo"); 1406 HeapObject::PrintHeader(os, "BreakPointInfo");
1407 os << "\n - source_position: " << source_position(); 1407 os << "\n - source_position: " << source_position();
1408 os << "\n - break_point_objects: " << Brief(break_point_objects()); 1408 os << "\n - break_point_objects: " << Brief(break_point_objects());
1409 os << "\n"; 1409 os << "\n";
1410 } 1410 }
1411 1411
1412 void BreakPoint::BreakPointPrint(std::ostream& os) { // NOLINT
1413 HeapObject::PrintHeader(os, "BreakPoint");
1414 os << "\n - condition: " << Brief(condition());
1415 os << "\n - data: " << Brief(data());
1416 os << "\n";
1417 }
1412 1418
1413 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT 1419 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1414 for (int i = 0; i < 32; i++) { 1420 for (int i = 0; i < 32; i++) {
1415 if ((i & 7) == 0) os << " "; 1421 if ((i & 7) == 0) os << " ";
1416 os << (((value & 1) == 0) ? "_" : "x"); 1422 os << (((value & 1) == 0) ? "_" : "x");
1417 value >>= 1; 1423 value >>= 1;
1418 } 1424 }
1419 } 1425 }
1420 1426
1421 1427
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 printf("Not a transition array\n"); 1673 printf("Not a transition array\n");
1668 } else { 1674 } else {
1669 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1675 reinterpret_cast<i::TransitionArray*>(object)->Print();
1670 } 1676 }
1671 } 1677 }
1672 1678
1673 extern void _v8_internal_Print_StackTrace() { 1679 extern void _v8_internal_Print_StackTrace() {
1674 i::Isolate* isolate = i::Isolate::Current(); 1680 i::Isolate* isolate = i::Isolate::Current();
1675 isolate->PrintStack(stdout); 1681 isolate->PrintStack(stdout);
1676 } 1682 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698