Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index b28ca423607b1d696946d7535fc55ea828830f06..1db4ad1b6c238ee93b4709cd9f2cc1af28d69990 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -942,9 +942,9 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
const intptr_t argc_tag = NativeArguments::ComputeArgcTag(function()); |
const bool is_leaf_call = |
(argc_tag & NativeArguments::AutoSetupScopeMask()) == 0; |
- const ExternalLabel* stub_entry; |
+ const StubEntry* stub_entry = NULL; |
if (is_bootstrap_native() || is_leaf_call) { |
- stub_entry = &StubCode::CallBootstrapCFunctionLabel(); |
+ stub_entry = StubCode::CallBootstrapCFunction_entry(); |
#if defined(USING_SIMULATOR) |
entry = Simulator::RedirectExternalReference( |
entry, Simulator::kBootstrapNativeCall, function().NumParameters()); |
@@ -953,7 +953,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
// In the case of non bootstrap native methods the CallNativeCFunction |
// stub generates the redirection address when running under the simulator |
// and hence we do not change 'entry' here. |
- stub_entry = &StubCode::CallNativeCFunctionLabel(); |
+ stub_entry = StubCode::CallNativeCFunction_entry(); |
#if defined(USING_SIMULATOR) |
if (!function().IsNativeAutoSetupScope()) { |
entry = Simulator::RedirectExternalReference( |
@@ -964,7 +964,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
__ LoadImmediate(R5, entry); |
__ LoadImmediate(R1, argc_tag); |
compiler->GenerateCall(token_pos(), |
- stub_entry, |
+ *stub_entry, |
RawPcDescriptors::kOther, |
locs()); |
__ Pop(result); |
@@ -1821,7 +1821,7 @@ class BoxAllocationSlowPath : public SlowPathCode { |
__ Bind(entry_label()); |
const Code& stub = |
Code::Handle(isolate, StubCode::GetAllocationStubForClass(cls_)); |
- const ExternalLabel label(stub.EntryPoint()); |
+ const StubEntry stub_entry(stub); |
LocationSummary* locs = instruction_->locs(); |
@@ -1829,7 +1829,7 @@ class BoxAllocationSlowPath : public SlowPathCode { |
compiler->SaveLiveRegisters(locs); |
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |
- &label, |
+ stub_entry, |
RawPcDescriptors::kOther, |
locs); |
compiler->AddStubCallTarget(stub); |
@@ -2393,9 +2393,8 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
return; |
} |
} |
- const ExternalLabel label(StubCode::AllocateArrayEntryPoint()); |
compiler->GenerateCall(token_pos(), |
- &label, |
+ *StubCode::AllocateArray_entry(), |
RawPcDescriptors::kOther, |
locs()); |
ASSERT(locs()->out(0).reg() == kResultReg); |
@@ -2681,9 +2680,8 @@ class AllocateContextSlowPath : public SlowPathCode { |
compiler->SaveLiveRegisters(locs); |
__ LoadImmediate(R1, instruction_->num_context_variables()); |
- const ExternalLabel label(StubCode::AllocateContextEntryPoint()); |
compiler->GenerateCall(instruction_->token_pos(), |
- &label, |
+ *StubCode::AllocateContext_entry(), |
RawPcDescriptors::kOther, |
locs); |
ASSERT(instruction_->locs()->out(0).reg() == R0); |
@@ -2738,9 +2736,8 @@ void AllocateContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
ASSERT(locs()->out(0).reg() == R0); |
__ LoadImmediate(R1, num_context_variables()); |
- const ExternalLabel label(StubCode::AllocateContextEntryPoint()); |
compiler->GenerateCall(token_pos(), |
- &label, |
+ *StubCode::AllocateContext_entry(), |
RawPcDescriptors::kOther, |
locs()); |
} |
@@ -6811,9 +6808,9 @@ void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
Isolate* isolate = compiler->isolate(); |
const Code& stub = Code::Handle(isolate, |
StubCode::GetAllocationStubForClass(cls())); |
- const ExternalLabel label(stub.EntryPoint()); |
+ const StubEntry stub_entry(stub); |
compiler->GenerateCall(token_pos(), |
- &label, |
+ stub_entry, |
RawPcDescriptors::kOther, |
locs()); |
compiler->AddStubCallTarget(stub); |
@@ -6823,8 +6820,8 @@ void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
ASSERT(!compiler->is_optimizing()); |
- const ExternalLabel label(StubCode::DebugStepCheckEntryPoint()); |
- compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
+ compiler->GenerateCall( |
+ token_pos(), *StubCode::DebugStepCheck_entry(), stub_kind_, locs()); |
} |