Revision: 3354
Author: [email protected]
Date: Wed Nov 25 00:14:23 2009
Log: Added an ASSERT to code from r3350
Review URL: http://codereview.chromium.org/441014
http://code.google.com/p/v8/source/detail?r=3354
Modified:
/branches/bleeding_edge/src/arm/ic-arm.cc
=======================================
--- /branches/bleeding_edge/src/arm/ic-arm.cc Tue Nov 24 06:10:06 2009
+++ /branches/bleeding_edge/src/arm/ic-arm.cc Wed Nov 25 00:14:23 2009
@@ -112,6 +112,8 @@
// Add the probe offset (i + i * i) left shifted to avoid right
shifting
// the hash in a separate instruction. The value hash + i + i * i is
right
// shifted in the following and instruction.
+ ASSERT(StringDictionary::GetProbeOffset(i) <
+ 1 << (32 - String::kHashFieldOffset));
__ add(t1, t1, Operand(
StringDictionary::GetProbeOffset(i) <<
String::kHashFieldOffset));
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---