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

Unified Diff: src/code-stubs.cc

Issue 535873002: Encapsulate megamorphic load/tail-call in hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup and ports. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index b9f4e52997a65a0bc64367ee8ec0f699b00d9244..1272bad55e32760c79dfd279fdf7870582be3c8f 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -585,6 +585,13 @@ void VectorKeyedLoadStub::InitializeInterfaceDescriptor(
}
+void MegamorphicLoadStub::InitializeInterfaceDescriptor(
+ CodeStubInterfaceDescriptor* descriptor) {
+ LoadDescriptor call_descriptor(isolate());
+ descriptor->Initialize(MajorKey(), call_descriptor);
+}
+
+
void FastNewClosureStub::InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) {
FastNewClosureDescriptor call_descriptor(isolate());
@@ -1015,6 +1022,13 @@ void KeyedLoadGenericStub::InstallDescriptors(Isolate* isolate) {
// static
+void MegamorphicLoadStub::InstallDescriptors(Isolate* isolate) {
+ MegamorphicLoadStub stub(isolate, LoadIC::State(CONTEXTUAL));
+ InstallDescriptor(isolate, &stub);
+}
+
+
+// static
void StoreFieldStub::InstallDescriptors(Isolate* isolate) {
StoreFieldStub stub(isolate, FieldIndex::ForInObjectOffset(0),
Representation::None());
« src/code-stubs.h ('K') | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698