| Index: src/mips/lithium-mips.h
|
| diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h
|
| index 93bc3b093c07abb33db7110bbfac69b19421f734..4c329d9c75ba3f685c04ccb228fd5775e47b9edd 100644
|
| --- a/src/mips/lithium-mips.h
|
| +++ b/src/mips/lithium-mips.h
|
| @@ -79,6 +79,7 @@ class LCodeGen;
|
| V(CmpMapAndBranch) \
|
| V(CmpT) \
|
| V(ConstantD) \
|
| + V(ConstantE) \
|
| V(ConstantI) \
|
| V(ConstantS) \
|
| V(ConstantT) \
|
| @@ -118,7 +119,6 @@ class LCodeGen;
|
| V(IsUndetectableAndBranch) \
|
| V(Label) \
|
| V(LazyBailout) \
|
| - V(LinkObjectInList) \
|
| V(LoadContextSlot) \
|
| V(LoadExternalArrayPointer) \
|
| V(LoadFieldByIndex) \
|
| @@ -174,7 +174,6 @@ class LCodeGen;
|
| V(StringCharCodeAt) \
|
| V(StringCharFromCode) \
|
| V(StringCompareAndBranch) \
|
| - V(StringLength) \
|
| V(SubI) \
|
| V(TaggedToI) \
|
| V(ThisFunction) \
|
| @@ -265,7 +264,7 @@ class LInstruction: public ZoneObject {
|
| bool IsMarkedAsCall() const { return is_call_; }
|
|
|
| virtual bool HasResult() const = 0;
|
| - virtual LOperand* result() = 0;
|
| + virtual LOperand* result() const = 0;
|
|
|
| LOperand* FirstInput() { return InputAt(0); }
|
| LOperand* Output() { return HasResult() ? result() : NULL; }
|
| @@ -301,9 +300,9 @@ class LTemplateInstruction: public LInstruction {
|
| public:
|
| // Allow 0 or 1 output operands.
|
| STATIC_ASSERT(R == 0 || R == 1);
|
| - virtual bool HasResult() const { return R != 0; }
|
| + virtual bool HasResult() const { return R != 0 && result() != NULL; }
|
| void set_result(LOperand* operand) { results_[0] = operand; }
|
| - LOperand* result() { return results_[0]; }
|
| + LOperand* result() const { return results_[0]; }
|
|
|
| protected:
|
| EmbeddedContainer<LOperand*, R> results_;
|
| @@ -1210,6 +1209,17 @@ class LConstantD: public LTemplateInstruction<1, 0, 0> {
|
| };
|
|
|
|
|
| +class LConstantE: public LTemplateInstruction<1, 0, 0> {
|
| + public:
|
| + DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e")
|
| + DECLARE_HYDROGEN_ACCESSOR(Constant)
|
| +
|
| + ExternalReference value() const {
|
| + return hydrogen()->ExternalReferenceValue();
|
| + }
|
| +};
|
| +
|
| +
|
| class LConstantT: public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
|
| @@ -1642,23 +1652,6 @@ class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
|
| };
|
|
|
|
|
| -class LLinkObjectInList: public LTemplateInstruction<0, 1, 0> {
|
| - public:
|
| - explicit LLinkObjectInList(LOperand* object) {
|
| - inputs_[0] = object;
|
| - }
|
| -
|
| - LOperand* object() { return inputs_[0]; }
|
| -
|
| - ExternalReference GetReference(Isolate* isolate);
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(LinkObjectInList, "link-object-in-list")
|
| - DECLARE_HYDROGEN_ACCESSOR(LinkObjectInList)
|
| -
|
| - virtual void PrintDataTo(StringStream* stream);
|
| -};
|
| -
|
| -
|
| class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LLoadContextSlot(LOperand* context) {
|
| @@ -2292,19 +2285,6 @@ class LStringCharFromCode: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LStringLength: public LTemplateInstruction<1, 1, 0> {
|
| - public:
|
| - explicit LStringLength(LOperand* string) {
|
| - inputs_[0] = string;
|
| - }
|
| -
|
| - LOperand* string() { return inputs_[0]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
|
| - DECLARE_HYDROGEN_ACCESSOR(StringLength)
|
| -};
|
| -
|
| -
|
| class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LCheckFunction(LOperand* value) {
|
| @@ -2662,7 +2642,7 @@ class LChunkBuilder BASE_EMBEDDED {
|
| bool is_done() const { return status_ == DONE; }
|
| bool is_aborted() const { return status_ == ABORTED; }
|
|
|
| - void Abort(const char* reason);
|
| + void Abort(BailoutReason reason);
|
|
|
| // Methods for getting operands for Use / Define / Temp.
|
| LUnallocated* ToUnallocated(Register reg);
|
|
|