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

Side by Side Diff: src/ast.cc

Issue 16925008: Generate StoreGlobal stubs with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address feedback 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
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 ASSERT(!value->IsTheHole());
678 if (value->IsSmi()) { 679 if (value->IsSmi()) {
679 elements_kind_ = static_cast<ElementsKind>(Smi::cast(value)->value()); 680 elements_kind_ = static_cast<ElementsKind>(Smi::cast(value)->value());
680 } 681 }
681 } 682 }
682 } 683 }
683 684
684 685
685 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { 686 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
686 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) 687 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this)
687 ? oracle->GetObjectLiteralStoreMap(this) 688 ? oracle->GetObjectLiteralStoreMap(this)
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1184 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1184 str = arr; 1185 str = arr;
1185 } else { 1186 } else {
1186 str = DoubleToCString(value_->Number(), buffer); 1187 str = DoubleToCString(value_->Number(), buffer);
1187 } 1188 }
1188 return factory->NewStringFromAscii(CStrVector(str)); 1189 return factory->NewStringFromAscii(CStrVector(str));
1189 } 1190 }
1190 1191
1191 1192
1192 } } // namespace v8::internal 1193 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698