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

Unified Diff: runtime/vm/dart_entry.cc

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed comments Created 5 years, 3 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/dart_entry.h ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.cc
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc
index 1053404fda494ed42346e4db8766c5160386d7e6..82055bb7b89f2531f6e63add2ff149d3fee6b3e5 100644
--- a/runtime/vm/dart_entry.cc
+++ b/runtime/vm/dart_entry.cc
@@ -100,27 +100,17 @@ RawObject* DartEntry::InvokeFunction(const Function& function,
ScopedIsolateStackLimits stack_limit(isolate);
SuspendLongJumpScope suspend_long_jump_scope(thread);
#if defined(USING_SIMULATOR)
-#if defined(ARCH_IS_64_BIT)
- // TODO(zra): Change to intptr_t so we have only one case.
- return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call(
- reinterpret_cast<int64_t>(entrypoint),
- static_cast<int64_t>(code.EntryPoint()),
- reinterpret_cast<int64_t>(&arguments_descriptor),
- reinterpret_cast<int64_t>(&arguments),
- reinterpret_cast<int64_t>(thread)));
+ return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call(
+ reinterpret_cast<intptr_t>(entrypoint),
+ reinterpret_cast<intptr_t>(&code),
+ reinterpret_cast<intptr_t>(&arguments_descriptor),
+ reinterpret_cast<intptr_t>(&arguments),
+ reinterpret_cast<intptr_t>(thread)));
#else
- return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call(
- reinterpret_cast<int32_t>(entrypoint),
- static_cast<int32_t>(code.EntryPoint()),
- reinterpret_cast<int32_t>(&arguments_descriptor),
- reinterpret_cast<int32_t>(&arguments),
- reinterpret_cast<int32_t>(thread)));
-#endif
-#else
- return entrypoint(code.EntryPoint(),
- arguments_descriptor,
- arguments,
- thread);
+ return entrypoint(code,
+ arguments_descriptor,
+ arguments,
+ thread);
#endif
}
« no previous file with comments | « runtime/vm/dart_entry.h ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698