| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef V8_COMPILER_OPERATION_TYPER_H_ | 5 #ifndef V8_COMPILER_OPERATION_TYPER_H_ |
| 6 #define V8_COMPILER_OPERATION_TYPER_H_ | 6 #define V8_COMPILER_OPERATION_TYPER_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/compiler/opcodes.h" | 9 #include "src/compiler/opcodes.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 // Forward declarations. |
| 14 class Isolate; | 15 class Isolate; |
| 15 class RangeType; | 16 class RangeType; |
| 16 class Type; | 17 class Type; |
| 17 class TypeCache; | |
| 18 class Zone; | 18 class Zone; |
| 19 | 19 |
| 20 namespace compiler { | 20 namespace compiler { |
| 21 | 21 |
| 22 // Forward declarations. |
| 22 class Operator; | 23 class Operator; |
| 24 class TypeCache; |
| 23 | 25 |
| 24 class OperationTyper { | 26 class OperationTyper { |
| 25 public: | 27 public: |
| 26 OperationTyper(Isolate* isolate, Zone* zone); | 28 OperationTyper(Isolate* isolate, Zone* zone); |
| 27 | 29 |
| 28 // Typing Phi. | 30 // Typing Phi. |
| 29 Type* Merge(Type* left, Type* right); | 31 Type* Merge(Type* left, Type* right); |
| 30 | 32 |
| 31 Type* ToPrimitive(Type* type); | 33 Type* ToPrimitive(Type* type); |
| 32 | 34 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 Type* singleton_the_hole_; | 85 Type* singleton_the_hole_; |
| 84 Type* signed32ish_; | 86 Type* signed32ish_; |
| 85 Type* unsigned32ish_; | 87 Type* unsigned32ish_; |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 } // namespace compiler | 90 } // namespace compiler |
| 89 } // namespace internal | 91 } // namespace internal |
| 90 } // namespace v8 | 92 } // namespace v8 |
| 91 | 93 |
| 92 #endif // V8_COMPILER_OPERATION_TYPER_H_ | 94 #endif // V8_COMPILER_OPERATION_TYPER_H_ |
| OLD | NEW |