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/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 | 1175 |
1176 Bounds Typer::Visitor::TypeJSTypeOf(Node* node) { | 1176 Bounds Typer::Visitor::TypeJSTypeOf(Node* node) { |
1177 return Bounds(Type::None(zone()), Type::InternalizedString(zone())); | 1177 return Bounds(Type::None(zone()), Type::InternalizedString(zone())); |
1178 } | 1178 } |
1179 | 1179 |
1180 | 1180 |
1181 // JS conversion operators. | 1181 // JS conversion operators. |
1182 | 1182 |
1183 | 1183 |
1184 Bounds Typer::Visitor::TypeJSToBoolean(Node* node) { | 1184 Bounds Typer::Visitor::TypeJSToBoolean(Node* node) { |
1185 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1185 return TypeUnaryOp(node, ToBoolean); |
1186 } | 1186 } |
1187 | 1187 |
1188 | 1188 |
1189 Bounds Typer::Visitor::TypeJSToNumber(Node* node) { | 1189 Bounds Typer::Visitor::TypeJSToNumber(Node* node) { |
1190 return TypeUnaryOp(node, ToNumber); | 1190 return TypeUnaryOp(node, ToNumber); |
1191 } | 1191 } |
1192 | 1192 |
1193 | 1193 |
1194 Bounds Typer::Visitor::TypeJSToString(Node* node) { | 1194 Bounds Typer::Visitor::TypeJSToString(Node* node) { |
1195 return TypeUnaryOp(node, ToString); | 1195 return TypeUnaryOp(node, ToString); |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2092 // TODO(rossberg): Do we want some ClampedArray type to express this? | 2092 // TODO(rossberg): Do we want some ClampedArray type to express this? |
2093 break; | 2093 break; |
2094 } | 2094 } |
2095 } | 2095 } |
2096 return Type::Constant(value, zone()); | 2096 return Type::Constant(value, zone()); |
2097 } | 2097 } |
2098 | 2098 |
2099 } // namespace compiler | 2099 } // namespace compiler |
2100 } // namespace internal | 2100 } // namespace internal |
2101 } // namespace v8 | 2101 } // namespace v8 |
OLD | NEW |