| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index f9f8c404c220cd194350229447257244d8817f48..0835bf20a0e444f05b224a4cf9ec13aea66d7e9e 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -3146,6 +3146,38 @@ void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
|
| }
|
|
|
|
|
| +void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) {
|
| + ZoneList<Expression*>* args = expr->arguments();
|
| + ASSERT_EQ(3, args->length());
|
| +
|
| + VisitForStackValue(args->at(1)); // index
|
| + VisitForStackValue(args->at(2)); // value
|
| + __ pop(a2);
|
| + __ pop(a1);
|
| + VisitForAccumulatorValue(args->at(0)); // string
|
| +
|
| + static const String::Encoding encoding = String::ONE_BYTE_ENCODING;
|
| + SeqStringSetCharGenerator::Generate(masm_, encoding, v0, a1, a2);
|
| + context()->Plug(v0);
|
| +}
|
| +
|
| +
|
| +void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) {
|
| + ZoneList<Expression*>* args = expr->arguments();
|
| + ASSERT_EQ(3, args->length());
|
| +
|
| + VisitForStackValue(args->at(1)); // index
|
| + VisitForStackValue(args->at(2)); // value
|
| + __ pop(a2);
|
| + __ pop(a1);
|
| + VisitForAccumulatorValue(args->at(0)); // string
|
| +
|
| + static const String::Encoding encoding = String::TWO_BYTE_ENCODING;
|
| + SeqStringSetCharGenerator::Generate(masm_, encoding, v0, a1, a2);
|
| + context()->Plug(v0);
|
| +}
|
| +
|
| +
|
| void FullCodeGenerator::EmitMathPow(CallRuntime* expr) {
|
| // Load the arguments on the stack and call the runtime function.
|
| ZoneList<Expression*>* args = expr->arguments();
|
|
|