Revision: 14690
Author: [email protected]
Date: Wed May 15 07:04:44 2013
Log: Shift additional_index by element_shift_size, not shift_size.
[email protected]
Review URL: https://chromiumcodereview.appspot.com/14629021
http://code.google.com/p/v8/source/detail?r=14690
Modified:
/branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc
=======================================
--- /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Tue May 14
15:51:33 2013
+++ /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Wed May 15
07:04:44 2013
@@ -3325,7 +3325,8 @@
uint32_t offset,
uint32_t additional_index) {
Register elements_pointer_reg = ToRegister(elements_pointer);
- int shift_size = ElementsKindToShiftSize(elements_kind);
+ int element_shift_size = ElementsKindToShiftSize(elements_kind);
+ int shift_size = element_shift_size;
if (key->IsConstantOperand()) {
int constant_value = ToInteger32(LConstantOperand::cast(key));
if (constant_value & 0xF0000000) {
@@ -3343,7 +3344,7 @@
return Operand(elements_pointer_reg,
ToRegister(key),
scale_factor,
- offset + (additional_index << shift_size));
+ offset + (additional_index << element_shift_size));
}
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.