Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index e2931008bfbaf8c28c1a9699c70d7c01cb045975..d433e3c81a2a883fb20e9c9563acc899995d6ed2 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -2853,7 +2853,8 @@ void MacroAssembler::InvokeFunction(Register function, |
void MacroAssembler::InvokeFunction(JSFunction* function, |
const ParameterCount& actual, |
- InvokeFlag flag) { |
+ InvokeFlag flag, |
+ CallKind call_kind) { |
ASSERT(function->is_compiled()); |
// Get the function and setup the context. |
@@ -2866,7 +2867,7 @@ void MacroAssembler::InvokeFunction(JSFunction* function, |
if (V8::UseCrankshaft()) { |
UNIMPLEMENTED_MIPS(); |
} else { |
- InvokeCode(code, expected, actual, RelocInfo::CODE_TARGET, flag); |
+ InvokeCode(code, expected, actual, RelocInfo::CODE_TARGET, flag, call_kind); |
} |
} |
@@ -3348,10 +3349,12 @@ void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, |
GetBuiltinEntry(t9, id); |
if (flag == CALL_FUNCTION) { |
call_wrapper.BeforeCall(CallSize(t9)); |
+ SetCallKind(t1, CALL_AS_METHOD); |
Call(t9); |
call_wrapper.AfterCall(); |
} else { |
ASSERT(flag == JUMP_FUNCTION); |
+ SetCallKind(t1, CALL_AS_METHOD); |
Jump(t9); |
} |
} |