| 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 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 | 2554 |
| 2555 Type* Typer::Visitor::TypeWord32PairShr(Node* node) { return Type::Internal(); } | 2555 Type* Typer::Visitor::TypeWord32PairShr(Node* node) { return Type::Internal(); } |
| 2556 | 2556 |
| 2557 Type* Typer::Visitor::TypeWord32PairSar(Node* node) { return Type::Internal(); } | 2557 Type* Typer::Visitor::TypeWord32PairSar(Node* node) { return Type::Internal(); } |
| 2558 | 2558 |
| 2559 // SIMD type methods. | 2559 // SIMD type methods. |
| 2560 | 2560 |
| 2561 #define SIMD_RETURN_SIMD(Name) \ | 2561 #define SIMD_RETURN_SIMD(Name) \ |
| 2562 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Simd(); } | 2562 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Simd(); } |
| 2563 MACHINE_SIMD_RETURN_SIMD_OP_LIST(SIMD_RETURN_SIMD) | 2563 MACHINE_SIMD_RETURN_SIMD_OP_LIST(SIMD_RETURN_SIMD) |
| 2564 MACHINE_SIMD_GENERIC_OP_LIST(SIMD_RETURN_SIMD) |
| 2564 #undef SIMD_RETURN_SIMD | 2565 #undef SIMD_RETURN_SIMD |
| 2565 | 2566 |
| 2566 #define SIMD_RETURN_NUM(Name) \ | 2567 #define SIMD_RETURN_NUM(Name) \ |
| 2567 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Number(); } | 2568 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Number(); } |
| 2568 MACHINE_SIMD_RETURN_NUM_OP_LIST(SIMD_RETURN_NUM) | 2569 MACHINE_SIMD_RETURN_NUM_OP_LIST(SIMD_RETURN_NUM) |
| 2569 #undef SIMD_RETURN_NUM | 2570 #undef SIMD_RETURN_NUM |
| 2570 | 2571 |
| 2571 #define SIMD_RETURN_BOOL(Name) \ | 2572 #define SIMD_RETURN_BOOL(Name) \ |
| 2572 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Boolean(); } | 2573 Type* Typer::Visitor::Type##Name(Node* node) { return Type::Boolean(); } |
| 2573 MACHINE_SIMD_RETURN_BOOL_OP_LIST(SIMD_RETURN_BOOL) | 2574 MACHINE_SIMD_RETURN_BOOL_OP_LIST(SIMD_RETURN_BOOL) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2587 } | 2588 } |
| 2588 if (Type::IsInteger(*value)) { | 2589 if (Type::IsInteger(*value)) { |
| 2589 return Type::Range(value->Number(), value->Number(), zone()); | 2590 return Type::Range(value->Number(), value->Number(), zone()); |
| 2590 } | 2591 } |
| 2591 return Type::Constant(value, zone()); | 2592 return Type::Constant(value, zone()); |
| 2592 } | 2593 } |
| 2593 | 2594 |
| 2594 } // namespace compiler | 2595 } // namespace compiler |
| 2595 } // namespace internal | 2596 } // namespace internal |
| 2596 } // namespace v8 | 2597 } // namespace v8 |
| OLD | NEW |