Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 703fe754361c59e7d2349847d8521f5d89af9fb4..04aa9c97153352fe1e6b2ed90bef636cd57b414c 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -3728,7 +3728,7 @@ void MacroAssembler::InvokeFunction(Register function, |
} |
-void MacroAssembler::InvokeFunction(Register function, |
+void MacroAssembler::InvokeFunction(Handle<JSFunction> function, |
const ParameterCount& expected, |
const ParameterCount& actual, |
InvokeFlag flag, |
@@ -3737,10 +3737,8 @@ void MacroAssembler::InvokeFunction(Register function, |
// You can't call a function without a valid frame. |
ASSERT(flag == JUMP_FUNCTION || has_frame()); |
- // Contract with called JS functions requires that function is passed in a1. |
- ASSERT(function.is(a1)); |
- |
// Get the function and setup the context. |
+ li(a1, function); |
lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
// We call indirectly through the code field in the function to |
@@ -3751,17 +3749,6 @@ void MacroAssembler::InvokeFunction(Register function, |
} |
-void MacroAssembler::InvokeFunction(Handle<JSFunction> function, |
- const ParameterCount& expected, |
- const ParameterCount& actual, |
- InvokeFlag flag, |
- const CallWrapper& call_wrapper, |
- CallKind call_kind) { |
- li(a1, function); |
- InvokeFunction(a1, expected, actual, flag, call_wrapper, call_kind); |
-} |
- |
- |
void MacroAssembler::IsObjectJSObjectType(Register heap_object, |
Register map, |
Register scratch, |