Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index bee6268adaa3e2c5f4e818253fe1d367876da3de..f27927de96f3f1cca25e841129a27439d03f4ff8 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2179,14 +2179,6 @@ bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { |
} |
-void MacroAssembler::IllegalOperation(int num_arguments) { |
- if (num_arguments > 0) { |
- add(esp, Immediate(num_arguments * kPointerSize)); |
- } |
- mov(eax, Immediate(isolate()->factory()->undefined_value())); |
-} |
- |
- |
void MacroAssembler::IndexFromHash(Register hash, Register index) { |
// The assert checks that the constants for the maximum number of digits |
// for an array index cached in the hash field and the number of bits |
@@ -2212,10 +2204,7 @@ void MacroAssembler::CallRuntime(const Runtime::Function* f, |
// If the expected number of arguments of the runtime function is |
// constant, we check that the actual number of arguments match the |
// expectation. |
- if (f->nargs >= 0 && f->nargs != num_arguments) { |
- IllegalOperation(num_arguments); |
- return; |
- } |
+ CHECK(f->nargs < 0 || f->nargs == num_arguments); |
// TODO(1236192): Most runtime routines don't need the number of |
// arguments passed in because it is constant. At some point we |