OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 case EXTERNAL_DOUBLE_ELEMENTS: { | 344 case EXTERNAL_DOUBLE_ELEMENTS: { |
345 ExternalDoubleArray* p = ExternalDoubleArray::cast(elements()); | 345 ExternalDoubleArray* p = ExternalDoubleArray::cast(elements()); |
346 for (int i = 0; i < p->length(); i++) { | 346 for (int i = 0; i < p->length(); i++) { |
347 PrintF(out, " %d: %f\n", i, p->get(i)); | 347 PrintF(out, " %d: %f\n", i, p->get(i)); |
348 } | 348 } |
349 break; | 349 break; |
350 } | 350 } |
351 case DICTIONARY_ELEMENTS: | 351 case DICTIONARY_ELEMENTS: |
352 elements()->Print(out); | 352 elements()->Print(out); |
353 break; | 353 break; |
| 354 case NON_STRICT_ARGUMENTS_ELEMENTS: { |
| 355 FixedArray* p = FixedArray::cast(elements()); |
| 356 for (int i = 2; i < p->length(); i++) { |
| 357 PrintF(out, " %d: ", i); |
| 358 p->get(i)->ShortPrint(out); |
| 359 PrintF(out, "\n"); |
| 360 } |
| 361 break; |
| 362 } |
354 default: | 363 default: |
355 UNREACHABLE(); | 364 UNREACHABLE(); |
356 break; | 365 break; |
357 } | 366 } |
358 } | 367 } |
359 | 368 |
360 | 369 |
361 void JSObject::JSObjectPrint(FILE* out) { | 370 void JSObject::JSObjectPrint(FILE* out) { |
362 PrintF(out, "%p: [JSObject]\n", reinterpret_cast<void*>(this)); | 371 PrintF(out, "%p: [JSObject]\n", reinterpret_cast<void*>(this)); |
363 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); | 372 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 desc.Print(out); | 836 desc.Print(out); |
828 } | 837 } |
829 PrintF(out, "\n"); | 838 PrintF(out, "\n"); |
830 } | 839 } |
831 | 840 |
832 | 841 |
833 #endif // OBJECT_PRINT | 842 #endif // OBJECT_PRINT |
834 | 843 |
835 | 844 |
836 } } // namespace v8::internal | 845 } } // namespace v8::internal |
OLD | NEW |