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 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 | 2356 |
2357 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); } | 2357 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); } |
2358 | 2358 |
2359 | 2359 |
2360 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); } | 2360 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); } |
2361 | 2361 |
2362 Type* Typer::Visitor::TypeFloat32SubPreserveNan(Node* node) { | 2362 Type* Typer::Visitor::TypeFloat32SubPreserveNan(Node* node) { |
2363 return Type::Number(); | 2363 return Type::Number(); |
2364 } | 2364 } |
2365 | 2365 |
| 2366 Type* Typer::Visitor::TypeFloat32Neg(Node* node) { return Type::Number(); } |
| 2367 |
2366 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); } | 2368 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); } |
2367 | 2369 |
2368 | 2370 |
2369 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); } | 2371 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); } |
2370 | 2372 |
2371 | 2373 |
2372 Type* Typer::Visitor::TypeFloat32Max(Node* node) { return Type::Number(); } | 2374 Type* Typer::Visitor::TypeFloat32Max(Node* node) { return Type::Number(); } |
2373 | 2375 |
2374 | 2376 |
2375 Type* Typer::Visitor::TypeFloat32Min(Node* node) { return Type::Number(); } | 2377 Type* Typer::Visitor::TypeFloat32Min(Node* node) { return Type::Number(); } |
(...skipping 23 matching lines...) Expand all Loading... |
2399 | 2401 |
2400 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); } | 2402 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); } |
2401 | 2403 |
2402 | 2404 |
2403 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); } | 2405 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); } |
2404 | 2406 |
2405 Type* Typer::Visitor::TypeFloat64SubPreserveNan(Node* node) { | 2407 Type* Typer::Visitor::TypeFloat64SubPreserveNan(Node* node) { |
2406 return Type::Number(); | 2408 return Type::Number(); |
2407 } | 2409 } |
2408 | 2410 |
| 2411 Type* Typer::Visitor::TypeFloat64Neg(Node* node) { return Type::Number(); } |
| 2412 |
2409 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); } | 2413 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); } |
2410 | 2414 |
2411 | 2415 |
2412 Type* Typer::Visitor::TypeFloat64Div(Node* node) { return Type::Number(); } | 2416 Type* Typer::Visitor::TypeFloat64Div(Node* node) { return Type::Number(); } |
2413 | 2417 |
2414 | 2418 |
2415 Type* Typer::Visitor::TypeFloat64Mod(Node* node) { return Type::Number(); } | 2419 Type* Typer::Visitor::TypeFloat64Mod(Node* node) { return Type::Number(); } |
2416 | 2420 |
2417 | 2421 |
2418 Type* Typer::Visitor::TypeFloat64Max(Node* node) { return Type::Number(); } | 2422 Type* Typer::Visitor::TypeFloat64Max(Node* node) { return Type::Number(); } |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 } | 2592 } |
2589 if (Type::IsInteger(*value)) { | 2593 if (Type::IsInteger(*value)) { |
2590 return Type::Range(value->Number(), value->Number(), zone()); | 2594 return Type::Range(value->Number(), value->Number(), zone()); |
2591 } | 2595 } |
2592 return Type::Constant(value, zone()); | 2596 return Type::Constant(value, zone()); |
2593 } | 2597 } |
2594 | 2598 |
2595 } // namespace compiler | 2599 } // namespace compiler |
2596 } // namespace internal | 2600 } // namespace internal |
2597 } // namespace v8 | 2601 } // namespace v8 |
OLD | NEW |