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

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

Issue 9460004: Fix redefining of attributes on aliased arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Andreas Rossberg. 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/objects-inl.h ('k') | test/mjsunit/object-define-property.js » ('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 2012 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
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 556
557 void TypeFeedbackInfo::TypeFeedbackInfoPrint(FILE* out) { 557 void TypeFeedbackInfo::TypeFeedbackInfoPrint(FILE* out) {
558 HeapObject::PrintHeader(out, "TypeFeedbackInfo"); 558 HeapObject::PrintHeader(out, "TypeFeedbackInfo");
559 PrintF(out, "\n - ic_total_count: %d, ic_with_typeinfo_count: %d", 559 PrintF(out, "\n - ic_total_count: %d, ic_with_typeinfo_count: %d",
560 ic_total_count(), ic_with_typeinfo_count()); 560 ic_total_count(), ic_with_typeinfo_count());
561 PrintF(out, "\n - type_feedback_cells: "); 561 PrintF(out, "\n - type_feedback_cells: ");
562 type_feedback_cells()->FixedArrayPrint(out); 562 type_feedback_cells()->FixedArrayPrint(out);
563 } 563 }
564 564
565 565
566 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint(FILE* out) {
567 HeapObject::PrintHeader(out, "AliasedArgumentsEntry");
568 PrintF(out, "\n - aliased_context_slot: %d", aliased_context_slot());
569 }
570
571
566 void FixedArray::FixedArrayPrint(FILE* out) { 572 void FixedArray::FixedArrayPrint(FILE* out) {
567 HeapObject::PrintHeader(out, "FixedArray"); 573 HeapObject::PrintHeader(out, "FixedArray");
568 PrintF(out, " - length: %d", length()); 574 PrintF(out, " - length: %d", length());
569 for (int i = 0; i < length(); i++) { 575 for (int i = 0; i < length(); i++) {
570 PrintF(out, "\n [%d]: ", i); 576 PrintF(out, "\n [%d]: ", i);
571 get(i)->ShortPrint(out); 577 get(i)->ShortPrint(out);
572 } 578 }
573 PrintF(out, "\n"); 579 PrintF(out, "\n");
574 } 580 }
575 581
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 desc.Print(out); 984 desc.Print(out);
979 } 985 }
980 PrintF(out, "\n"); 986 PrintF(out, "\n");
981 } 987 }
982 988
983 989
984 #endif // OBJECT_PRINT 990 #endif // OBJECT_PRINT
985 991
986 992
987 } } // namespace v8::internal 993 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/mjsunit/object-define-property.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698