Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: src/objects-printer.cc

Issue 7187007: Merge arguments branch to bleeding edge (second try). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Undelete external-array test. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698