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 } | |
363 default: | 354 default: |
364 UNREACHABLE(); | 355 UNREACHABLE(); |
365 break; | 356 break; |
366 } | 357 } |
367 } | 358 } |
368 | 359 |
369 | 360 |
370 void JSObject::JSObjectPrint(FILE* out) { | 361 void JSObject::JSObjectPrint(FILE* out) { |
371 PrintF(out, "%p: [JSObject]\n", reinterpret_cast<void*>(this)); | 362 PrintF(out, "%p: [JSObject]\n", reinterpret_cast<void*>(this)); |
372 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); | 363 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 desc.Print(out); | 827 desc.Print(out); |
837 } | 828 } |
838 PrintF(out, "\n"); | 829 PrintF(out, "\n"); |
839 } | 830 } |
840 | 831 |
841 | 832 |
842 #endif // OBJECT_PRINT | 833 #endif // OBJECT_PRINT |
843 | 834 |
844 | 835 |
845 } } // namespace v8::internal | 836 } } // namespace v8::internal |
OLD | NEW |