Index: runtime/vm/stub_code_x64.cc |
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc |
index db1404600691af2baad7f8fdc0cd61b0706391d2..7b4561d93637a7470db3f8aeae8c8468faf28efb 100644 |
--- a/runtime/vm/stub_code_x64.cc |
+++ b/runtime/vm/stub_code_x64.cc |
@@ -185,8 +185,8 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) { |
__ movq(CallingConventions::kArg1Reg, RSP); |
// Pass pointer to function entrypoint. |
__ movq(CallingConventions::kArg2Reg, RBX); |
- __ LoadExternalLabel( |
- RAX, &NativeEntry::NativeCallWrapperLabel(), kNotPatchable); |
+ |
+ __ movq(RAX, Address(THR, Thread::native_call_wrapper_entry_point_offset())); |
__ CallCFunction(RAX); |
// Mark that the isolate is executing Dart code. |