Index: src/x64/lithium-x64.h |
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h |
index 50e32d8cd61ee999fd915aed6ddd4dc3ce0b3d07..6d8cf5ae2df2e9ea47bc62691d465b0eb26de2bf 100644 |
--- a/src/x64/lithium-x64.h |
+++ b/src/x64/lithium-x64.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) \ |
@@ -173,7 +173,6 @@ class LCodeGen; |
V(StringCharCodeAt) \ |
V(StringCharFromCode) \ |
V(StringCompareAndBranch) \ |
- V(StringLength) \ |
V(SubI) \ |
V(TaggedToI) \ |
V(ThisFunction) \ |
@@ -266,7 +265,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; } |
@@ -302,9 +301,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_; |
@@ -1166,6 +1165,17 @@ class LConstantD: public LTemplateInstruction<1, 0, 1> { |
}; |
+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") |
@@ -1601,23 +1611,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) { |
@@ -2230,19 +2223,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) { |
@@ -2593,7 +2573,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); |