Revision: 10443
Author:   [email protected]
Date:     Thu Jan 19 06:43:25 2012
Log:      Add missing SmiUntag for string hash calculation in
in-snapshot code on IA32.
Review URL: https://chromiumcodereview.appspot.com/9254027
http://code.google.com/p/v8/source/detail?r=10443

Modified:
 /branches/bleeding_edge/src/ia32/code-stubs-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/code-stubs-ia32.cc Tue Jan 17 06:29:17 2012 +++ /branches/bleeding_edge/src/ia32/code-stubs-ia32.cc Thu Jan 19 06:43:25 2012
@@ -6042,6 +6042,7 @@
     __ mov(scratch, Operand::StaticArray(scratch,
                                          times_pointer_size,
                                          roots_array_start));
+    __ SmiUntag(scratch);
     __ add(scratch, character);
     __ mov(hash, scratch);
     __ shl(scratch, 10);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to