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

Unified Diff: runtime/vm/dart_entry.cc

Issue 221133002: Begins work on ARM64, first assembler test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: adds files Created 6 years, 9 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_api_impl_test.cc ('k') | runtime/vm/dart_entry_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.cc
===================================================================
--- runtime/vm/dart_entry.cc (revision 34648)
+++ runtime/vm/dart_entry.cc (working copy)
@@ -58,12 +58,22 @@
ASSERT(!code.IsNull());
ASSERT(Isolate::Current()->no_callback_scope_depth() == 0);
#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>(&context)));
+#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>(&context)));
+#endif
#else
return entrypoint(code.EntryPoint(),
arguments_descriptor,
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/dart_entry_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698