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_TYPED_OPTIMIZATION_H_ | 5 #ifndef V8_COMPILER_TYPED_OPTIMIZATION_H_ |
6 #define V8_COMPILER_TYPED_OPTIMIZATION_H_ | 6 #define V8_COMPILER_TYPED_OPTIMIZATION_H_ |
7 | 7 |
8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 Reduction ReduceCheckHeapObject(Node* node); | 45 Reduction ReduceCheckHeapObject(Node* node); |
46 Reduction ReduceCheckMaps(Node* node); | 46 Reduction ReduceCheckMaps(Node* node); |
47 Reduction ReduceCheckString(Node* node); | 47 Reduction ReduceCheckString(Node* node); |
48 Reduction ReduceLoadField(Node* node); | 48 Reduction ReduceLoadField(Node* node); |
49 Reduction ReduceNumberFloor(Node* node); | 49 Reduction ReduceNumberFloor(Node* node); |
50 Reduction ReduceNumberRoundop(Node* node); | 50 Reduction ReduceNumberRoundop(Node* node); |
51 Reduction ReduceNumberToUint8Clamped(Node* node); | 51 Reduction ReduceNumberToUint8Clamped(Node* node); |
52 Reduction ReducePhi(Node* node); | 52 Reduction ReducePhi(Node* node); |
53 Reduction ReduceReferenceEqual(Node* node); | 53 Reduction ReduceReferenceEqual(Node* node); |
54 Reduction ReduceSelect(Node* node); | 54 Reduction ReduceSelect(Node* node); |
| 55 Reduction ReduceSpeculativeToNumber(Node* node); |
55 | 56 |
56 CompilationDependencies* dependencies() const { return dependencies_; } | 57 CompilationDependencies* dependencies() const { return dependencies_; } |
57 Factory* factory() const; | 58 Factory* factory() const; |
58 Flags flags() const { return flags_; } | 59 Flags flags() const { return flags_; } |
59 Graph* graph() const; | 60 Graph* graph() const; |
60 Isolate* isolate() const; | 61 Isolate* isolate() const; |
61 JSGraph* jsgraph() const { return jsgraph_; } | 62 JSGraph* jsgraph() const { return jsgraph_; } |
62 SimplifiedOperatorBuilder* simplified() const; | 63 SimplifiedOperatorBuilder* simplified() const; |
63 | 64 |
64 CompilationDependencies* const dependencies_; | 65 CompilationDependencies* const dependencies_; |
65 Flags const flags_; | 66 Flags const flags_; |
66 JSGraph* const jsgraph_; | 67 JSGraph* const jsgraph_; |
67 Type* const true_type_; | 68 Type* const true_type_; |
68 Type* const false_type_; | 69 Type* const false_type_; |
69 TypeCache const& type_cache_; | 70 TypeCache const& type_cache_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); | 72 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); |
72 }; | 73 }; |
73 | 74 |
74 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) | 75 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) |
75 | 76 |
76 } // namespace compiler | 77 } // namespace compiler |
77 } // namespace internal | 78 } // namespace internal |
78 } // namespace v8 | 79 } // namespace v8 |
79 | 80 |
80 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ | 81 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ |
OLD | NEW |