OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |