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/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
6 #include "src/compiler/graph-inl.h" | 6 #include "src/compiler/graph-inl.h" |
7 #include "src/compiler/js-operator.h" | 7 #include "src/compiler/js-operator.h" |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 | 1037 |
1038 // Simplified operators. | 1038 // Simplified operators. |
1039 | 1039 |
1040 | 1040 |
1041 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { | 1041 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { |
1042 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1042 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1043 } | 1043 } |
1044 | 1044 |
1045 | 1045 |
1046 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) { | 1046 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) { |
1047 return Bounds(Type::None(zone()), Type::Number(zone())); | 1047 return Bounds(Type::None(zone()), typer_->zero_or_one); |
1048 } | 1048 } |
1049 | 1049 |
1050 | 1050 |
1051 Bounds Typer::Visitor::TypeNumberEqual(Node* node) { | 1051 Bounds Typer::Visitor::TypeNumberEqual(Node* node) { |
1052 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1052 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1053 } | 1053 } |
1054 | 1054 |
1055 | 1055 |
1056 Bounds Typer::Visitor::TypeNumberLessThan(Node* node) { | 1056 Bounds Typer::Visitor::TypeNumberLessThan(Node* node) { |
1057 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1057 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 return typer_->float64_array_fun_; | 1635 return typer_->float64_array_fun_; |
1636 } | 1636 } |
1637 } | 1637 } |
1638 } | 1638 } |
1639 return Type::Constant(value, zone()); | 1639 return Type::Constant(value, zone()); |
1640 } | 1640 } |
1641 | 1641 |
1642 } | 1642 } |
1643 } | 1643 } |
1644 } // namespace v8::internal::compiler | 1644 } // namespace v8::internal::compiler |
OLD | NEW |