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

Unified Diff: src/compiler/linkage.cc

Issue 544123002: Do not cache CodeStubInterfaceDescriptor on the isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/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): ?
}

Powered by Google App Engine
This is Rietveld 408576698