Index: src/x64/lithium-x64.h |
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h |
index f5edd623e78b9f8c59da3e3cc78ac81c0ea7c807..6eae1c6b4f5f5c161214f32830ba873591d92c0b 100644 |
--- a/src/x64/lithium-x64.h |
+++ b/src/x64/lithium-x64.h |
@@ -109,8 +109,10 @@ class LCodeGen; |
V(IsConstructCallAndBranch) \ |
V(IsNilAndBranch) \ |
V(IsObjectAndBranch) \ |
+ V(IsStringAndBranch) \ |
V(IsSmiAndBranch) \ |
V(IsUndetectableAndBranch) \ |
+ V(StringCompareAndBranch) \ |
V(JSArrayLength) \ |
V(Label) \ |
V(LazyBailout) \ |
@@ -640,6 +642,20 @@ class LIsObjectAndBranch: public LControlInstruction<1, 0> { |
}; |
+class LIsStringAndBranch: public LControlInstruction<1, 1> { |
+ public: |
+ explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { |
+ inputs_[0] = value; |
+ temps_[0] = temp; |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") |
+ DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch) |
+ |
+ virtual void PrintDataTo(StringStream* stream); |
+}; |
+ |
+ |
class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
public: |
explicit LIsSmiAndBranch(LOperand* value) { |
@@ -668,6 +684,23 @@ class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
}; |
+class LStringCompareAndBranch: public LControlInstruction<2, 0> { |
+ public: |
+ explicit LStringCompareAndBranch(LOperand* left, LOperand* right) { |
+ inputs_[0] = left; |
+ inputs_[1] = right; |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch, |
+ "compare-generic-and-branch") |
+ DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch) |
+ |
+ virtual void PrintDataTo(StringStream* stream); |
+ |
+ Token::Value op() const { return hydrogen()->token(); } |
+}; |
+ |
+ |
class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { |
public: |
explicit LHasInstanceTypeAndBranch(LOperand* value) { |