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 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 return Type::Number(); | 2300 return Type::Number(); |
2301 } | 2301 } |
2302 | 2302 |
2303 | 2303 |
2304 Type* Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) { | 2304 Type* Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) { |
2305 // TODO(sigurds): We could have a tighter bound here. | 2305 // TODO(sigurds): We could have a tighter bound here. |
2306 return Type::Number(); | 2306 return Type::Number(); |
2307 } | 2307 } |
2308 | 2308 |
2309 | 2309 |
| 2310 Type* Typer::Visitor::TypeFloat32RoundTiesEven(Node* node) { |
| 2311 // TODO(sigurds): We could have a tighter bound here. |
| 2312 return Type::Number(); |
| 2313 } |
| 2314 |
| 2315 |
2310 Type* Typer::Visitor::TypeFloat64RoundTiesEven(Node* node) { | 2316 Type* Typer::Visitor::TypeFloat64RoundTiesEven(Node* node) { |
2311 // TODO(sigurds): We could have a tighter bound here. | 2317 // TODO(sigurds): We could have a tighter bound here. |
2312 return Type::Number(); | 2318 return Type::Number(); |
2313 } | 2319 } |
2314 | 2320 |
2315 | 2321 |
2316 Type* Typer::Visitor::TypeFloat64ExtractLowWord32(Node* node) { | 2322 Type* Typer::Visitor::TypeFloat64ExtractLowWord32(Node* node) { |
2317 return Type::Signed32(); | 2323 return Type::Signed32(); |
2318 } | 2324 } |
2319 | 2325 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2367 } | 2373 } |
2368 if (Type::IsInteger(*value)) { | 2374 if (Type::IsInteger(*value)) { |
2369 return Type::Range(value->Number(), value->Number(), zone()); | 2375 return Type::Range(value->Number(), value->Number(), zone()); |
2370 } | 2376 } |
2371 return Type::Constant(value, zone()); | 2377 return Type::Constant(value, zone()); |
2372 } | 2378 } |
2373 | 2379 |
2374 } // namespace compiler | 2380 } // namespace compiler |
2375 } // namespace internal | 2381 } // namespace internal |
2376 } // namespace v8 | 2382 } // namespace v8 |
OLD | NEW |