| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/typer.h" | 5 #include "src/compiler/typer.h" |
| 6 | 6 |
| 7 #include "src/base/flags.h" | 7 #include "src/base/flags.h" |
| 8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/compilation-dependencies.h" | 10 #include "src/compilation-dependencies.h" |
| (...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 Type* Typer::Visitor::TypeNumberDivide(Node* node) { | 1549 Type* Typer::Visitor::TypeNumberDivide(Node* node) { |
| 1550 return Type::Number(zone()); | 1550 return Type::Number(zone()); |
| 1551 } | 1551 } |
| 1552 | 1552 |
| 1553 | 1553 |
| 1554 Type* Typer::Visitor::TypeNumberModulus(Node* node) { | 1554 Type* Typer::Visitor::TypeNumberModulus(Node* node) { |
| 1555 return Type::Number(zone()); | 1555 return Type::Number(zone()); |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 | 1558 |
| 1559 Type* Typer::Visitor::TypeNumberBitwiseOr(Node* node) { |
| 1560 return Type::Signed32(zone()); |
| 1561 } |
| 1562 |
| 1563 |
| 1564 Type* Typer::Visitor::TypeNumberBitwiseXor(Node* node) { |
| 1565 return Type::Signed32(zone()); |
| 1566 } |
| 1567 |
| 1568 |
| 1569 Type* Typer::Visitor::TypeNumberBitwiseAnd(Node* node) { |
| 1570 return Type::Signed32(zone()); |
| 1571 } |
| 1572 |
| 1573 |
| 1559 Type* Typer::Visitor::TypeNumberShiftLeft(Node* node) { | 1574 Type* Typer::Visitor::TypeNumberShiftLeft(Node* node) { |
| 1560 return Type::Signed32(zone()); | 1575 return Type::Signed32(zone()); |
| 1561 } | 1576 } |
| 1562 | 1577 |
| 1563 | 1578 |
| 1564 Type* Typer::Visitor::TypeNumberShiftRight(Node* node) { | 1579 Type* Typer::Visitor::TypeNumberShiftRight(Node* node) { |
| 1565 return Type::Signed32(zone()); | 1580 return Type::Signed32(zone()); |
| 1566 } | 1581 } |
| 1567 | 1582 |
| 1568 | 1583 |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2171 } | 2186 } |
| 2172 if (Type::IsInteger(*value)) { | 2187 if (Type::IsInteger(*value)) { |
| 2173 return Type::Range(value->Number(), value->Number(), zone()); | 2188 return Type::Range(value->Number(), value->Number(), zone()); |
| 2174 } | 2189 } |
| 2175 return Type::Constant(value, zone()); | 2190 return Type::Constant(value, zone()); |
| 2176 } | 2191 } |
| 2177 | 2192 |
| 2178 } // namespace compiler | 2193 } // namespace compiler |
| 2179 } // namespace internal | 2194 } // namespace internal |
| 2180 } // namespace v8 | 2195 } // namespace v8 |
| OLD | NEW |