| Index: src/builtins/arm/builtins-arm.cc
|
| diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc
|
| index 24c78ce17a3e40c4503fe9dff1908b16ddbe1308..f1ef695e224801487ce8753a3e37e32ae0fdc8d9 100644
|
| --- a/src/builtins/arm/builtins-arm.cc
|
| +++ b/src/builtins/arm/builtins-arm.cc
|
| @@ -1324,29 +1324,13 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
| const int bailout_id = BailoutId::None().ToInt();
|
| __ cmp(temp, Operand(Smi::FromInt(bailout_id)));
|
| __ b(ne, &loop_bottom);
|
| -
|
| // Literals available?
|
| - Label got_literals, maybe_cleared_weakcell;
|
| __ ldr(temp, FieldMemOperand(array_pointer,
|
| SharedFunctionInfo::kOffsetToPreviousLiterals));
|
| - // temp contains either a WeakCell pointing to the literals array or the
|
| - // literals array directly.
|
| - STATIC_ASSERT(WeakCell::kValueOffset == FixedArray::kLengthOffset);
|
| - __ ldr(r4, FieldMemOperand(temp, WeakCell::kValueOffset));
|
| - __ JumpIfSmi(r4, &maybe_cleared_weakcell);
|
| - // r4 is a pointer, therefore temp is a WeakCell pointing to a literals array.
|
| __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
|
| - __ jmp(&got_literals);
|
| -
|
| - // r4 is a smi. If it's 0, then we are looking at a cleared WeakCell
|
| - // around the literals array, and we should visit the runtime. If it's > 0,
|
| - // then temp already contains the literals array.
|
| - __ bind(&maybe_cleared_weakcell);
|
| - __ cmp(r4, Operand(Smi::FromInt(0)));
|
| - __ b(eq, &gotta_call_runtime);
|
| + __ JumpIfSmi(temp, &gotta_call_runtime);
|
|
|
| // Save the literals in the closure.
|
| - __ bind(&got_literals);
|
| __ ldr(r4, MemOperand(sp, 0));
|
| __ str(temp, FieldMemOperand(r4, JSFunction::kLiteralsOffset));
|
| __ push(index);
|
|
|