Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index a9af39a21f70657df2d2057beae16627f6dd3c56..7d5a16b47171f7a55ed0e35cb7de7af40d487feb 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -2791,75 +2791,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); |