| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index d94a1feb238c5e0abef2c1d2f670e30e2c72c6b9..7e138cb260aa570512eeddf29048e6af8a3f5127 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -3193,14 +3193,8 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
|
| __ LoadHeapObject(r1, function);
|
| }
|
|
|
| - // Change context if needed.
|
| - bool change_context =
|
| - (info()->closure()->context() != function->context()) ||
|
| - scope()->contains_with() ||
|
| - (scope()->num_heap_slots() > 0);
|
| - if (change_context) {
|
| - __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
|
| - }
|
| + // Change context.
|
| + __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
|
|
|
| // Set r0 to arguments count if adaption is not needed. Assumes that r0
|
| // is available to write to at this point.
|
|
|