Index: src/crankshaft/hydrogen-instructions.h |
diff --git a/src/crankshaft/hydrogen-instructions.h b/src/crankshaft/hydrogen-instructions.h |
index 9c79f68431d02fd9917c27a358b5865fe4e542ef..1ae36769a992d0ff7d5a28b3f91e08ecb3b091ba 100644 |
--- a/src/crankshaft/hydrogen-instructions.h |
+++ b/src/crankshaft/hydrogen-instructions.h |
@@ -3800,8 +3800,9 @@ class HMathFloorOfDiv final : public HBinaryOperation { |
class HArithmeticBinaryOperation : public HBinaryOperation { |
public: |
- HArithmeticBinaryOperation(HValue* context, HValue* left, HValue* right) |
- : HBinaryOperation(context, left, right, HType::TaggedNumber()) { |
+ HArithmeticBinaryOperation(HValue* context, HValue* left, HValue* right, |
+ HType type = HType::TaggedNumber()) |
+ : HBinaryOperation(context, left, right, type) { |
SetAllSideEffects(); |
SetFlag(kFlexibleRepresentation); |
SetFlag(kTruncatingToNumber); |
@@ -4326,7 +4327,7 @@ class HAdd final : public HArithmeticBinaryOperation { |
private: |
HAdd(HValue* context, HValue* left, HValue* right, |
ExternalAddType external_add_type = NoExternalAdd) |
- : HArithmeticBinaryOperation(context, left, right), |
+ : HArithmeticBinaryOperation(context, left, right, HType::Tagged()), |
external_add_type_(external_add_type) { |
SetFlag(kCanOverflow); |
switch (external_add_type_) { |