OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_CALL_REDUCER_H_ | 5 #ifndef V8_COMPILER_JS_CALL_REDUCER_H_ |
6 #define V8_COMPILER_JS_CALL_REDUCER_H_ | 6 #define V8_COMPILER_JS_CALL_REDUCER_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 CompilationDependencies* dependencies) | 32 CompilationDependencies* dependencies) |
33 : AdvancedReducer(editor), | 33 : AdvancedReducer(editor), |
34 jsgraph_(jsgraph), | 34 jsgraph_(jsgraph), |
35 native_context_(native_context), | 35 native_context_(native_context), |
36 dependencies_(dependencies) {} | 36 dependencies_(dependencies) {} |
37 | 37 |
38 Reduction Reduce(Node* node) final; | 38 Reduction Reduce(Node* node) final; |
39 | 39 |
40 private: | 40 private: |
41 Reduction ReduceArrayConstructor(Node* node); | 41 Reduction ReduceArrayConstructor(Node* node); |
| 42 Reduction ReduceBooleanConstructor(Node* node); |
42 Reduction ReduceCallApiFunction( | 43 Reduction ReduceCallApiFunction( |
43 Node* node, Node* target, | 44 Node* node, Node* target, |
44 Handle<FunctionTemplateInfo> function_template_info); | 45 Handle<FunctionTemplateInfo> function_template_info); |
45 Reduction ReduceNumberConstructor(Node* node); | 46 Reduction ReduceNumberConstructor(Node* node); |
46 Reduction ReduceFunctionPrototypeApply(Node* node); | 47 Reduction ReduceFunctionPrototypeApply(Node* node); |
47 Reduction ReduceFunctionPrototypeCall(Node* node); | 48 Reduction ReduceFunctionPrototypeCall(Node* node); |
48 Reduction ReduceFunctionPrototypeHasInstance(Node* node); | 49 Reduction ReduceFunctionPrototypeHasInstance(Node* node); |
49 Reduction ReduceObjectPrototypeGetProto(Node* node); | 50 Reduction ReduceObjectPrototypeGetProto(Node* node); |
50 Reduction ReduceSpreadCall(Node* node, int arity); | 51 Reduction ReduceSpreadCall(Node* node, int arity); |
51 Reduction ReduceJSConstruct(Node* node); | 52 Reduction ReduceJSConstruct(Node* node); |
(...skipping 20 matching lines...) Expand all Loading... |
72 JSGraph* const jsgraph_; | 73 JSGraph* const jsgraph_; |
73 Handle<Context> const native_context_; | 74 Handle<Context> const native_context_; |
74 CompilationDependencies* const dependencies_; | 75 CompilationDependencies* const dependencies_; |
75 }; | 76 }; |
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_JS_CALL_REDUCER_H_ | 82 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ |
OLD | NEW |