Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 89f21e9dbd940b8628610ca50c53c25e3ebf630c..3274fd5d5c123c6b2eb0c9241471f63a49cdef91 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -262,6 +262,26 @@ void StoreGlobalStub::InitializeInterfaceDescriptor( |
} |
+void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( |
+ Isolate* isolate, |
+ CodeStubInterfaceDescriptor* descriptor) { |
+ static Register registers[] = { eax, ebx, ecx, edx }; |
+ descriptor->register_param_count_ = 4; |
+ descriptor->register_params_ = registers; |
+ switch (strict_mode_) { |
+ case kNonStrictMode: |
+ descriptor->deoptimization_handler_ = Runtime::FunctionForId( |
+ Runtime::kElementsTransitionAndStoreNonStrict)->entry; |
+ break; |
+ |
+ case kStrictMode: |
+ descriptor->deoptimization_handler_ = Runtime::FunctionForId( |
+ Runtime::kElementsTransitionAndStoreStrict)->entry; |
+ break; |
+ } |
+} |
+ |
+ |
#define __ ACCESS_MASM(masm) |