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

Unified Diff: src/arm/simulator-arm.cc

Issue 155350: Changed hash table to use more of the hash value when probing. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 5 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
Index: src/arm/simulator-arm.cc
===================================================================
--- src/arm/simulator-arm.cc (revision 2481)
+++ src/arm/simulator-arm.cc (working copy)
@@ -45,6 +45,7 @@
using ::v8::internal::OS;
using ::v8::internal::ReadLine;
using ::v8::internal::DeleteArray;
+using ::v8::internal::RotateRight;
// This macro provides a platform independent use of sscanf. The reason for
// SScanF not being implemented in a platform independent was through
@@ -817,7 +818,12 @@
}
case ROR: {
- UNIMPLEMENTED();
+ ASSERT(shift_amount > 0);
+ uint32_t uresult = static_cast<uint32_t>(result);
+ uresult = RotateRight(uresult, shift_amount - 1);
+ *carry_out = (uresult & 1) == 1;
+ uresult = RotateRight(uresult, 1);
+ result = static_cast<int32_t>(uresult);
break;
}

Powered by Google App Engine
This is Rietveld 408576698