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

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

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