| 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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 os << "\n - cleared"; | 939 os << "\n - cleared"; |
| 940 } else { | 940 } else { |
| 941 os << "\n - value: " << Brief(value()); | 941 os << "\n - value: " << Brief(value()); |
| 942 } | 942 } |
| 943 os << "\n"; | 943 os << "\n"; |
| 944 } | 944 } |
| 945 | 945 |
| 946 | 946 |
| 947 void Code::CodePrint(std::ostream& os) { // NOLINT | 947 void Code::CodePrint(std::ostream& os) { // NOLINT |
| 948 HeapObject::PrintHeader(os, "Code"); | 948 HeapObject::PrintHeader(os, "Code"); |
| 949 os << "\n"; |
| 949 #ifdef ENABLE_DISASSEMBLER | 950 #ifdef ENABLE_DISASSEMBLER |
| 950 if (FLAG_use_verbose_printer) { | 951 if (FLAG_use_verbose_printer) { |
| 951 Disassemble(NULL, os); | 952 Disassemble(NULL, os); |
| 952 } | 953 } |
| 953 #endif | 954 #endif |
| 954 } | 955 } |
| 955 | 956 |
| 956 | 957 |
| 957 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT | 958 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT |
| 958 os << "foreign address : " << foreign_address(); | 959 os << "foreign address : " << foreign_address(); |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1317 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1317 Object* transitions = map()->raw_transitions(); | 1318 Object* transitions = map()->raw_transitions(); |
| 1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1319 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1319 if (num_transitions == 0) return; | 1320 if (num_transitions == 0) return; |
| 1320 os << "\n - transitions"; | 1321 os << "\n - transitions"; |
| 1321 TransitionArray::PrintTransitions(os, transitions, false); | 1322 TransitionArray::PrintTransitions(os, transitions, false); |
| 1322 } | 1323 } |
| 1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1324 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1324 } // namespace internal | 1325 } // namespace internal |
| 1325 } // namespace v8 | 1326 } // namespace v8 |
| OLD | NEW |