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

Unified Diff: runtime/vm/object_test.cc

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index 028455deab2356593c5ce032d5c27fb5384cafc0..faf3eeca4500b28182d791f9dd734850103c24bc 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -2769,6 +2769,9 @@ TEST_CASE(EmbedStringInCode) {
#if defined(USING_SIMULATOR)
retval = bit_copy<uword, int64_t>(Simulator::Current()->Call(
static_cast<intptr_t>(instructions.EntryPoint()), 0, 0, 0, 0));
+#elif defined(TARGET_ARCH_X64)
+ typedef uword (*EmbedStringCode)(const Code&);
+ retval = reinterpret_cast<EmbedStringCode>(instructions.EntryPoint())(code);
#else
typedef uword (*EmbedStringCode)();
retval = reinterpret_cast<EmbedStringCode>(instructions.EntryPoint())();

Powered by Google App Engine
This is Rietveld 408576698