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

Unified Diff: runtime/vm/stub_code_x64.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_mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc
index 490d473692993c48e5a38167f13756265c03bda5..ef8d3993ba6753f5dac488b2e139f7f8f5072d9e 100644
--- a/runtime/vm/stub_code_x64.cc
+++ b/runtime/vm/stub_code_x64.cc
@@ -194,17 +194,8 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
__ movq(Address(RSP, retval_offset), RAX); // Set retval in NativeArguments.
__ movq(RDI, RSP); // Pass the pointer to the NativeArguments.
- // Call native function (setsup scope if not leaf function).
- Label leaf_call;
- Label done;
- __ testq(R10, Immediate(NativeArguments::AutoSetupScopeMask()));
- __ j(ZERO, &leaf_call);
__ movq(RSI, RBX); // Pass pointer to function entrypoint.
__ call(&NativeEntry::NativeCallWrapperLabel());
- __ jmp(&done);
- __ Bind(&leaf_call);
- __ call(RBX);
- __ Bind(&done);
// Mark that the isolate is executing Dart code.
__ movq(Address(CTX, Isolate::vm_tag_offset()),
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698