Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index 9fac9c347307a8cf3a13dad3251fb7f4a1043598..e6e53b14d6388f1ccd6d5d2ee3e24aa51d946604 100644 |
--- a/src/compiler/linkage.cc |
+++ b/src/compiler/linkage.cc |
@@ -52,9 +52,9 @@ Linkage::Linkage(CompilationInfo* info) : info_(info) { |
} else if (info->code_stub() != NULL) { |
// Use the code stub interface descriptor. |
HydrogenCodeStub* stub = info->code_stub(); |
- CodeStubInterfaceDescriptor* descriptor = |
- info_->isolate()->code_stub_interface_descriptor(stub->MajorKey()); |
- incoming_ = GetStubCallDescriptor(descriptor); |
+ CodeStubInterfaceDescriptor descriptor; |
+ stub->InitializeInterfaceDescriptor(&descriptor); |
+ incoming_ = GetStubCallDescriptor(&descriptor); |
} else { |
incoming_ = NULL; // TODO(titzer): ? |
} |