| Index: src/mips/lithium-mips.h
|
| diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h
|
| index 7254d83e6398b4006c7010890c4ec97637d4913c..5678bb7505fa51f39d3209d2aec8cc3a78c844c2 100644
|
| --- a/src/mips/lithium-mips.h
|
| +++ b/src/mips/lithium-mips.h
|
| @@ -91,6 +91,7 @@ class LCodeGen;
|
| V(DoubleToI) \
|
| V(DoubleToSmi) \
|
| V(Drop) \
|
| + V(Dummy) \
|
| V(DummyUse) \
|
| V(ElementsKind) \
|
| V(ForInCacheArray) \
|
| @@ -155,6 +156,7 @@ class LCodeGen;
|
| V(Random) \
|
| V(RegExpLiteral) \
|
| V(Return) \
|
| + V(SeqStringGetChar) \
|
| V(SeqStringSetChar) \
|
| V(ShiftI) \
|
| V(SmiTag) \
|
| @@ -420,6 +422,13 @@ class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| };
|
|
|
|
|
| +class LDummy V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| + public:
|
| + explicit LDummy() { }
|
| + DECLARE_CONCRETE_INSTRUCTION(Dummy, "dummy")
|
| +};
|
| +
|
| +
|
| class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LDummyUse(LOperand* value) {
|
| @@ -1340,27 +1349,37 @@ class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| +class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| + public:
|
| + LSeqStringGetChar(LOperand* string, LOperand* index) {
|
| + inputs_[0] = string;
|
| + inputs_[1] = index;
|
| + }
|
| +
|
| + LOperand* string() const { return inputs_[0]; }
|
| + LOperand* index() const { return inputs_[1]; }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
|
| + DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
|
| +};
|
| +
|
| +
|
| class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| - LSeqStringSetChar(String::Encoding encoding,
|
| - LOperand* string,
|
| + LSeqStringSetChar(LOperand* string,
|
| LOperand* index,
|
| - LOperand* value) : encoding_(encoding) {
|
| + LOperand* value) {
|
| inputs_[0] = string;
|
| inputs_[1] = index;
|
| inputs_[2] = value;
|
| }
|
|
|
| - String::Encoding encoding() { return encoding_; }
|
| LOperand* string() { return inputs_[0]; }
|
| LOperand* index() { return inputs_[1]; }
|
| LOperand* value() { return inputs_[2]; }
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
|
| DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
|
| -
|
| - private:
|
| - String::Encoding encoding_;
|
| };
|
|
|
|
|
|
|