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

Unified Diff: src/compiler/raw-machine-assembler.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/raw-machine-assembler.cc
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc
index 329d8deada710d926740db43f3eba3cba03bdac5..1af83395b69163bf5170418ce545e60e645062e3 100644
--- a/src/compiler/raw-machine-assembler.cc
+++ b/src/compiler/raw-machine-assembler.cc
@@ -84,12 +84,11 @@ Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver,
Node* context, Node* frame_state,
CallFunctionFlags flags) {
CallFunctionStub stub(isolate(), 0, flags);
- CodeStubInterfaceDescriptor* d = isolate()->code_stub_interface_descriptor(
- reinterpret_cast<CodeStub*>(&stub)->MajorKey());
- stub.InitializeInterfaceDescriptor(d);
+ CodeStubInterfaceDescriptor d;
+ stub.InitializeInterfaceDescriptor(&d);
CallDescriptor* desc = Linkage::GetStubCallDescriptor(
- d, 1, CallDescriptor::kNeedsFrameState, zone());
+ &d, 1, CallDescriptor::kNeedsFrameState, zone());
Node* stub_code = HeapConstant(stub.GetCode());
Node* call = graph()->NewNode(common()->Call(desc), stub_code, function,
receiver, context, frame_state);

Powered by Google App Engine
This is Rietveld 408576698