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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 os << "\n - cleared"; | 945 os << "\n - cleared"; |
946 } else { | 946 } else { |
947 os << "\n - value: " << Brief(value()); | 947 os << "\n - value: " << Brief(value()); |
948 } | 948 } |
949 os << "\n"; | 949 os << "\n"; |
950 } | 950 } |
951 | 951 |
952 | 952 |
953 void Code::CodePrint(std::ostream& os) { // NOLINT | 953 void Code::CodePrint(std::ostream& os) { // NOLINT |
954 HeapObject::PrintHeader(os, "Code"); | 954 HeapObject::PrintHeader(os, "Code"); |
| 955 os << "\n"; |
955 #ifdef ENABLE_DISASSEMBLER | 956 #ifdef ENABLE_DISASSEMBLER |
956 if (FLAG_use_verbose_printer) { | 957 if (FLAG_use_verbose_printer) { |
957 Disassemble(NULL, os); | 958 Disassemble(NULL, os); |
958 } | 959 } |
959 #endif | 960 #endif |
960 } | 961 } |
961 | 962 |
962 | 963 |
963 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT | 964 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT |
964 os << "foreign address : " << foreign_address(); | 965 os << "foreign address : " << foreign_address(); |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1323 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1323 Object* transitions = map()->raw_transitions(); | 1324 Object* transitions = map()->raw_transitions(); |
1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1325 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1325 if (num_transitions == 0) return; | 1326 if (num_transitions == 0) return; |
1326 os << "\n - transitions"; | 1327 os << "\n - transitions"; |
1327 TransitionArray::PrintTransitions(os, transitions, false); | 1328 TransitionArray::PrintTransitions(os, transitions, false); |
1328 } | 1329 } |
1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1330 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1330 } // namespace internal | 1331 } // namespace internal |
1331 } // namespace v8 | 1332 } // namespace v8 |
OLD | NEW |