| 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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 os << "\n - eval from instructions offset: " | 1121 os << "\n - eval from instructions offset: " |
| 1122 << eval_from_instructions_offset(); | 1122 << eval_from_instructions_offset(); |
| 1123 os << "\n - shared function infos: " << Brief(shared_function_infos()); | 1123 os << "\n - shared function infos: " << Brief(shared_function_infos()); |
| 1124 os << "\n"; | 1124 os << "\n"; |
| 1125 } | 1125 } |
| 1126 | 1126 |
| 1127 | 1127 |
| 1128 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT | 1128 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT |
| 1129 HeapObject::PrintHeader(os, "DebugInfo"); | 1129 HeapObject::PrintHeader(os, "DebugInfo"); |
| 1130 os << "\n - shared: " << Brief(shared()); | 1130 os << "\n - shared: " << Brief(shared()); |
| 1131 os << "\n - code: " << Brief(code()); | 1131 os << "\n - code: " << Brief(abstract_code()); |
| 1132 os << "\n - break_points: "; | 1132 os << "\n - break_points: "; |
| 1133 break_points()->Print(os); | 1133 break_points()->Print(os); |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 | 1136 |
| 1137 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT | 1137 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT |
| 1138 HeapObject::PrintHeader(os, "BreakPointInfo"); | 1138 HeapObject::PrintHeader(os, "BreakPointInfo"); |
| 1139 os << "\n - code_offset: " << code_offset(); | 1139 os << "\n - code_offset: " << code_offset(); |
| 1140 os << "\n - source_position: " << source_position(); | 1140 os << "\n - source_position: " << source_position(); |
| 1141 os << "\n - statement_position: " << statement_position(); | 1141 os << "\n - statement_position: " << statement_position(); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1317 Object* transitions = map()->raw_transitions(); | 1317 Object* transitions = map()->raw_transitions(); |
| 1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1319 if (num_transitions == 0) return; | 1319 if (num_transitions == 0) return; |
| 1320 os << "\n - transitions"; | 1320 os << "\n - transitions"; |
| 1321 TransitionArray::PrintTransitions(os, transitions, false); | 1321 TransitionArray::PrintTransitions(os, transitions, false); |
| 1322 } | 1322 } |
| 1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1324 } // namespace internal | 1324 } // namespace internal |
| 1325 } // namespace v8 | 1325 } // namespace v8 |
| OLD | NEW |