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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 TypedOptimization(Editor* editor, CompilationDependencies* dependencies, | 38 TypedOptimization(Editor* editor, CompilationDependencies* dependencies, |
39 Flags flags, JSGraph* jsgraph); | 39 Flags flags, JSGraph* jsgraph); |
40 ~TypedOptimization(); | 40 ~TypedOptimization(); |
41 | 41 |
42 Reduction Reduce(Node* node) final; | 42 Reduction Reduce(Node* node) final; |
43 | 43 |
44 private: | 44 private: |
45 Reduction ReduceCheckHeapObject(Node* node); | 45 Reduction ReduceCheckHeapObject(Node* node); |
46 Reduction ReduceCheckMaps(Node* node); | 46 Reduction ReduceCheckMaps(Node* node); |
| 47 Reduction ReduceCheckNumber(Node* node); |
47 Reduction ReduceCheckString(Node* node); | 48 Reduction ReduceCheckString(Node* node); |
48 Reduction ReduceLoadField(Node* node); | 49 Reduction ReduceLoadField(Node* node); |
49 Reduction ReduceNumberFloor(Node* node); | 50 Reduction ReduceNumberFloor(Node* node); |
50 Reduction ReduceNumberRoundop(Node* node); | 51 Reduction ReduceNumberRoundop(Node* node); |
51 Reduction ReduceNumberToUint8Clamped(Node* node); | 52 Reduction ReduceNumberToUint8Clamped(Node* node); |
52 Reduction ReducePhi(Node* node); | 53 Reduction ReducePhi(Node* node); |
53 Reduction ReduceReferenceEqual(Node* node); | 54 Reduction ReduceReferenceEqual(Node* node); |
54 Reduction ReduceSelect(Node* node); | 55 Reduction ReduceSelect(Node* node); |
55 Reduction ReduceSpeculativeToNumber(Node* node); | 56 Reduction ReduceSpeculativeToNumber(Node* node); |
56 | 57 |
(...skipping 15 matching lines...) Expand all Loading... |
72 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); | 73 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); |
73 }; | 74 }; |
74 | 75 |
75 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) | 76 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) |
76 | 77 |
77 } // namespace compiler | 78 } // namespace compiler |
78 } // namespace internal | 79 } // namespace internal |
79 } // namespace v8 | 80 } // namespace v8 |
80 | 81 |
81 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ | 82 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ |
OLD | NEW |