| 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 <iomanip> | 7 #include <iomanip> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/bootstrapper.h" |
| 10 #include "src/disasm.h" | 11 #include "src/disasm.h" |
| 11 #include "src/disassembler.h" | 12 #include "src/disassembler.h" |
| 12 #include "src/interpreter/bytecodes.h" | 13 #include "src/interpreter/bytecodes.h" |
| 13 #include "src/objects-inl.h" | 14 #include "src/objects-inl.h" |
| 14 #include "src/ostreams.h" | 15 #include "src/ostreams.h" |
| 15 #include "src/regexp/jsregexp.h" | 16 #include "src/regexp/jsregexp.h" |
| 16 | 17 |
| 17 namespace v8 { | 18 namespace v8 { |
| 18 namespace internal { | 19 namespace internal { |
| 19 | 20 |
| (...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 feedback_metadata()->TypeFeedbackMetadataPrint(os); | 1088 feedback_metadata()->TypeFeedbackMetadataPrint(os); |
| 1088 if (HasBytecodeArray()) { | 1089 if (HasBytecodeArray()) { |
| 1089 os << "\n - bytecode_array = " << bytecode_array(); | 1090 os << "\n - bytecode_array = " << bytecode_array(); |
| 1090 } | 1091 } |
| 1091 os << "\n"; | 1092 os << "\n"; |
| 1092 } | 1093 } |
| 1093 | 1094 |
| 1094 | 1095 |
| 1095 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT | 1096 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT |
| 1096 JSObjectPrintHeader(os, this, "JSGlobalProxy"); | 1097 JSObjectPrintHeader(os, this, "JSGlobalProxy"); |
| 1097 os << "\n - native context = " << Brief(native_context()); | 1098 if (!GetIsolate()->bootstrapper()->IsActive()) { |
| 1099 os << "\n - native context = " << Brief(native_context()); |
| 1100 } |
| 1098 os << "\n - hash = " << Brief(hash()); | 1101 os << "\n - hash = " << Brief(hash()); |
| 1099 JSObjectPrintBody(os, this); | 1102 JSObjectPrintBody(os, this); |
| 1100 } | 1103 } |
| 1101 | 1104 |
| 1102 | 1105 |
| 1103 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT | 1106 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT |
| 1104 JSObjectPrintHeader(os, this, "JSGlobalObject"); | 1107 JSObjectPrintHeader(os, this, "JSGlobalObject"); |
| 1105 os << "\n - native context = " << Brief(native_context()); | 1108 if (!GetIsolate()->bootstrapper()->IsActive()) { |
| 1109 os << "\n - native context = " << Brief(native_context()); |
| 1110 } |
| 1106 os << "\n - global proxy = " << Brief(global_proxy()); | 1111 os << "\n - global proxy = " << Brief(global_proxy()); |
| 1107 JSObjectPrintBody(os, this); | 1112 JSObjectPrintBody(os, this); |
| 1108 } | 1113 } |
| 1109 | 1114 |
| 1110 | 1115 |
| 1111 void Cell::CellPrint(std::ostream& os) { // NOLINT | 1116 void Cell::CellPrint(std::ostream& os) { // NOLINT |
| 1112 HeapObject::PrintHeader(os, "Cell"); | 1117 HeapObject::PrintHeader(os, "Cell"); |
| 1113 os << "\n - value: " << Brief(value()); | 1118 os << "\n - value: " << Brief(value()); |
| 1114 os << "\n"; | 1119 os << "\n"; |
| 1115 } | 1120 } |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 printf("Not a transition array\n"); | 1648 printf("Not a transition array\n"); |
| 1644 } else { | 1649 } else { |
| 1645 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1650 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
| 1646 } | 1651 } |
| 1647 } | 1652 } |
| 1648 | 1653 |
| 1649 extern void _v8_internal_Print_StackTrace() { | 1654 extern void _v8_internal_Print_StackTrace() { |
| 1650 i::Isolate* isolate = i::Isolate::Current(); | 1655 i::Isolate* isolate = i::Isolate::Current(); |
| 1651 isolate->PrintStack(stdout); | 1656 isolate->PrintStack(stdout); |
| 1652 } | 1657 } |
| OLD | NEW |