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/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
9 #include "src/compiler/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 namespace compiler { | 14 namespace compiler { |
14 | 15 |
15 // Forward declarations. | 16 // Forward declarations. |
16 class CommonOperatorBuilder; | 17 class CommonOperatorBuilder; |
17 class JSGraph; | 18 class JSGraph; |
(...skipping 19 matching lines...) Expand all Loading... |
37 Reduction ReduceIsNonNegativeSmi(Node* node); | 38 Reduction ReduceIsNonNegativeSmi(Node* node); |
38 Reduction ReduceIsSmi(Node* node); | 39 Reduction ReduceIsSmi(Node* node); |
39 Reduction ReduceJSValueGetValue(Node* node); | 40 Reduction ReduceJSValueGetValue(Node* node); |
40 Reduction ReduceMapGetInstanceType(Node* node); | 41 Reduction ReduceMapGetInstanceType(Node* node); |
41 Reduction ReduceMathClz32(Node* node); | 42 Reduction ReduceMathClz32(Node* node); |
42 Reduction ReduceMathFloor(Node* node); | 43 Reduction ReduceMathFloor(Node* node); |
43 Reduction ReduceMathSqrt(Node* node); | 44 Reduction ReduceMathSqrt(Node* node); |
44 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); | 45 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); |
45 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); | 46 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); |
46 Reduction ReduceStringGetLength(Node* node); | 47 Reduction ReduceStringGetLength(Node* node); |
| 48 Reduction ReduceUnLikely(Node* node, BranchHint hint); |
47 Reduction ReduceValueOf(Node* node); | 49 Reduction ReduceValueOf(Node* node); |
48 | 50 |
49 Reduction Change(Node* node, const Operator* op); | 51 Reduction Change(Node* node, const Operator* op); |
50 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); | 52 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); |
51 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); | 53 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); |
52 | 54 |
53 Graph* graph() const; | 55 Graph* graph() const; |
54 JSGraph* jsgraph() const { return jsgraph_; } | 56 JSGraph* jsgraph() const { return jsgraph_; } |
55 CommonOperatorBuilder* common() const; | 57 CommonOperatorBuilder* common() const; |
56 MachineOperatorBuilder* machine() const; | 58 MachineOperatorBuilder* machine() const; |
57 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 59 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
58 | 60 |
59 JSGraph* jsgraph_; | 61 JSGraph* jsgraph_; |
60 SimplifiedOperatorBuilder simplified_; | 62 SimplifiedOperatorBuilder simplified_; |
61 }; | 63 }; |
62 | 64 |
63 } // namespace compiler | 65 } // namespace compiler |
64 } // namespace internal | 66 } // namespace internal |
65 } // namespace v8 | 67 } // namespace v8 |
66 | 68 |
67 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 69 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
OLD | NEW |