Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: test/cctest/test-hashing.cc

Issue 1805533002: S390: Initial test changes and files checkin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: S390: Initial test changes and files checkin Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-disasm-s390.cc ('k') | test/cctest/test-lockers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-hashing.cc
diff --git a/test/cctest/test-hashing.cc b/test/cctest/test-hashing.cc
index 25a8e5c527f618e52ba0f58e0fffcf40d3254ab9..d6f055e3219091d0c814f093d10b6bd1d41b62c8 100644
--- a/test/cctest/test-hashing.cc
+++ b/test/cctest/test-hashing.cc
@@ -90,6 +90,15 @@ void generate(MacroAssembler* masm, uint32_t key) {
__ pop(kRootRegister);
__ jr(ra);
__ nop();
+#elif V8_TARGET_ARCH_S390
+ __ push(kRootRegister);
+ __ push(ip);
+ __ InitializeRootRegister();
+ __ lhi(r2, Operand(key));
+ __ GetNumberHash(r2, ip);
+ __ pop(ip);
+ __ pop(kRootRegister);
+ __ Ret();
#elif V8_TARGET_ARCH_PPC
__ function_descriptor();
__ push(kRootRegister);
« no previous file with comments | « test/cctest/test-disasm-s390.cc ('k') | test/cctest/test-lockers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698