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

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
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index 073fafd168c4822969ceab06ff4d4e630dc86784..538cc2cc74360c591d0752dfb5436d05e06c3738 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);
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698