| Index: src/full-codegen/x87/full-codegen-x87.cc
|
| diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc
|
| index d7403fa42761452642953df46cb1e39aae25a916..5ee0cb3a921cd6e9479203d5e6b8a17d50c4839f 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -2783,75 +2783,6 @@ void FullCodeGenerator::EmitValueOf(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK_EQ(3, args->length());
|
| -
|
| - Register string = eax;
|
| - Register index = ebx;
|
| - Register value = ecx;
|
| -
|
| - VisitForStackValue(args->at(0)); // index
|
| - VisitForStackValue(args->at(1)); // value
|
| - VisitForAccumulatorValue(args->at(2)); // string
|
| -
|
| - PopOperand(value);
|
| - PopOperand(index);
|
| -
|
| - if (FLAG_debug_code) {
|
| - __ test(value, Immediate(kSmiTagMask));
|
| - __ Check(zero, kNonSmiValue);
|
| - __ test(index, Immediate(kSmiTagMask));
|
| - __ Check(zero, kNonSmiValue);
|
| - }
|
| -
|
| - __ SmiUntag(value);
|
| - __ SmiUntag(index);
|
| -
|
| - if (FLAG_debug_code) {
|
| - static const uint32_t one_byte_seq_type = kSeqStringTag | kOneByteStringTag;
|
| - __ EmitSeqStringSetCharCheck(string, index, value, one_byte_seq_type);
|
| - }
|
| -
|
| - __ mov_b(FieldOperand(string, index, times_1, SeqOneByteString::kHeaderSize),
|
| - value);
|
| - context()->Plug(string);
|
| -}
|
| -
|
| -
|
| -void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK_EQ(3, args->length());
|
| -
|
| - Register string = eax;
|
| - Register index = ebx;
|
| - Register value = ecx;
|
| -
|
| - VisitForStackValue(args->at(0)); // index
|
| - VisitForStackValue(args->at(1)); // value
|
| - VisitForAccumulatorValue(args->at(2)); // string
|
| - PopOperand(value);
|
| - PopOperand(index);
|
| -
|
| - if (FLAG_debug_code) {
|
| - __ test(value, Immediate(kSmiTagMask));
|
| - __ Check(zero, kNonSmiValue);
|
| - __ test(index, Immediate(kSmiTagMask));
|
| - __ Check(zero, kNonSmiValue);
|
| - __ SmiUntag(index);
|
| - static const uint32_t two_byte_seq_type = kSeqStringTag | kTwoByteStringTag;
|
| - __ EmitSeqStringSetCharCheck(string, index, value, two_byte_seq_type);
|
| - __ SmiTag(index);
|
| - }
|
| -
|
| - __ SmiUntag(value);
|
| - // No need to untag a smi for two-byte addressing.
|
| - __ mov_w(FieldOperand(string, index, times_1, SeqTwoByteString::kHeaderSize),
|
| - value);
|
| - context()->Plug(string);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) {
|
| ZoneList<Expression*>* args = expr->arguments();
|
| DCHECK(args->length() == 1);
|
|
|