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 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 6 #define V8_COMPILER_JS_BUILTIN_REDUCER_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 27 matching lines...) Expand all Loading... |
38 typedef base::Flags<Flag> Flags; | 38 typedef base::Flags<Flag> Flags; |
39 | 39 |
40 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, | 40 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, |
41 CompilationDependencies* dependencies, | 41 CompilationDependencies* dependencies, |
42 Handle<Context> native_context); | 42 Handle<Context> native_context); |
43 ~JSBuiltinReducer() final {} | 43 ~JSBuiltinReducer() final {} |
44 | 44 |
45 Reduction Reduce(Node* node) final; | 45 Reduction Reduce(Node* node) final; |
46 | 46 |
47 private: | 47 private: |
| 48 Reduction ReduceArrayIterator(Node* node, IterationKind kind); |
| 49 Reduction ReduceTypedArrayIterator(Node* node, IterationKind kind); |
| 50 Reduction ReduceArrayIterator(Handle<Map> receiver_map, Node* node, |
| 51 IterationKind kind, |
| 52 ArrayIteratorKind iter_kind); |
| 53 Reduction ReduceArrayIteratorNext(Node* node); |
| 54 Reduction ReduceFastArrayIteratorNext(Handle<Map> iterator_map, Node* node, |
| 55 IterationKind kind); |
| 56 Reduction ReduceTypedArrayIteratorNext(Handle<Map> iterator_map, Node* node, |
| 57 IterationKind kind); |
48 Reduction ReduceArrayPop(Node* node); | 58 Reduction ReduceArrayPop(Node* node); |
49 Reduction ReduceArrayPush(Node* node); | 59 Reduction ReduceArrayPush(Node* node); |
50 Reduction ReduceDateGetTime(Node* node); | 60 Reduction ReduceDateGetTime(Node* node); |
51 Reduction ReduceGlobalIsFinite(Node* node); | 61 Reduction ReduceGlobalIsFinite(Node* node); |
52 Reduction ReduceGlobalIsNaN(Node* node); | 62 Reduction ReduceGlobalIsNaN(Node* node); |
53 Reduction ReduceMathAbs(Node* node); | 63 Reduction ReduceMathAbs(Node* node); |
54 Reduction ReduceMathAcos(Node* node); | 64 Reduction ReduceMathAcos(Node* node); |
55 Reduction ReduceMathAcosh(Node* node); | 65 Reduction ReduceMathAcosh(Node* node); |
56 Reduction ReduceMathAsin(Node* node); | 66 Reduction ReduceMathAsin(Node* node); |
57 Reduction ReduceMathAsinh(Node* node); | 67 Reduction ReduceMathAsinh(Node* node); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 TypeCache const& type_cache_; | 128 TypeCache const& type_cache_; |
119 }; | 129 }; |
120 | 130 |
121 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) | 131 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) |
122 | 132 |
123 } // namespace compiler | 133 } // namespace compiler |
124 } // namespace internal | 134 } // namespace internal |
125 } // namespace v8 | 135 } // namespace v8 |
126 | 136 |
127 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 137 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
OLD | NEW |