Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 00c5367a10d8bdbb9cbe44c4847330a1d4b3a418..d27b5fb2a29c28a3895eef7f929839a7aab8a5bb 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -1200,7 +1200,7 @@ void TranscendentalCacheStub::Generate(MacroAssembler* masm) { |
ExternalReference::transcendental_cache_array_address(masm->isolate()); |
__ movq(rax, cache_array); |
int cache_array_index = |
- type_ * sizeof(Isolate::Current()->transcendental_cache()->caches_[0]); |
+ type_ * sizeof(masm->isolate()->transcendental_cache()->caches_[0]); |
__ movq(rax, Operand(rax, cache_array_index)); |
// rax points to the cache for the type type_. |
// If NULL, the cache hasn't been initialized yet, so go through runtime. |
@@ -3490,7 +3490,7 @@ void CallFunctionStub::Generate(MacroAssembler* masm) { |
__ SetCallKind(rcx, CALL_AS_METHOD); |
__ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION); |
Handle<Code> adaptor = |
- Isolate::Current()->builtins()->ArgumentsAdaptorTrampoline(); |
+ isolate->builtins()->ArgumentsAdaptorTrampoline(); |
__ Jump(adaptor, RelocInfo::CODE_TARGET); |
} |
@@ -3545,7 +3545,7 @@ bool CEntryStub::NeedsImmovableCode() { |
} |
-bool CEntryStub::IsPregenerated() { |
+bool CEntryStub::IsPregenerated(Isolate* isolate) { |
#ifdef _WIN64 |
return result_size_ == 1; |
#else |
@@ -5937,7 +5937,7 @@ struct AheadOfTimeWriteBarrierStubList kAheadOfTime[] = { |
#undef REG |
-bool RecordWriteStub::IsPregenerated() { |
+bool RecordWriteStub::IsPregenerated(Isolate* isolate) { |
for (AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; |
!entry->object.is(no_reg); |
entry++) { |