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())(); |