Chromium Code Reviews| Index: src/ia32/full-codegen-ia32.cc |
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
| index 6dfec929c6e798a29fd2bc8cebddadb1dccf7a10..eef2992ac0f12daea951d365b144f4bd98c85422 100644 |
| --- a/src/ia32/full-codegen-ia32.cc |
| +++ b/src/ia32/full-codegen-ia32.cc |
| @@ -3074,6 +3074,36 @@ 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(ecx); |
| + __ pop(ebx); |
| + VisitForAccumulatorValue(args->at(0)); // string |
| + |
| + SeqStringSetCharGenerator::Generate(masm_, true, eax, ebx, ecx); |
|
Toon Verwaest
2012/12/05 14:29:12
Can we use an enum rather than bool to indicate tw
|
| + context()->Plug(eax); |
| +} |
| + |
| + |
| +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(ecx); |
| + __ pop(ebx); |
| + VisitForAccumulatorValue(args->at(0)); // string |
| + |
| + SeqStringSetCharGenerator::Generate(masm_, false, eax, ebx, ecx); |
| + context()->Plug(eax); |
| +} |
| + |
| + |
| void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { |
| // Load the arguments on the stack and call the runtime function. |
| ZoneList<Expression*>* args = expr->arguments(); |