Add missing SmiUntag for string hash calculation in
in-snapshot code on IA32. Review URL: https://chromiumcodereview.appspot.com/9254027 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10443 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
ae698e73f4
commit
d4cf1699ec
@ -6042,6 +6042,7 @@ void StringHelper::GenerateHashInit(MacroAssembler* masm,
|
||||
__ mov(scratch, Operand::StaticArray(scratch,
|
||||
times_pointer_size,
|
||||
roots_array_start));
|
||||
__ SmiUntag(scratch);
|
||||
__ add(scratch, character);
|
||||
__ mov(hash, scratch);
|
||||
__ shl(scratch, 10);
|
||||
|
Loading…
Reference in New Issue
Block a user