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/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 Type* Typer::Visitor::TypeNumberFround(Node* node) { return Type::Number(); } | 1797 Type* Typer::Visitor::TypeNumberFround(Node* node) { return Type::Number(); } |
1798 | 1798 |
1799 Type* Typer::Visitor::TypeNumberAtan(Node* node) { return Type::Number(); } | 1799 Type* Typer::Visitor::TypeNumberAtan(Node* node) { return Type::Number(); } |
1800 | 1800 |
1801 Type* Typer::Visitor::TypeNumberAtan2(Node* node) { return Type::Number(); } | 1801 Type* Typer::Visitor::TypeNumberAtan2(Node* node) { return Type::Number(); } |
1802 | 1802 |
1803 Type* Typer::Visitor::TypeNumberLog(Node* node) { return Type::Number(); } | 1803 Type* Typer::Visitor::TypeNumberLog(Node* node) { return Type::Number(); } |
1804 | 1804 |
1805 Type* Typer::Visitor::TypeNumberLog1p(Node* node) { return Type::Number(); } | 1805 Type* Typer::Visitor::TypeNumberLog1p(Node* node) { return Type::Number(); } |
1806 | 1806 |
| 1807 Type* Typer::Visitor::TypeNumberLog2(Node* node) { return Type::Number(); } |
| 1808 |
| 1809 Type* Typer::Visitor::TypeNumberLog10(Node* node) { return Type::Number(); } |
| 1810 |
1807 Type* Typer::Visitor::TypeNumberRound(Node* node) { | 1811 Type* Typer::Visitor::TypeNumberRound(Node* node) { |
1808 return TypeUnaryOp(node, NumberRound); | 1812 return TypeUnaryOp(node, NumberRound); |
1809 } | 1813 } |
1810 | 1814 |
1811 Type* Typer::Visitor::TypeNumberSqrt(Node* node) { return Type::Number(); } | 1815 Type* Typer::Visitor::TypeNumberSqrt(Node* node) { return Type::Number(); } |
1812 | 1816 |
1813 Type* Typer::Visitor::TypeNumberTrunc(Node* node) { | 1817 Type* Typer::Visitor::TypeNumberTrunc(Node* node) { |
1814 return TypeUnaryOp(node, NumberTrunc); | 1818 return TypeUnaryOp(node, NumberTrunc); |
1815 } | 1819 } |
1816 | 1820 |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 } | 2556 } |
2553 | 2557 |
2554 Type* Typer::Visitor::TypeFloat64Atan(Node* node) { return Type::Number(); } | 2558 Type* Typer::Visitor::TypeFloat64Atan(Node* node) { return Type::Number(); } |
2555 | 2559 |
2556 Type* Typer::Visitor::TypeFloat64Atan2(Node* node) { return Type::Number(); } | 2560 Type* Typer::Visitor::TypeFloat64Atan2(Node* node) { return Type::Number(); } |
2557 | 2561 |
2558 Type* Typer::Visitor::TypeFloat64Log(Node* node) { return Type::Number(); } | 2562 Type* Typer::Visitor::TypeFloat64Log(Node* node) { return Type::Number(); } |
2559 | 2563 |
2560 Type* Typer::Visitor::TypeFloat64Log1p(Node* node) { return Type::Number(); } | 2564 Type* Typer::Visitor::TypeFloat64Log1p(Node* node) { return Type::Number(); } |
2561 | 2565 |
| 2566 Type* Typer::Visitor::TypeFloat64Log2(Node* node) { return Type::Number(); } |
| 2567 |
| 2568 Type* Typer::Visitor::TypeFloat64Log10(Node* node) { return Type::Number(); } |
| 2569 |
2562 Type* Typer::Visitor::TypeFloat64Sqrt(Node* node) { return Type::Number(); } | 2570 Type* Typer::Visitor::TypeFloat64Sqrt(Node* node) { return Type::Number(); } |
2563 | 2571 |
2564 | 2572 |
2565 Type* Typer::Visitor::TypeFloat64Equal(Node* node) { return Type::Boolean(); } | 2573 Type* Typer::Visitor::TypeFloat64Equal(Node* node) { return Type::Boolean(); } |
2566 | 2574 |
2567 | 2575 |
2568 Type* Typer::Visitor::TypeFloat64LessThan(Node* node) { | 2576 Type* Typer::Visitor::TypeFloat64LessThan(Node* node) { |
2569 return Type::Boolean(); | 2577 return Type::Boolean(); |
2570 } | 2578 } |
2571 | 2579 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2720 } | 2728 } |
2721 if (Type::IsInteger(*value)) { | 2729 if (Type::IsInteger(*value)) { |
2722 return Type::Range(value->Number(), value->Number(), zone()); | 2730 return Type::Range(value->Number(), value->Number(), zone()); |
2723 } | 2731 } |
2724 return Type::Constant(value, zone()); | 2732 return Type::Constant(value, zone()); |
2725 } | 2733 } |
2726 | 2734 |
2727 } // namespace compiler | 2735 } // namespace compiler |
2728 } // namespace internal | 2736 } // namespace internal |
2729 } // namespace v8 | 2737 } // namespace v8 |
OLD | NEW |