Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 800c0f132dab246a27ca5541101c427d12eb1c10..a571f9f7cd1068d1c5989b091b2169af9e7a3533 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -37,20 +37,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[] = { r1, r0 }; |
- static CodeStubInterfaceDescriptor info = { |
- 2, |
- registers, |
- miss |
- }; |
- result = &info; |
- } |
- return result; |
+void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( |
+ Isolate* isolate, |
+ CodeStubInterfaceDescriptor* descriptor) { |
+ static Register registers[] = { r1, r0 }; |
+ descriptor->register_param_count_ = 2; |
+ descriptor->register_params_ = registers; |
+ descriptor->deoptimization_handler_ = |
+ isolate->builtins()->KeyedLoadIC_Miss(); |
} |