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/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
| 10 #include "src/compiler/linkage.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 // Forward declarations. | 15 // Forward declarations. |
15 class Callable; | 16 class Callable; |
16 class TypeCache; | 17 class TypeCache; |
17 | 18 |
18 | 19 |
19 namespace compiler { | 20 namespace compiler { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 Reduction ReduceToInteger(Node* node); | 65 Reduction ReduceToInteger(Node* node); |
65 Reduction ReduceToLength(Node* node); | 66 Reduction ReduceToLength(Node* node); |
66 Reduction ReduceToName(Node* node); | 67 Reduction ReduceToName(Node* node); |
67 Reduction ReduceToNumber(Node* node); | 68 Reduction ReduceToNumber(Node* node); |
68 Reduction ReduceToObject(Node* node); | 69 Reduction ReduceToObject(Node* node); |
69 Reduction ReduceToPrimitive(Node* node); | 70 Reduction ReduceToPrimitive(Node* node); |
70 Reduction ReduceToString(Node* node); | 71 Reduction ReduceToString(Node* node); |
71 Reduction ReduceCall(Node* node); | 72 Reduction ReduceCall(Node* node); |
72 Reduction ReduceTailCall(Node* node); | 73 Reduction ReduceTailCall(Node* node); |
73 Reduction ReduceGetSuperConstructor(Node* node); | 74 Reduction ReduceGetSuperConstructor(Node* node); |
| 75 Reduction ReduceAtomicsLoad(Node* node); |
74 | 76 |
75 Reduction Change(Node* node, const Operator* op); | 77 Reduction Change(Node* node, const Operator* op); |
76 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); | 78 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); |
77 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); | 79 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); |
78 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c, | 80 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c, |
79 Node* d); | 81 Node* d); |
80 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); | 82 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); |
81 Reduction Change(Node* node, Callable const& callable, | 83 Reduction Change(Node* node, Callable const& callable, |
82 int stack_parameter_count); | 84 int stack_parameter_count, CallDescriptor::Flags flags); |
83 | 85 |
84 Graph* graph() const; | 86 Graph* graph() const; |
85 JSGraph* jsgraph() const { return jsgraph_; } | 87 JSGraph* jsgraph() const { return jsgraph_; } |
86 Isolate* isolate() const; | 88 Isolate* isolate() const; |
87 CommonOperatorBuilder* common() const; | 89 CommonOperatorBuilder* common() const; |
88 JSOperatorBuilder* javascript() const; | 90 JSOperatorBuilder* javascript() const; |
89 MachineOperatorBuilder* machine() const; | 91 MachineOperatorBuilder* machine() const; |
90 SimplifiedOperatorBuilder* simplified() const; | 92 SimplifiedOperatorBuilder* simplified() const; |
91 DeoptimizationMode mode() const { return mode_; } | 93 DeoptimizationMode mode() const { return mode_; } |
92 TypeCache const& type_cache() const { return type_cache_; } | 94 TypeCache const& type_cache() const { return type_cache_; } |
93 | 95 |
94 JSGraph* const jsgraph_; | 96 JSGraph* const jsgraph_; |
95 DeoptimizationMode const mode_; | 97 DeoptimizationMode const mode_; |
96 TypeCache const& type_cache_; | 98 TypeCache const& type_cache_; |
97 }; | 99 }; |
98 | 100 |
99 } // namespace compiler | 101 } // namespace compiler |
100 } // namespace internal | 102 } // namespace internal |
101 } // namespace v8 | 103 } // namespace v8 |
102 | 104 |
103 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 105 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
OLD | NEW |