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