Index: src/x87/full-codegen-x87.cc |
diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc |
index 98f1b605bf6b0777373b71546489e7e2a4547b11..2eb7ac862098f1863087c8f52e4b04acae567f15 100644 |
--- a/src/x87/full-codegen-x87.cc |
+++ b/src/x87/full-codegen-x87.cc |
@@ -3356,9 +3356,9 @@ void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { |
Register index = ebx; |
Register value = ecx; |
- VisitForStackValue(args->at(0)); // index |
- VisitForStackValue(args->at(1)); // value |
- VisitForAccumulatorValue(args->at(2)); // string |
+ VisitForStackValue(args->at(1)); // index |
+ VisitForStackValue(args->at(2)); // value |
+ VisitForAccumulatorValue(args->at(0)); // string |
__ pop(value); |
__ pop(index); |
@@ -3392,9 +3392,9 @@ void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) { |
Register index = ebx; |
Register value = ecx; |
- VisitForStackValue(args->at(0)); // index |
- VisitForStackValue(args->at(1)); // value |
- VisitForAccumulatorValue(args->at(2)); // string |
+ VisitForStackValue(args->at(1)); // index |
+ VisitForStackValue(args->at(2)); // value |
+ VisitForAccumulatorValue(args->at(0)); // string |
__ pop(value); |
__ pop(index); |