Index: test/cctest/test-code-stubs-a64.cc |
diff --git a/test/cctest/test-code-stubs-a64.cc b/test/cctest/test-code-stubs-a64.cc |
index 5d5d3702edd74ccc20594be60f339cb2f817b324..5f82d05c9f5c8394335890730719c84af3aab8a8 100644 |
--- a/test/cctest/test-code-stubs-a64.cc |
+++ b/test/cctest/test-code-stubs-a64.cc |
@@ -137,9 +137,12 @@ static Isolate* GetIsolateFrom(LocalContext* context) { |
int32_t RunGeneratedCodeCallWrapper(ConvertDToIFunc func, |
double from) { |
#ifdef USE_SIMULATOR |
+ Simulator::CallArgument args[] = { |
+ Simulator::CallArgument(from), |
+ Simulator::CallArgument::End() |
+ }; |
return Simulator::current(Isolate::Current())->CallInt64( |
- FUNCTION_ADDR(func), Simulator::CallArgument(from), |
- Simulator::CallArgument::End()); |
+ FUNCTION_ADDR(func), args); |
#else |
return (*func)(from); |
#endif |