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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 PRINT_ELEMENTS(UINT16_ELEMENTS, FixedUint16Array) | 364 PRINT_ELEMENTS(UINT16_ELEMENTS, FixedUint16Array) |
365 PRINT_ELEMENTS(INT16_ELEMENTS, FixedInt16Array) | 365 PRINT_ELEMENTS(INT16_ELEMENTS, FixedInt16Array) |
366 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) | 366 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) |
367 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) | 367 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) |
368 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) | 368 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) |
369 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) | 369 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) |
370 | 370 |
371 #undef PRINT_ELEMENTS | 371 #undef PRINT_ELEMENTS |
372 | 372 |
373 case DICTIONARY_ELEMENTS: | 373 case DICTIONARY_ELEMENTS: |
| 374 os << "\n - elements: "; |
374 elements()->Print(os); | 375 elements()->Print(os); |
375 break; | 376 break; |
376 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: | 377 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
377 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { | 378 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { |
378 FixedArray* p = FixedArray::cast(elements()); | 379 FixedArray* p = FixedArray::cast(elements()); |
379 os << "\n parameter map:"; | 380 os << "\n parameter map:"; |
380 for (int i = 2; i < p->length(); i++) { | 381 for (int i = 2; i < p->length(); i++) { |
381 os << " " << (i - 2) << ":" << Brief(p->get(i)); | 382 os << " " << (i - 2) << ":" << Brief(p->get(i)); |
382 } | 383 } |
383 os << "\n context: " << Brief(p->get(0)) | 384 os << "\n context: " << Brief(p->get(0)) |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1322 Object* transitions = map()->raw_transitions(); | 1323 Object* transitions = map()->raw_transitions(); |
1323 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1324 if (num_transitions == 0) return; | 1325 if (num_transitions == 0) return; |
1325 os << "\n - transitions"; | 1326 os << "\n - transitions"; |
1326 TransitionArray::PrintTransitions(os, transitions, false); | 1327 TransitionArray::PrintTransitions(os, transitions, false); |
1327 } | 1328 } |
1328 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1329 } // namespace internal | 1330 } // namespace internal |
1330 } // namespace v8 | 1331 } // namespace v8 |
OLD | NEW |