| 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/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
| 10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) | 333 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) |
| 334 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) | 334 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) |
| 335 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) | 335 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) |
| 336 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) | 336 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) |
| 337 | 337 |
| 338 #undef PRINT_ELEMENTS | 338 #undef PRINT_ELEMENTS |
| 339 | 339 |
| 340 case DICTIONARY_ELEMENTS: | 340 case DICTIONARY_ELEMENTS: |
| 341 elements()->Print(os); | 341 elements()->Print(os); |
| 342 break; | 342 break; |
| 343 case SLOPPY_ARGUMENTS_ELEMENTS: { | 343 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
| 344 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { |
| 344 FixedArray* p = FixedArray::cast(elements()); | 345 FixedArray* p = FixedArray::cast(elements()); |
| 345 os << " parameter map:"; | 346 os << " parameter map:"; |
| 346 for (int i = 2; i < p->length(); i++) { | 347 for (int i = 2; i < p->length(); i++) { |
| 347 os << " " << (i - 2) << ":" << Brief(p->get(i)); | 348 os << " " << (i - 2) << ":" << Brief(p->get(i)); |
| 348 } | 349 } |
| 349 os << "\n context: " << Brief(p->get(0)) | 350 os << "\n context: " << Brief(p->get(0)) |
| 350 << "\n arguments: " << Brief(p->get(1)) << "\n"; | 351 << "\n arguments: " << Brief(p->get(1)) << "\n"; |
| 351 break; | 352 break; |
| 352 } | 353 } |
| 353 } | 354 } |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 } | 1173 } |
| 1173 } | 1174 } |
| 1174 | 1175 |
| 1175 | 1176 |
| 1176 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1177 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1177 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1178 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1178 } | 1179 } |
| 1179 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1180 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1180 } // namespace internal | 1181 } // namespace internal |
| 1181 } // namespace v8 | 1182 } // namespace v8 |
| OLD | NEW |