Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index ed11ce9c5916349b300eb687b0f906db61900b06..ec6ad32dc0eb11128755db7c333094611f985dfe 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3720,7 +3720,9 @@ void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
ASSERT(args->length() == 3); |
VisitForStackValue(args->at(0)); |
VisitForStackValue(args->at(1)); |
- VisitForStackValue(args->at(2)); |
+ VisitForAccumulatorValue(args->at(2)); |
+ __ pop(ebx); |
+ __ pop(ecx); |
__ CallStub(&stub); |
context()->Plug(eax); |
} |