Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 1df313debd45f4f402919afd9d98cafa5fb8ce55..d96694cc53d6ae46ad19b0def6b51e3e3e786d9b 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -105,8 +105,7 @@ Handle<Code> PlatformCodeStub::GenerateCode() { |
} |
-Handle<Code> CodeStub::GetCode() { |
- Isolate* isolate = Isolate::Current(); |
+Handle<Code> CodeStub::GetCode(Isolate* isolate) { |
Factory* factory = isolate->factory(); |
Heap* heap = isolate->heap(); |
Code* code; |
@@ -604,10 +603,10 @@ void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) { |
} |
-void StubFailureTrampolineStub::GenerateAheadOfTime() { |
+void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { |
int i = 0; |
for (; i <= StubFailureTrampolineStub::kMaxExtraExpressionStackCount; ++i) { |
- StubFailureTrampolineStub(i).GetCode(); |
+ StubFailureTrampolineStub(i).GetCode(isolate); |
} |
} |