Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 3e688dfd004c7bc4aa29dfa2637ce62ba6203bc4..36de28ff19d93261ed00520d46329e9d004c4585 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2892,14 +2892,8 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
__ LoadHeapObject(rdi, function); |
} |
- // Change context if needed. |
- bool change_context = |
- (info()->closure()->context() != function->context()) || |
- scope()->contains_with() || |
- (scope()->num_heap_slots() > 0); |
- if (change_context) { |
- __ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); |
- } |
+ // Change context. |
+ __ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); |
// Set rax to arguments count if adaption is not needed. Assumes that rax |
// is available to write to at this point. |