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/disassembler.h" | 7 #include "src/disassembler.h" |
8 #include "src/disasm.h" | 8 #include "src/disasm.h" |
9 #include "src/jsregexp.h" | 9 #include "src/jsregexp.h" |
10 #include "src/objects-visiting.h" | 10 #include "src/objects-visiting.h" |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 case NONEXISTENT: | 408 case NONEXISTENT: |
409 UNREACHABLE(); | 409 UNREACHABLE(); |
410 break; | 410 break; |
411 } | 411 } |
412 } | 412 } |
413 } | 413 } |
414 } | 414 } |
415 | 415 |
416 | 416 |
417 void JSObject::JSObjectPrint(FILE* out) { | 417 void JSObject::JSObjectPrint(FILE* out) { |
418 PrintF(out, "%p: [JSObject]\n", reinterpret_cast<void*>(this)); | 418 HeapObject::PrintHeader(out, "JSObject"); |
419 PrintF(out, " - map = %p [", reinterpret_cast<void*>(map())); | 419 PrintF(out, " - map = %p [", reinterpret_cast<void*>(map())); |
420 // Don't call GetElementsKind, its validation code can cause the printer to | 420 // Don't call GetElementsKind, its validation code can cause the printer to |
421 // fail when debugging. | 421 // fail when debugging. |
422 PrintElementsKind(out, this->map()->elements_kind()); | 422 PrintElementsKind(out, this->map()->elements_kind()); |
423 PrintF(out, | 423 PrintF(out, |
424 "]\n - prototype = %p\n", | 424 "]\n - prototype = %p\n", |
425 reinterpret_cast<void*>(GetPrototype())); | 425 reinterpret_cast<void*>(GetPrototype())); |
426 PrintF(out, " {\n"); | 426 PrintF(out, " {\n"); |
427 PrintProperties(out); | 427 PrintProperties(out); |
428 PrintTransitions(out); | 428 PrintTransitions(out); |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 } | 1257 } |
1258 } | 1258 } |
1259 PrintF(out, "\n"); | 1259 PrintF(out, "\n"); |
1260 } | 1260 } |
1261 | 1261 |
1262 | 1262 |
1263 #endif // OBJECT_PRINT | 1263 #endif // OBJECT_PRINT |
1264 | 1264 |
1265 | 1265 |
1266 } } // namespace v8::internal | 1266 } } // namespace v8::internal |
OLD | NEW |