Reviewers: ,

Description:
Added an ASSERT to code from r3350

Please review this at http://codereview.chromium.org/441014

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/arm/ic-arm.cc


Index: src/arm/ic-arm.cc
===================================================================
--- src/arm/ic-arm.cc   (revision 3350)
+++ src/arm/ic-arm.cc   (working copy)
@@ -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
-~----------~----~----~----~------~----~------~--~---

Reply via email to