| 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 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2270 return Type::Number(); | 2270 return Type::Number(); |
| 2271 } | 2271 } |
| 2272 | 2272 |
| 2273 | 2273 |
| 2274 Type* Typer::Visitor::TypeFloat64RoundDown(Node* node) { | 2274 Type* Typer::Visitor::TypeFloat64RoundDown(Node* node) { |
| 2275 // TODO(sigurds): We could have a tighter bound here. | 2275 // TODO(sigurds): We could have a tighter bound here. |
| 2276 return Type::Number(); | 2276 return Type::Number(); |
| 2277 } | 2277 } |
| 2278 | 2278 |
| 2279 | 2279 |
| 2280 Type* Typer::Visitor::TypeFloat32RoundUp(Node* node) { |
| 2281 // TODO(sigurds): We could have a tighter bound here. |
| 2282 return Type::Number(); |
| 2283 } |
| 2284 |
| 2285 |
| 2280 Type* Typer::Visitor::TypeFloat64RoundUp(Node* node) { | 2286 Type* Typer::Visitor::TypeFloat64RoundUp(Node* node) { |
| 2281 // TODO(sigurds): We could have a tighter bound here. | 2287 // TODO(sigurds): We could have a tighter bound here. |
| 2282 return Type::Number(); | 2288 return Type::Number(); |
| 2283 } | 2289 } |
| 2284 | 2290 |
| 2285 | 2291 |
| 2286 Type* Typer::Visitor::TypeFloat64RoundTruncate(Node* node) { | 2292 Type* Typer::Visitor::TypeFloat64RoundTruncate(Node* node) { |
| 2287 // TODO(sigurds): We could have a tighter bound here. | 2293 // TODO(sigurds): We could have a tighter bound here. |
| 2288 return Type::Number(); | 2294 return Type::Number(); |
| 2289 } | 2295 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2355 } | 2361 } |
| 2356 if (Type::IsInteger(*value)) { | 2362 if (Type::IsInteger(*value)) { |
| 2357 return Type::Range(value->Number(), value->Number(), zone()); | 2363 return Type::Range(value->Number(), value->Number(), zone()); |
| 2358 } | 2364 } |
| 2359 return Type::Constant(value, zone()); | 2365 return Type::Constant(value, zone()); |
| 2360 } | 2366 } |
| 2361 | 2367 |
| 2362 } // namespace compiler | 2368 } // namespace compiler |
| 2363 } // namespace internal | 2369 } // namespace internal |
| 2364 } // namespace v8 | 2370 } // namespace v8 |
| OLD | NEW |