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

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

Issue 1618343002: [interpreter, debugger] abstraction for source position calculation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove bogus assertion Created 4 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/runtime/runtime-function.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 "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 HeapObject::PrintHeader(os, "DebugInfo"); 1135 HeapObject::PrintHeader(os, "DebugInfo");
1136 os << "\n - shared: " << Brief(shared()); 1136 os << "\n - shared: " << Brief(shared());
1137 os << "\n - code: " << Brief(code()); 1137 os << "\n - code: " << Brief(code());
1138 os << "\n - break_points: "; 1138 os << "\n - break_points: ";
1139 break_points()->Print(os); 1139 break_points()->Print(os);
1140 } 1140 }
1141 1141
1142 1142
1143 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT 1143 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
1144 HeapObject::PrintHeader(os, "BreakPointInfo"); 1144 HeapObject::PrintHeader(os, "BreakPointInfo");
1145 os << "\n - code_position: " << code_position(); 1145 os << "\n - code_offset: " << code_offset();
1146 os << "\n - source_position: " << source_position(); 1146 os << "\n - source_position: " << source_position();
1147 os << "\n - statement_position: " << statement_position(); 1147 os << "\n - statement_position: " << statement_position();
1148 os << "\n - break_point_objects: " << Brief(break_point_objects()); 1148 os << "\n - break_point_objects: " << Brief(break_point_objects());
1149 os << "\n"; 1149 os << "\n";
1150 } 1150 }
1151 1151
1152 1152
1153 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT 1153 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1154 for (int i = 0; i < 32; i++) { 1154 for (int i = 0; i < 32; i++) {
1155 if ((i & 7) == 0) os << " "; 1155 if ((i & 7) == 0) os << " ";
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1323 Object* transitions = map()->raw_transitions(); 1323 Object* transitions = map()->raw_transitions();
1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1325 if (num_transitions == 0) return; 1325 if (num_transitions == 0) return;
1326 os << "\n - transitions"; 1326 os << "\n - transitions";
1327 TransitionArray::PrintTransitions(os, transitions, false); 1327 TransitionArray::PrintTransitions(os, transitions, false);
1328 } 1328 }
1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1330 } // namespace internal 1330 } // namespace internal
1331 } // namespace v8 1331 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698