Index: test/cctest/test-sampler-api.cc |
diff --git a/test/cctest/test-sampler-api.cc b/test/cctest/test-sampler-api.cc |
index 2cc15f816a84fd9862e45d8c27e8e7eea5cc5570..e2c1c25638ba46fad1b23ec262bb95568ef501e0 100644 |
--- a/test/cctest/test-sampler-api.cc |
+++ b/test/cctest/test-sampler-api.cc |
@@ -71,6 +71,12 @@ class SimulatorHelper { |
simulator_->get_register(v8::internal::Simulator::sp)); |
state->fp = reinterpret_cast<void*>( |
simulator_->get_register(v8::internal::Simulator::fp)); |
+#elif V8_TARGET_ARCH_S390 || V8_TARGET_ARCH_S390X |
+ state->pc = reinterpret_cast<void*>(simulator_->get_pc()); |
+ state->sp = reinterpret_cast<void*>( |
+ simulator_->get_register(v8::internal::Simulator::sp)); |
+ state->fp = reinterpret_cast<void*>( |
+ simulator_->get_register(v8::internal::Simulator::fp)); |
#endif |
} |