| Index: src/full-codegen/ppc/full-codegen-ppc.cc
|
| diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| index 50248c1321b760279bc804c8b407c850e8082014..f881fe86f2403bb9ee6b6534c34e96d21315e2bd 100644
|
| --- a/src/full-codegen/ppc/full-codegen-ppc.cc
|
| +++ b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| @@ -2898,70 +2898,6 @@ void FullCodeGenerator::EmitValueOf(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK_EQ(3, args->length());
|
| -
|
| - Register string = r3;
|
| - Register index = r4;
|
| - Register value = r5;
|
| -
|
| - VisitForStackValue(args->at(0)); // index
|
| - VisitForStackValue(args->at(1)); // value
|
| - VisitForAccumulatorValue(args->at(2)); // string
|
| - PopOperands(index, value);
|
| -
|
| - if (FLAG_debug_code) {
|
| - __ TestIfSmi(value, r0);
|
| - __ Check(eq, kNonSmiValue, cr0);
|
| - __ TestIfSmi(index, r0);
|
| - __ Check(eq, kNonSmiIndex, cr0);
|
| - __ SmiUntag(index, index);
|
| - static const uint32_t one_byte_seq_type = kSeqStringTag | kOneByteStringTag;
|
| - __ EmitSeqStringSetCharCheck(string, index, value, one_byte_seq_type);
|
| - __ SmiTag(index, index);
|
| - }
|
| -
|
| - __ SmiUntag(value);
|
| - __ addi(ip, string, Operand(SeqOneByteString::kHeaderSize - kHeapObjectTag));
|
| - __ SmiToByteArrayOffset(r0, index);
|
| - __ stbx(value, MemOperand(ip, r0));
|
| - context()->Plug(string);
|
| -}
|
| -
|
| -
|
| -void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK_EQ(3, args->length());
|
| -
|
| - Register string = r3;
|
| - Register index = r4;
|
| - Register value = r5;
|
| -
|
| - VisitForStackValue(args->at(0)); // index
|
| - VisitForStackValue(args->at(1)); // value
|
| - VisitForAccumulatorValue(args->at(2)); // string
|
| - PopOperands(index, value);
|
| -
|
| - if (FLAG_debug_code) {
|
| - __ TestIfSmi(value, r0);
|
| - __ Check(eq, kNonSmiValue, cr0);
|
| - __ TestIfSmi(index, r0);
|
| - __ Check(eq, kNonSmiIndex, cr0);
|
| - __ SmiUntag(index, index);
|
| - static const uint32_t two_byte_seq_type = kSeqStringTag | kTwoByteStringTag;
|
| - __ EmitSeqStringSetCharCheck(string, index, value, two_byte_seq_type);
|
| - __ SmiTag(index, index);
|
| - }
|
| -
|
| - __ SmiUntag(value);
|
| - __ addi(ip, string, Operand(SeqTwoByteString::kHeaderSize - kHeapObjectTag));
|
| - __ SmiToShortArrayOffset(r0, index);
|
| - __ sthx(value, MemOperand(ip, r0));
|
| - context()->Plug(string);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) {
|
| ZoneList<Expression*>* args = expr->arguments();
|
| DCHECK(args->length() == 1);
|
|
|