Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index fe0053d36b2b473e955a964328b70211a6919a4b..a85152d7a98e8b107c81611a4aeecf21ec3ff8a2 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1415,8 +1415,7 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
// eax = regexp literal clone. |
__ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
__ mov(ecx, FieldOperand(edi, JSFunction::kLiteralsOffset)); |
- int literal_offset = |
- FixedArray::kHeaderSize + expr->literal_index() * kPointerSize; |
+ int literal_offset = LiteralsArray::OffsetOfLiteralAt(expr->literal_index()); |
__ mov(ebx, FieldOperand(ecx, literal_offset)); |
__ cmp(ebx, isolate()->factory()->undefined_value()); |
__ j(not_equal, &materialized, Label::kNear); |