Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 02c9f15b37bd0a004d6a3e58374a147d7f8b4834..e429adb3cdde995bad8892a5529dd9248ff60dec 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -1946,7 +1946,7 @@ static void CallFunctionNoFeedback(MacroAssembler* masm, |
// Load the receiver from the stack. |
__ mov(eax, Operand(esp, (argc + 1) * kPointerSize)); |
- if (call_as_method) { |
+ if (needs_checks) { |
__ JumpIfSmi(eax, &wrap); |
__ CmpObjectType(eax, FIRST_SPEC_OBJECT_TYPE, ecx); |