Index: test/cctest/test-hashing.cc |
diff --git a/test/cctest/test-hashing.cc b/test/cctest/test-hashing.cc |
index 692861cfe4dcd090019b96e5a19febedebb5d421..c8ae4f30e5412abdef89d36304a4798be7bc5e6d 100644 |
--- a/test/cctest/test-hashing.cc |
+++ b/test/cctest/test-hashing.cc |
@@ -90,6 +90,14 @@ void generate(MacroAssembler* masm, uint32_t key) { |
__ pop(kRootRegister); |
__ jr(ra); |
__ nop(); |
+#elif V8_TARGET_ARCH_PPC |
+ __ function_descriptor(); |
+ __ push(kRootRegister); |
+ __ InitializeRootRegister(); |
+ __ li(r3, Operand(key)); |
+ __ GetNumberHash(r3, ip); |
+ __ pop(kRootRegister); |
+ __ blr(); |
#else |
#error Unsupported architecture. |
#endif |