Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 8ddc9343fc59261c1e1d07e3056c83a91444a237..23dfc24b6e9d3f12897b23ad33fe11751896b7ff 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -41,20 +41,14 @@ namespace v8 { |
namespace internal { |
-CodeStubInterfaceDescriptor* |
- KeyedLoadFastElementStub::GetInterfaceDescriptor(Isolate* isolate) { |
- static CodeStubInterfaceDescriptor* result = NULL; |
- if (result == NULL) { |
- Handle<Code> miss = isolate->builtins()->KeyedLoadIC_Miss(); |
- static Register registers[] = { edx, ecx }; |
- static CodeStubInterfaceDescriptor info = { |
- 2, |
- registers, |
- miss |
- }; |
- result = &info; |
- } |
- return result; |
+void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( |
+ Isolate* isolate, |
+ CodeStubInterfaceDescriptor* descriptor) { |
+ static Register registers[] = { edx, ecx }; |
+ descriptor->register_param_count_ = 2; |
+ descriptor->register_params_ = registers; |
+ descriptor->deoptimization_handler_ = |
+ isolate->builtins()->KeyedLoadIC_Miss(); |
} |