Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index 26283826e0e4f6101abdfc6f892dc0ab1d75ceef..6807d082d82d7b275f251d30ffe20b2af7881ad1 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -1082,6 +1082,14 @@ inline Operand FieldOperand(Register object, |
} |
+inline Operand FixedArrayElementOperand(Register array, |
+ Register index_as_smi, |
+ int additional_offset = 0) { |
+ int offset = FixedArray::kHeaderSize + additional_offset * kPointerSize; |
+ return FieldOperand(array, index_as_smi, times_half_pointer_size, offset); |
+} |
+ |
+ |
inline Operand ContextOperand(Register context, int index) { |
return Operand(context, Context::SlotOffset(index)); |
} |