Index: test/cctest/test-sampler-api.cc |
diff --git a/test/cctest/test-sampler-api.cc b/test/cctest/test-sampler-api.cc |
index 2f6f92eb19c26556104a6920a6958d51b5a7f7c6..a877ee9e1ce6ca34549dda52e45d73e7e85ffd3b 100644 |
--- a/test/cctest/test-sampler-api.cc |
+++ b/test/cctest/test-sampler-api.cc |
@@ -65,6 +65,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_PPC || V8_TARGET_ARCH_PPC64 |
+ 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 |
} |