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 { |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ~ChangeLowering(); | 25 virtual ~ChangeLowering(); |
26 | 26 |
27 virtual Reduction Reduce(Node* node) V8_OVERRIDE; | 27 virtual Reduction Reduce(Node* node) V8_OVERRIDE; |
28 | 28 |
29 protected: | 29 protected: |
30 Node* HeapNumberValueIndexConstant(); | 30 Node* HeapNumberValueIndexConstant(); |
31 Node* SmiShiftBitsConstant(); | 31 Node* SmiShiftBitsConstant(); |
32 | 32 |
33 Reduction ChangeBitToBool(Node* val, Node* control); | 33 Reduction ChangeBitToBool(Node* val, Node* control); |
34 Reduction ChangeBoolToBit(Node* val); | 34 Reduction ChangeBoolToBit(Node* val); |
35 Reduction ChangeInt32ToTagged(Node* val, Node* effect, Node* control); | 35 Reduction ChangeFloat64ToTagged(Node* val, Node* control); |
36 Reduction ChangeTaggedToFloat64(Node* val, Node* effect, Node* control); | 36 Reduction ChangeInt32ToTagged(Node* val, Node* control); |
| 37 Reduction ChangeTaggedToFloat64(Node* val, Node* control); |
| 38 Reduction ChangeTaggedToInt32(Node* val, Node* control); |
37 | 39 |
38 Graph* graph() const; | 40 Graph* graph() const; |
39 Isolate* isolate() const; | 41 Isolate* isolate() const; |
40 JSGraph* jsgraph() const { return jsgraph_; } | 42 JSGraph* jsgraph() const { return jsgraph_; } |
41 Linkage* linkage() const { return linkage_; } | 43 Linkage* linkage() const { return linkage_; } |
42 CommonOperatorBuilder* common() const; | 44 CommonOperatorBuilder* common() const; |
43 MachineOperatorBuilder* machine() const { return machine_; } | 45 MachineOperatorBuilder* machine() const { return machine_; } |
44 | 46 |
45 private: | 47 private: |
| 48 Node* AllocateHeapNumberWithValue(Node* value, Node* control); |
| 49 |
46 JSGraph* jsgraph_; | 50 JSGraph* jsgraph_; |
47 Linkage* linkage_; | 51 Linkage* linkage_; |
48 MachineOperatorBuilder* machine_; | 52 MachineOperatorBuilder* machine_; |
49 }; | 53 }; |
50 | 54 |
51 } // namespace compiler | 55 } // namespace compiler |
52 } // namespace internal | 56 } // namespace internal |
53 } // namespace v8 | 57 } // namespace v8 |
54 | 58 |
55 #endif // V8_COMPILER_CHANGE_LOWERING_H_ | 59 #endif // V8_COMPILER_CHANGE_LOWERING_H_ |
OLD | NEW |