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

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

Issue 9235007: Handle single element array growth + transition in generic KeyedStoreIC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final version Created 8 years, 10 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/ia32/macro-assembler-ia32.cc ('k') | src/x64/builtins-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2012 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
11 // with the distribution. 11 // with the distribution.
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 get(i)->ShortPrint(out); 562 get(i)->ShortPrint(out);
563 } 563 }
564 PrintF(out, "\n"); 564 PrintF(out, "\n");
565 } 565 }
566 566
567 567
568 void FixedDoubleArray::FixedDoubleArrayPrint(FILE* out) { 568 void FixedDoubleArray::FixedDoubleArrayPrint(FILE* out) {
569 HeapObject::PrintHeader(out, "FixedDoubleArray"); 569 HeapObject::PrintHeader(out, "FixedDoubleArray");
570 PrintF(out, " - length: %d", length()); 570 PrintF(out, " - length: %d", length());
571 for (int i = 0; i < length(); i++) { 571 for (int i = 0; i < length(); i++) {
572 PrintF(out, "\n [%d]: %g", i, get_scalar(i)); 572 if (is_the_hole(i)) {
573 PrintF(out, "\n [%d]: <the hole>", i);
574 } else {
575 PrintF(out, "\n [%d]: %g", i, get_scalar(i));
576 }
573 } 577 }
574 PrintF(out, "\n"); 578 PrintF(out, "\n");
575 } 579 }
576 580
577 581
578 void JSValue::JSValuePrint(FILE* out) { 582 void JSValue::JSValuePrint(FILE* out) {
579 HeapObject::PrintHeader(out, "ValueObject"); 583 HeapObject::PrintHeader(out, "ValueObject");
580 value()->Print(out); 584 value()->Print(out);
581 } 585 }
582 586
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 desc.Print(out); 969 desc.Print(out);
966 } 970 }
967 PrintF(out, "\n"); 971 PrintF(out, "\n");
968 } 972 }
969 973
970 974
971 #endif // OBJECT_PRINT 975 #endif // OBJECT_PRINT
972 976
973 977
974 } } // namespace v8::internal 978 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698