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

Side by Side Diff: src/ast.cc

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response Created 7 years, 5 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/arm/stub-cache-arm.cc ('k') | src/builtins.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 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } 669 }
670 670
671 671
672 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { 672 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
673 allocation_info_cell_ = oracle->GetCallNewAllocationInfoCell(this); 673 allocation_info_cell_ = oracle->GetCallNewAllocationInfoCell(this);
674 is_monomorphic_ = oracle->CallNewIsMonomorphic(this); 674 is_monomorphic_ = oracle->CallNewIsMonomorphic(this);
675 if (is_monomorphic_) { 675 if (is_monomorphic_) {
676 target_ = oracle->GetCallNewTarget(this); 676 target_ = oracle->GetCallNewTarget(this);
677 Object* value = allocation_info_cell_->value(); 677 Object* value = allocation_info_cell_->value();
678 ASSERT(!value->IsTheHole()); 678 ASSERT(!value->IsTheHole());
679 if (value->IsSmi()) { 679 if (value->IsAllocationSite()) {
680 elements_kind_ = static_cast<ElementsKind>(Smi::cast(value)->value()); 680 AllocationSite* site = AllocationSite::cast(value);
681 elements_kind_ = site->GetElementsKindPayload();
681 } 682 }
682 } 683 }
683 } 684 }
684 685
685 686
686 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { 687 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
687 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) 688 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this)
688 ? oracle->GetObjectLiteralStoreMap(this) 689 ? oracle->GetObjectLiteralStoreMap(this)
689 : Handle<Map>::null(); 690 : Handle<Map>::null();
690 } 691 }
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1185 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1185 str = arr; 1186 str = arr;
1186 } else { 1187 } else {
1187 str = DoubleToCString(value_->Number(), buffer); 1188 str = DoubleToCString(value_->Number(), buffer);
1188 } 1189 }
1189 return factory->NewStringFromAscii(CStrVector(str)); 1190 return factory->NewStringFromAscii(CStrVector(str));
1190 } 1191 }
1191 1192
1192 1193
1193 } } // namespace v8::internal 1194 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698