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 26 matching lines...) Expand all Loading... |
37 flags_(flags), | 37 flags_(flags), |
38 native_context_(native_context) {} | 38 native_context_(native_context) {} |
39 | 39 |
40 Reduction Reduce(Node* node) final; | 40 Reduction Reduce(Node* node) final; |
41 | 41 |
42 private: | 42 private: |
43 Reduction ReduceArrayConstructor(Node* node); | 43 Reduction ReduceArrayConstructor(Node* node); |
44 Reduction ReduceNumberConstructor(Node* node); | 44 Reduction ReduceNumberConstructor(Node* node); |
45 Reduction ReduceFunctionPrototypeApply(Node* node); | 45 Reduction ReduceFunctionPrototypeApply(Node* node); |
46 Reduction ReduceFunctionPrototypeCall(Node* node); | 46 Reduction ReduceFunctionPrototypeCall(Node* node); |
| 47 Reduction ReduceObjectPrototypeGetProto(Node* node); |
47 Reduction ReduceJSCallConstruct(Node* node); | 48 Reduction ReduceJSCallConstruct(Node* node); |
48 Reduction ReduceJSCallFunction(Node* node); | 49 Reduction ReduceJSCallFunction(Node* node); |
49 | 50 |
50 Graph* graph() const; | 51 Graph* graph() const; |
51 Flags flags() const { return flags_; } | 52 Flags flags() const { return flags_; } |
52 JSGraph* jsgraph() const { return jsgraph_; } | 53 JSGraph* jsgraph() const { return jsgraph_; } |
53 Isolate* isolate() const; | 54 Isolate* isolate() const; |
54 Handle<Context> native_context() const { return native_context_; } | 55 Handle<Context> native_context() const { return native_context_; } |
55 CommonOperatorBuilder* common() const; | 56 CommonOperatorBuilder* common() const; |
56 JSOperatorBuilder* javascript() const; | 57 JSOperatorBuilder* javascript() const; |
57 SimplifiedOperatorBuilder* simplified() const; | 58 SimplifiedOperatorBuilder* simplified() const; |
58 | 59 |
59 JSGraph* const jsgraph_; | 60 JSGraph* const jsgraph_; |
60 Flags const flags_; | 61 Flags const flags_; |
61 Handle<Context> const native_context_; | 62 Handle<Context> const native_context_; |
62 }; | 63 }; |
63 | 64 |
64 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) | 65 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) |
65 | 66 |
66 } // namespace compiler | 67 } // namespace compiler |
67 } // namespace internal | 68 } // namespace internal |
68 } // namespace v8 | 69 } // namespace v8 |
69 | 70 |
70 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ | 71 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ |
OLD | NEW |