Index: src/x64/regexp-macro-assembler-x64.cc |
diff --git a/src/x64/regexp-macro-assembler-x64.cc b/src/x64/regexp-macro-assembler-x64.cc |
index 914241ecdc42eabb9d3a50edbf92e0d6a13a63cb..012dcc8b624b60324bb21d7ca4431ff3b659fab9 100644 |
--- a/src/x64/regexp-macro-assembler-x64.cc |
+++ b/src/x64/regexp-macro-assembler-x64.cc |
@@ -437,7 +437,7 @@ void RegExpMacroAssemblerX64::CheckNotBackReferenceIgnoreCase( |
// Set byte_length. |
__ movq(r8, rbx); |
// Isolate. |
- __ LoadAddress(r9, ExternalReference::isolate_address()); |
+ __ LoadAddress(r9, ExternalReference::isolate_address(isolate())); |
#else // AMD64 calling convention |
// Compute byte_offset2 (current position = rsi+rdi). |
__ lea(rax, Operand(rsi, rdi, times_1, 0)); |
@@ -448,14 +448,14 @@ void RegExpMacroAssemblerX64::CheckNotBackReferenceIgnoreCase( |
// Set byte_length. |
__ movq(rdx, rbx); |
// Isolate. |
- __ LoadAddress(rcx, ExternalReference::isolate_address()); |
+ __ LoadAddress(rcx, ExternalReference::isolate_address(isolate())); |
#endif |
{ // NOLINT: Can't find a way to open this scope without confusing the |
// linter. |
AllowExternalCallThatCantCauseGC scope(&masm_); |
ExternalReference compare = |
- ExternalReference::re_case_insensitive_compare_uc16(masm_.isolate()); |
+ ExternalReference::re_case_insensitive_compare_uc16(isolate()); |
__ CallCFunction(compare, num_arguments); |
} |
@@ -810,7 +810,7 @@ Handle<HeapObject> RegExpMacroAssemblerX64::GetCode(Handle<String> source) { |
Label stack_ok; |
ExternalReference stack_limit = |
- ExternalReference::address_of_stack_limit(masm_.isolate()); |
+ ExternalReference::address_of_stack_limit(isolate()); |
__ movq(rcx, rsp); |
__ movq(kScratchRegister, stack_limit); |
__ subq(rcx, Operand(kScratchRegister, 0)); |
@@ -1055,15 +1055,15 @@ Handle<HeapObject> RegExpMacroAssemblerX64::GetCode(Handle<String> source) { |
// Microsoft passes parameters in rcx, rdx, r8. |
// First argument, backtrack stackpointer, is already in rcx. |
__ lea(rdx, Operand(rbp, kStackHighEnd)); // Second argument |
- __ LoadAddress(r8, ExternalReference::isolate_address()); |
+ __ LoadAddress(r8, ExternalReference::isolate_address(isolate())); |
#else |
// AMD64 ABI passes parameters in rdi, rsi, rdx. |
__ movq(rdi, backtrack_stackpointer()); // First argument. |
__ lea(rsi, Operand(rbp, kStackHighEnd)); // Second argument. |
- __ LoadAddress(rdx, ExternalReference::isolate_address()); |
+ __ LoadAddress(rdx, ExternalReference::isolate_address(isolate())); |
#endif |
ExternalReference grow_stack = |
- ExternalReference::re_grow_stack(masm_.isolate()); |
+ ExternalReference::re_grow_stack(isolate()); |
__ CallCFunction(grow_stack, num_arguments); |
// If return NULL, we have failed to grow the stack, and |
// must exit with a stack-overflow exception. |
@@ -1266,7 +1266,7 @@ void RegExpMacroAssemblerX64::CallCheckStackGuardState() { |
__ lea(rdi, Operand(rsp, -kPointerSize)); |
#endif |
ExternalReference stack_check = |
- ExternalReference::re_check_stack_guard_state(masm_.isolate()); |
+ ExternalReference::re_check_stack_guard_state(isolate()); |
__ CallCFunction(stack_check, num_arguments); |
} |
@@ -1485,7 +1485,7 @@ void RegExpMacroAssemblerX64::CheckPreemption() { |
// Check for preemption. |
Label no_preempt; |
ExternalReference stack_limit = |
- ExternalReference::address_of_stack_limit(masm_.isolate()); |
+ ExternalReference::address_of_stack_limit(isolate()); |
__ load_rax(stack_limit); |
__ cmpq(rsp, rax); |
__ j(above, &no_preempt); |
@@ -1499,7 +1499,7 @@ void RegExpMacroAssemblerX64::CheckPreemption() { |
void RegExpMacroAssemblerX64::CheckStackLimit() { |
Label no_stack_overflow; |
ExternalReference stack_limit = |
- ExternalReference::address_of_regexp_stack_limit(masm_.isolate()); |
+ ExternalReference::address_of_regexp_stack_limit(isolate()); |
__ load_rax(stack_limit); |
__ cmpq(backtrack_stackpointer(), rax); |
__ j(above, &no_stack_overflow); |