OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_CHANGE_LOWERING_H_ | 5 #ifndef V8_COMPILER_CHANGE_LOWERING_H_ |
6 #define V8_COMPILER_CHANGE_LOWERING_H_ | 6 #define V8_COMPILER_CHANGE_LOWERING_H_ |
7 | 7 |
8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 namespace compiler { | 12 namespace compiler { |
13 | 13 |
14 // Forward declarations. | 14 // Forward declarations. |
15 class CommonOperatorBuilder; | 15 class CommonOperatorBuilder; |
| 16 struct ElementAccess; |
16 class JSGraph; | 17 class JSGraph; |
17 class Linkage; | 18 class Linkage; |
18 class MachineOperatorBuilder; | 19 class MachineOperatorBuilder; |
19 class Operator; | 20 class Operator; |
20 | 21 |
21 class ChangeLowering final : public Reducer { | 22 class ChangeLowering final : public Reducer { |
22 public: | 23 public: |
23 explicit ChangeLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} | 24 explicit ChangeLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} |
24 ~ChangeLowering() final; | 25 ~ChangeLowering() final; |
25 | 26 |
(...skipping 16 matching lines...) Expand all Loading... |
42 | 43 |
43 Reduction ChangeBitToBool(Node* value, Node* control); | 44 Reduction ChangeBitToBool(Node* value, Node* control); |
44 Reduction ChangeBoolToBit(Node* value); | 45 Reduction ChangeBoolToBit(Node* value); |
45 Reduction ChangeFloat64ToTagged(Node* value, Node* control); | 46 Reduction ChangeFloat64ToTagged(Node* value, Node* control); |
46 Reduction ChangeInt32ToTagged(Node* value, Node* control); | 47 Reduction ChangeInt32ToTagged(Node* value, Node* control); |
47 Reduction ChangeTaggedToFloat64(Node* value, Node* control); | 48 Reduction ChangeTaggedToFloat64(Node* value, Node* control); |
48 Reduction ChangeTaggedToUI32(Node* value, Node* control, | 49 Reduction ChangeTaggedToUI32(Node* value, Node* control, |
49 Signedness signedness); | 50 Signedness signedness); |
50 Reduction ChangeUint32ToTagged(Node* value, Node* control); | 51 Reduction ChangeUint32ToTagged(Node* value, Node* control); |
51 | 52 |
| 53 Reduction LoadField(Node* node); |
| 54 Reduction StoreField(Node* node); |
| 55 Reduction LoadElement(Node* node); |
| 56 Reduction StoreElement(Node* node); |
| 57 Reduction Allocate(Node* node); |
| 58 |
| 59 Node* ComputeIndex(const ElementAccess& access, Node* const key); |
52 Graph* graph() const; | 60 Graph* graph() const; |
53 Isolate* isolate() const; | 61 Isolate* isolate() const; |
54 JSGraph* jsgraph() const { return jsgraph_; } | 62 JSGraph* jsgraph() const { return jsgraph_; } |
55 CommonOperatorBuilder* common() const; | 63 CommonOperatorBuilder* common() const; |
56 MachineOperatorBuilder* machine() const; | 64 MachineOperatorBuilder* machine() const; |
57 | 65 |
58 JSGraph* const jsgraph_; | 66 JSGraph* const jsgraph_; |
59 SetOncePointer<const Operator> allocate_heap_number_operator_; | 67 SetOncePointer<const Operator> allocate_heap_number_operator_; |
60 }; | 68 }; |
61 | 69 |
62 } // namespace compiler | 70 } // namespace compiler |
63 } // namespace internal | 71 } // namespace internal |
64 } // namespace v8 | 72 } // namespace v8 |
65 | 73 |
66 #endif // V8_COMPILER_CHANGE_LOWERING_H_ | 74 #endif // V8_COMPILER_CHANGE_LOWERING_H_ |
OLD | NEW |