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_INTRINSIC_LOWERING_H_ | 5 #ifndef V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
6 #define V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 6 #define V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
7 | 7 |
8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 Reduction ReduceRegExpExec(Node* node); | 54 Reduction ReduceRegExpExec(Node* node); |
55 Reduction ReduceSubString(Node* node); | 55 Reduction ReduceSubString(Node* node); |
56 Reduction ReduceToInteger(Node* node); | 56 Reduction ReduceToInteger(Node* node); |
57 Reduction ReduceToLength(Node* node); | 57 Reduction ReduceToLength(Node* node); |
58 Reduction ReduceToNumber(Node* node); | 58 Reduction ReduceToNumber(Node* node); |
59 Reduction ReduceToObject(Node* node); | 59 Reduction ReduceToObject(Node* node); |
60 Reduction ReduceToString(Node* node); | 60 Reduction ReduceToString(Node* node); |
61 Reduction ReduceCall(Node* node); | 61 Reduction ReduceCall(Node* node); |
62 Reduction ReduceGetSuperConstructor(Node* node); | 62 Reduction ReduceGetSuperConstructor(Node* node); |
63 | 63 |
| 64 // TODO(turbofan): collection.js support; drop once Maps and Sets are |
| 65 // converted to proper CodeStubAssembler based builtins. |
| 66 Reduction ReduceJSCollectionGetTable(Node* node); |
| 67 Reduction ReduceStringGetRawHashField(Node* node); |
| 68 Reduction ReduceTheHole(Node* node); |
| 69 |
64 Reduction Change(Node* node, const Operator* op); | 70 Reduction Change(Node* node, const Operator* op); |
65 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); | 71 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); |
66 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); | 72 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); |
67 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c, | 73 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c, |
68 Node* d); | 74 Node* d); |
69 Reduction Change(Node* node, Callable const& callable, | 75 Reduction Change(Node* node, Callable const& callable, |
70 int stack_parameter_count); | 76 int stack_parameter_count); |
71 | 77 |
72 Graph* graph() const; | 78 Graph* graph() const; |
73 JSGraph* jsgraph() const { return jsgraph_; } | 79 JSGraph* jsgraph() const { return jsgraph_; } |
74 Isolate* isolate() const; | 80 Isolate* isolate() const; |
75 CommonOperatorBuilder* common() const; | 81 CommonOperatorBuilder* common() const; |
76 JSOperatorBuilder* javascript() const; | 82 JSOperatorBuilder* javascript() const; |
77 SimplifiedOperatorBuilder* simplified() const; | 83 SimplifiedOperatorBuilder* simplified() const; |
78 DeoptimizationMode mode() const { return mode_; } | 84 DeoptimizationMode mode() const { return mode_; } |
79 | 85 |
80 JSGraph* const jsgraph_; | 86 JSGraph* const jsgraph_; |
81 DeoptimizationMode const mode_; | 87 DeoptimizationMode const mode_; |
82 }; | 88 }; |
83 | 89 |
84 } // namespace compiler | 90 } // namespace compiler |
85 } // namespace internal | 91 } // namespace internal |
86 } // namespace v8 | 92 } // namespace v8 |
87 | 93 |
88 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 94 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
OLD | NEW |