Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 54e9eaf1d60969a65cd0ac17dd852e1a3bcf411e..5ce7686e3c384d97ceff946b01b196ca8e1733e0 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -2091,7 +2091,7 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
__ mov(ecx, isolate()->factory()->the_hole_value()); |
Label push_argument_holes, push_frame; |
__ bind(&push_argument_holes); |
- __ sub(edx, Immediate(1)); |
+ __ sub(edx, Immediate(Smi::FromInt(1))); |
__ j(carry, &push_frame); |
__ push(ecx); |
__ jmp(&push_argument_holes); |