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 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2540 | 2540 |
2541 Type* Typer::Visitor::TypeWord32PairShr(Node* node) { return Type::Internal(); } | 2541 Type* Typer::Visitor::TypeWord32PairShr(Node* node) { return Type::Internal(); } |
2542 | 2542 |
2543 Type* Typer::Visitor::TypeWord32PairSar(Node* node) { return Type::Internal(); } | 2543 Type* Typer::Visitor::TypeWord32PairSar(Node* node) { return Type::Internal(); } |
2544 | 2544 |
2545 // SIMD type methods. | 2545 // SIMD type methods. |
2546 | 2546 |
2547 #define SIMD_RETURN_SIMD(Name) \ | 2547 #define SIMD_RETURN_SIMD(Name) \ |
2548 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Simd(); } | 2548 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Simd(); } |
2549 MACHINE_SIMD_RETURN_SIMD_OP_LIST(SIMD_RETURN_SIMD) | 2549 MACHINE_SIMD_RETURN_SIMD_OP_LIST(SIMD_RETURN_SIMD) |
| 2550 MACHINE_SIMD_GENERIC_OP_LIST(SIMD_RETURN_SIMD) |
2550 #undef SIMD_RETURN_SIMD | 2551 #undef SIMD_RETURN_SIMD |
2551 | 2552 |
2552 #define SIMD_RETURN_NUM(Name) \ | 2553 #define SIMD_RETURN_NUM(Name) \ |
2553 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Number(); } | 2554 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Number(); } |
2554 MACHINE_SIMD_RETURN_NUM_OP_LIST(SIMD_RETURN_NUM) | 2555 MACHINE_SIMD_RETURN_NUM_OP_LIST(SIMD_RETURN_NUM) |
2555 #undef SIMD_RETURN_NUM | 2556 #undef SIMD_RETURN_NUM |
2556 | 2557 |
2557 #define SIMD_RETURN_BOOL(Name) \ | 2558 #define SIMD_RETURN_BOOL(Name) \ |
2558 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Boolean(); } | 2559 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Boolean(); } |
2559 MACHINE_SIMD_RETURN_BOOL_OP_LIST(SIMD_RETURN_BOOL) | 2560 MACHINE_SIMD_RETURN_BOOL_OP_LIST(SIMD_RETURN_BOOL) |
(...skipping 13 matching lines...) Expand all Loading... |
2573 } | 2574 } |
2574 if (Type::IsInteger(*value)) { | 2575 if (Type::IsInteger(*value)) { |
2575 return Type::Range(value->Number(), value->Number(), zone()); | 2576 return Type::Range(value->Number(), value->Number(), zone()); |
2576 } | 2577 } |
2577 return Type::Constant(value, zone()); | 2578 return Type::Constant(value, zone()); |
2578 } | 2579 } |
2579 | 2580 |
2580 } // namespace compiler | 2581 } // namespace compiler |
2581 } // namespace internal | 2582 } // namespace internal |
2582 } // namespace v8 | 2583 } // namespace v8 |
OLD | NEW |