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/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 Reduction ReduceMathClz32(Node* node); | 46 Reduction ReduceMathClz32(Node* node); |
47 Reduction ReduceMathFloor(Node* node); | 47 Reduction ReduceMathFloor(Node* node); |
48 Reduction ReduceMathSqrt(Node* node); | 48 Reduction ReduceMathSqrt(Node* node); |
49 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); | 49 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); |
50 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); | 50 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); |
51 Reduction ReduceStringGetLength(Node* node); | 51 Reduction ReduceStringGetLength(Node* node); |
52 Reduction ReduceUnLikely(Node* node, BranchHint hint); | 52 Reduction ReduceUnLikely(Node* node, BranchHint hint); |
53 Reduction ReduceValueOf(Node* node); | 53 Reduction ReduceValueOf(Node* node); |
54 Reduction ReduceFixedArraySet(Node* node); | 54 Reduction ReduceFixedArraySet(Node* node); |
55 Reduction ReduceGetTypeFeedbackVector(Node* node); | 55 Reduction ReduceGetTypeFeedbackVector(Node* node); |
| 56 Reduction ReduceGetCallerJSFunction(Node* node); |
56 | 57 |
57 Reduction Change(Node* node, const Operator* op); | 58 Reduction Change(Node* node, const Operator* op); |
58 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); | 59 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); |
59 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); | 60 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); |
60 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); | 61 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); |
61 | 62 |
62 Graph* graph() const; | 63 Graph* graph() const; |
63 JSGraph* jsgraph() const { return jsgraph_; } | 64 JSGraph* jsgraph() const { return jsgraph_; } |
64 CommonOperatorBuilder* common() const; | 65 CommonOperatorBuilder* common() const; |
65 MachineOperatorBuilder* machine() const; | 66 MachineOperatorBuilder* machine() const; |
66 DeoptimizationMode mode() const { return mode_; } | 67 DeoptimizationMode mode() const { return mode_; } |
67 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 68 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
68 | 69 |
69 JSGraph* const jsgraph_; | 70 JSGraph* const jsgraph_; |
70 DeoptimizationMode const mode_; | 71 DeoptimizationMode const mode_; |
71 SimplifiedOperatorBuilder simplified_; | 72 SimplifiedOperatorBuilder simplified_; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace compiler | 75 } // namespace compiler |
75 } // namespace internal | 76 } // namespace internal |
76 } // namespace v8 | 77 } // namespace v8 |
77 | 78 |
78 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 79 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
OLD | NEW |