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

Unified Diff: runtime/vm/stub_code_arm64.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
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index b2f0db8adfbc18f21856936783cb0cfd7b92dfe3..d397ce870b8d14499f25758b576116a68b95effb 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -229,12 +229,6 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
__ mov(R26, CSP);
__ mov(CSP, SP);
- // Call native function (setsup scope if not leaf function).
- Label leaf_call;
- Label done;
- __ TestImmediate(R1, NativeArguments::AutoSetupScopeMask(), kNoPP);
- __ b(&leaf_call, EQ);
-
__ mov(R1, R5); // Pass the function entrypoint to call.
// Call native function invocation wrapper or redirection via simulator.
#if defined(USING_SIMULATOR)
@@ -246,13 +240,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
#else
__ BranchLink(&NativeEntry::NativeCallWrapperLabel(), kNoPP);
#endif
- __ b(&done);
-
- __ Bind(&leaf_call);
- // Call native function or redirection via simulator.
- __ blr(R5);
- __ Bind(&done);
// Restore SP and CSP.
__ mov(SP, CSP);
__ mov(CSP, R26);

Powered by Google App Engine
This is Rietveld 408576698