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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 PRINT_ELEMENTS(INT16_ELEMENTS, FixedInt16Array) | 373 PRINT_ELEMENTS(INT16_ELEMENTS, FixedInt16Array) |
374 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) | 374 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) |
375 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) | 375 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) |
376 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) | 376 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) |
377 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) | 377 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) |
378 | 378 |
379 #undef PRINT_ELEMENTS | 379 #undef PRINT_ELEMENTS |
380 | 380 |
381 case DICTIONARY_ELEMENTS: | 381 case DICTIONARY_ELEMENTS: |
382 case SLOW_STRING_WRAPPER_ELEMENTS: | 382 case SLOW_STRING_WRAPPER_ELEMENTS: |
383 os << "\n - elements: "; | 383 SeededNumberDictionary::cast(elements())->Print(os); |
384 elements()->Print(os); | |
385 break; | 384 break; |
386 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: | 385 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
387 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { | 386 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { |
388 FixedArray* p = FixedArray::cast(elements()); | 387 FixedArray* p = FixedArray::cast(elements()); |
389 os << "\n parameter map:"; | 388 os << "\n parameter map:"; |
390 for (int i = 2; i < p->length(); i++) { | 389 for (int i = 2; i < p->length(); i++) { |
391 os << " " << (i - 2) << ":" << Brief(p->get(i)); | 390 os << " " << (i - 2) << ":" << Brief(p->get(i)); |
392 } | 391 } |
393 os << "\n context: " << Brief(p->get(0)) | 392 os << "\n context: " << Brief(p->get(0)) |
394 << "\n arguments: " << Brief(p->get(1)); | 393 << "\n arguments: " << Brief(p->get(1)); |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1336 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1338 Object* transitions = map()->raw_transitions(); | 1337 Object* transitions = map()->raw_transitions(); |
1339 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1338 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1340 if (num_transitions == 0) return; | 1339 if (num_transitions == 0) return; |
1341 os << "\n - transitions"; | 1340 os << "\n - transitions"; |
1342 TransitionArray::PrintTransitions(os, transitions, false); | 1341 TransitionArray::PrintTransitions(os, transitions, false); |
1343 } | 1342 } |
1344 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1343 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1345 } // namespace internal | 1344 } // namespace internal |
1346 } // namespace v8 | 1345 } // namespace v8 |
OLD | NEW |