| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index fbb90370b04076623ab84987f6bcedf3918f2153..1f4c33f20363c74daa5b156daf89c236ac19db05 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -2087,23 +2087,16 @@ void MacroAssembler::InvokeFunction(JSFunction* function,
|
| // You can't call a function without a valid frame.
|
| ASSERT(flag == JUMP_FUNCTION || has_frame());
|
|
|
| - ASSERT(function->is_compiled());
|
| // Get the function and setup the context.
|
| mov(edi, Immediate(Handle<JSFunction>(function)));
|
| mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
|
|
|
| ParameterCount expected(function->shared()->formal_parameter_count());
|
| - if (V8::UseCrankshaft()) {
|
| - // TODO(kasperl): For now, we always call indirectly through the
|
| - // code field in the function to allow recompilation to take effect
|
| - // without changing any of the call sites.
|
| - InvokeCode(FieldOperand(edi, JSFunction::kCodeEntryOffset),
|
| - expected, actual, flag, call_wrapper, call_kind);
|
| - } else {
|
| - Handle<Code> code(function->code());
|
| - InvokeCode(code, expected, actual, RelocInfo::CODE_TARGET,
|
| - flag, call_wrapper, call_kind);
|
| - }
|
| + // We call indirectly through the code field in the function to
|
| + // allow recompilation to take effect without changing any of the
|
| + // call sites.
|
| + InvokeCode(FieldOperand(edi, JSFunction::kCodeEntryOffset),
|
| + expected, actual, flag, call_wrapper, call_kind);
|
| }
|
|
|
|
|
|
|