| 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/v8.h" | 5 #include "src/v8.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/jsregexp.h" | 9 #include "src/jsregexp.h" |
| 10 #include "src/objects-visiting.h" | 10 #include "src/objects-visiting.h" |
| 11 #include "src/prototype-iterator.h" |
| 11 | 12 |
| 12 namespace v8 { | 13 namespace v8 { |
| 13 namespace internal { | 14 namespace internal { |
| 14 | 15 |
| 15 #ifdef OBJECT_PRINT | 16 #ifdef OBJECT_PRINT |
| 16 | 17 |
| 17 void Object::Print() { | 18 void Object::Print() { |
| 18 Print(stdout); | 19 Print(stdout); |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 416 |
| 416 | 417 |
| 417 void JSObject::JSObjectPrint(FILE* out) { | 418 void JSObject::JSObjectPrint(FILE* out) { |
| 418 HeapObject::PrintHeader(out, "JSObject"); | 419 HeapObject::PrintHeader(out, "JSObject"); |
| 419 PrintF(out, " - map = %p [", reinterpret_cast<void*>(map())); | 420 PrintF(out, " - map = %p [", reinterpret_cast<void*>(map())); |
| 420 // Don't call GetElementsKind, its validation code can cause the printer to | 421 // Don't call GetElementsKind, its validation code can cause the printer to |
| 421 // fail when debugging. | 422 // fail when debugging. |
| 422 PrintElementsKind(out, this->map()->elements_kind()); | 423 PrintElementsKind(out, this->map()->elements_kind()); |
| 423 PrintF(out, | 424 PrintF(out, |
| 424 "]\n - prototype = %p\n", | 425 "]\n - prototype = %p\n", |
| 425 reinterpret_cast<void*>(GetPrototype())); | 426 reinterpret_cast<void*>(SAFE_GET_PROTOTYPE_FAST(this))); |
| 426 PrintF(out, " {\n"); | 427 PrintF(out, " {\n"); |
| 427 PrintProperties(out); | 428 PrintProperties(out); |
| 428 PrintTransitions(out); | 429 PrintTransitions(out); |
| 429 PrintElements(out); | 430 PrintElements(out); |
| 430 PrintF(out, " }\n"); | 431 PrintF(out, " }\n"); |
| 431 } | 432 } |
| 432 | 433 |
| 433 | 434 |
| 434 void JSModule::JSModulePrint(FILE* out) { | 435 void JSModule::JSModulePrint(FILE* out) { |
| 435 HeapObject::PrintHeader(out, "JSModule"); | 436 HeapObject::PrintHeader(out, "JSModule"); |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 } | 1256 } |
| 1256 } | 1257 } |
| 1257 PrintF(out, "\n"); | 1258 PrintF(out, "\n"); |
| 1258 } | 1259 } |
| 1259 | 1260 |
| 1260 | 1261 |
| 1261 #endif // OBJECT_PRINT | 1262 #endif // OBJECT_PRINT |
| 1262 | 1263 |
| 1263 | 1264 |
| 1264 } } // namespace v8::internal | 1265 } } // namespace v8::internal |
| OLD | NEW |