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

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: Created 4 years, 11 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 "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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 HeapObject::PrintHeader(os, "DebugInfo"); 1134 HeapObject::PrintHeader(os, "DebugInfo");
1135 os << "\n - shared: " << Brief(shared()); 1135 os << "\n - shared: " << Brief(shared());
1136 os << "\n - code: " << Brief(code()); 1136 os << "\n - code: " << Brief(code());
1137 os << "\n - break_points: "; 1137 os << "\n - break_points: ";
1138 break_points()->Print(os); 1138 break_points()->Print(os);
1139 } 1139 }
1140 1140
1141 1141
1142 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT 1142 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
1143 HeapObject::PrintHeader(os, "BreakPointInfo"); 1143 HeapObject::PrintHeader(os, "BreakPointInfo");
1144 os << "\n - code_position: " << code_position(); 1144 os << "\n - code_offset: " << code_offset();
1145 os << "\n - source_position: " << source_position(); 1145 os << "\n - source_position: " << source_position();
1146 os << "\n - statement_position: " << statement_position(); 1146 os << "\n - statement_position: " << statement_position();
1147 os << "\n - break_point_objects: " << Brief(break_point_objects()); 1147 os << "\n - break_point_objects: " << Brief(break_point_objects());
1148 os << "\n"; 1148 os << "\n";
1149 } 1149 }
1150 1150
1151 1151
1152 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT 1152 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1153 for (int i = 0; i < 32; i++) { 1153 for (int i = 0; i < 32; i++) {
1154 if ((i & 7) == 0) os << " "; 1154 if ((i & 7) == 0) os << " ";
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1321 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1322 Object* transitions = map()->raw_transitions(); 1322 Object* transitions = map()->raw_transitions();
1323 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1323 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1324 if (num_transitions == 0) return; 1324 if (num_transitions == 0) return;
1325 os << "\n - transitions"; 1325 os << "\n - transitions";
1326 TransitionArray::PrintTransitions(os, transitions, false); 1326 TransitionArray::PrintTransitions(os, transitions, false);
1327 } 1327 }
1328 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1328 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1329 } // namespace internal 1329 } // namespace internal
1330 } // namespace v8 1330 } // namespace v8
OLDNEW
« src/objects.cc ('K') | « 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