Reviewers: Mads Ager,
Description:
Fix cow fixed array map check in optimized arm code.
[email protected]
BUG=
TEST=
Please review this at http://codereview.chromium.org/6814016/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/arm/lithium-codegen-arm.cc
Index: src/arm/lithium-codegen-arm.cc
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
index
1ac509c5eda7e96440fe2570feeea84e709f7083..585b6587cfab7134b1bfefacd71076e8d3fae632
100644
--- a/src/arm/lithium-codegen-arm.cc
+++ b/src/arm/lithium-codegen-arm.cc
@@ -2410,6 +2410,7 @@ void LCodeGen::DoLoadElements(LLoadElements* instr) {
__ b(eq, &done);
__ LoadRoot(ip, Heap::kFixedCOWArrayMapRootIndex);
__ cmp(scratch, ip);
+ __ b(eq, &done);
__ ldr(scratch, FieldMemOperand(result, HeapObject::kMapOffset));
__ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
__ sub(scratch, scratch, Operand(FIRST_EXTERNAL_ARRAY_TYPE));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev