Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index f3bcf1abc3fc1974af2b7bd55a8aeec35aec8269..36d9146caf4ce9cee0c61d5dd0f9cf9433c7706d 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -3013,17 +3013,8 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
__ LoadHeapObject(edi, function); |
} |
- // Change context if needed. |
- bool change_context = |
- (info()->closure()->context() != function->context()) || |
- scope()->contains_with() || |
- (scope()->num_heap_slots() > 0); |
- |
- if (change_context) { |
- __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); |
- } else { |
- __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
- } |
+ // Change context. |
+ __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); |
// Set eax to arguments count if adaption is not needed. Assumes that eax |
// is available to write to at this point. |