Index: src/arm/lithium-arm.h |
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
index 0367fd3234abed7a836df1ca8d95bf1828476732..0434ba925d1a7c335da90a5a113b30b67c40e717 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/arm/lithium-arm.h |
@@ -166,6 +166,7 @@ class LCodeGen; |
V(StringCompareAndBranch) \ |
V(StringLength) \ |
V(SubI) \ |
+ V(RSubI) \ |
V(TaggedToI) \ |
V(ThisFunction) \ |
V(Throw) \ |
@@ -1004,6 +1005,21 @@ class LSubI: public LTemplateInstruction<1, 2, 0> { |
}; |
+class LRSubI: public LTemplateInstruction<1, 2, 0> { |
+ public: |
+ LRSubI(LOperand* left, LOperand* right) { |
+ inputs_[0] = left; |
+ inputs_[1] = right; |
+ } |
+ |
+ LOperand* left() { return inputs_[0]; } |
+ LOperand* right() { return inputs_[1]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(RSubI, "rsub-i") |
+ DECLARE_HYDROGEN_ACCESSOR(Sub) |
+}; |
+ |
+ |
class LConstantI: public LTemplateInstruction<1, 0, 0> { |
public: |
DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") |
@@ -2416,6 +2432,7 @@ class LChunkBuilder BASE_EMBEDDED { |
#undef DECLARE_DO |
LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); |
+ LInstruction* DoRSub(HSub* instr); |
static bool HasMagicNumberForDivisor(int32_t divisor); |
static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val); |