Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: runtime/vm/stub_code_arm.cc

Issue 315223003: Use CallBootstrapC stub for leaf native calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm.cc
diff --git a/runtime/vm/stub_code_arm.cc b/runtime/vm/stub_code_arm.cc
index b0ef21f3a262d41f1cb826619a6a03b37836652b..c9fa08a0177ad0007a8138c99c6085ecbedfe729 100644
--- a/runtime/vm/stub_code_arm.cc
+++ b/runtime/vm/stub_code_arm.cc
@@ -216,12 +216,6 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
__ stm(IA, SP, (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3));
__ mov(R0, Operand(SP)); // Pass the pointer to the NativeArguments.
- // Call native function (setsup scope if not leaf function).
- Label leaf_call;
- Label done;
- __ TestImmediate(R1, NativeArguments::AutoSetupScopeMask());
- __ b(&leaf_call, EQ);
-
__ mov(R1, Operand(R5)); // Pass the function entrypoint to call.
// Call native function invocation wrapper or redirection via simulator.
#if defined(USING_SIMULATOR)
@@ -233,13 +227,6 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
#else
__ BranchLink(&NativeEntry::NativeCallWrapperLabel());
#endif
- __ b(&done);
-
- __ Bind(&leaf_call);
- // Call native function or redirection via simulator.
- __ blx(R5);
-
- __ Bind(&done);
// Mark that the isolate is executing Dart code.
__ LoadImmediate(R2, VMTag::kScriptTagId);
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698