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

Side by Side Diff: src/ast.cc

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/assembler.cc ('k') | src/atomicops.h » ('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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 } 668 }
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 if (value->IsSmi()) { 678 ASSERT(!value->IsTheHole());
679 elements_kind_ = static_cast<ElementsKind>(Smi::cast(value)->value()); 679 if (value->IsAllocationSite()) {
680 AllocationSite* site = AllocationSite::cast(value);
681 elements_kind_ = site->GetElementsKindPayload();
680 } 682 }
681 } 683 }
682 } 684 }
683 685
684 686
685 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { 687 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
686 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) 688 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this)
687 ? oracle->GetObjectLiteralStoreMap(this) 689 ? oracle->GetObjectLiteralStoreMap(this)
688 : Handle<Map>::null(); 690 : Handle<Map>::null();
689 } 691 }
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1185 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1184 str = arr; 1186 str = arr;
1185 } else { 1187 } else {
1186 str = DoubleToCString(value_->Number(), buffer); 1188 str = DoubleToCString(value_->Number(), buffer);
1187 } 1189 }
1188 return factory->NewStringFromAscii(CStrVector(str)); 1190 return factory->NewStringFromAscii(CStrVector(str));
1189 } 1191 }
1190 1192
1191 1193
1192 } } // namespace v8::internal 1194 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/atomicops.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698