Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 3d4f8ed8a6d8e231d9d3d69e7014c6f83181520c..6fe05ff649b08b82160961fd99570804125f3529 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -3756,7 +3756,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(r1); |
+ __ pop(r2); |
__ CallStub(&stub); |
context()->Plug(r0); |
} |