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: "; | |
375 elements()->Print(os); | 374 elements()->Print(os); |
376 break; | 375 break; |
377 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: | 376 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
378 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { | 377 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { |
379 FixedArray* p = FixedArray::cast(elements()); | 378 FixedArray* p = FixedArray::cast(elements()); |
380 os << "\n parameter map:"; | 379 os << "\n parameter map:"; |
381 for (int i = 2; i < p->length(); i++) { | 380 for (int i = 2; i < p->length(); i++) { |
382 os << " " << (i - 2) << ":" << Brief(p->get(i)); | 381 os << " " << (i - 2) << ":" << Brief(p->get(i)); |
383 } | 382 } |
384 os << "\n context: " << Brief(p->get(0)) | 383 os << "\n context: " << Brief(p->get(0)) |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1321 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1323 Object* transitions = map()->raw_transitions(); | 1322 Object* transitions = map()->raw_transitions(); |
1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1323 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1325 if (num_transitions == 0) return; | 1324 if (num_transitions == 0) return; |
1326 os << "\n - transitions"; | 1325 os << "\n - transitions"; |
1327 TransitionArray::PrintTransitions(os, transitions, false); | 1326 TransitionArray::PrintTransitions(os, transitions, false); |
1328 } | 1327 } |
1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1328 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1330 } // namespace internal | 1329 } // namespace internal |
1331 } // namespace v8 | 1330 } // namespace v8 |
OLD | NEW |