Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 317a14c3ad7091f99aeec3f9b922b33cd8ad14d7..6e66b6e85fc548ed15d6365e9931e3dd9193d7c3 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1690,7 +1690,8 @@ void MacroAssembler::InvokeFunction(Register fun, |
void MacroAssembler::InvokeFunction(JSFunction* function, |
const ParameterCount& actual, |
InvokeFlag flag, |
- const CallWrapper& call_wrapper) { |
+ const CallWrapper& call_wrapper, |
+ CallKind call_kind) { |
ASSERT(function->is_compiled()); |
// Get the function and setup the context. |
mov(edi, Immediate(Handle<JSFunction>(function))); |
@@ -1702,11 +1703,11 @@ void MacroAssembler::InvokeFunction(JSFunction* function, |
// 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); |
+ expected, actual, flag, call_wrapper, call_kind); |
} else { |
Handle<Code> code(function->code()); |
InvokeCode(code, expected, actual, RelocInfo::CODE_TARGET, |
- flag, call_wrapper); |
+ flag, call_wrapper, call_kind); |
} |
} |
@@ -1723,7 +1724,7 @@ void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, |
ParameterCount expected(0); |
GetBuiltinFunction(edi, id); |
InvokeCode(FieldOperand(edi, JSFunction::kCodeEntryOffset), |
- expected, expected, flag, call_wrapper); |
+ expected, expected, flag, call_wrapper, CALL_AS_METHOD); |
} |
void MacroAssembler::GetBuiltinFunction(Register target, |