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 #include "src/compiler/instruction-scheduler.h" | 5 #include "src/compiler/instruction-scheduler.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace compiler { | 9 namespace compiler { |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 case kS390_DoubleToFloat32: | 114 case kS390_DoubleToFloat32: |
115 case kS390_DoubleExtractLowWord32: | 115 case kS390_DoubleExtractLowWord32: |
116 case kS390_DoubleExtractHighWord32: | 116 case kS390_DoubleExtractHighWord32: |
117 case kS390_DoubleInsertLowWord32: | 117 case kS390_DoubleInsertLowWord32: |
118 case kS390_DoubleInsertHighWord32: | 118 case kS390_DoubleInsertHighWord32: |
119 case kS390_DoubleConstruct: | 119 case kS390_DoubleConstruct: |
120 case kS390_BitcastInt32ToFloat32: | 120 case kS390_BitcastInt32ToFloat32: |
121 case kS390_BitcastFloat32ToInt32: | 121 case kS390_BitcastFloat32ToInt32: |
122 case kS390_BitcastInt64ToDouble: | 122 case kS390_BitcastInt64ToDouble: |
123 case kS390_BitcastDoubleToInt64: | 123 case kS390_BitcastDoubleToInt64: |
| 124 case kS390_LoadReverse16RR: |
| 125 case kS390_LoadReverse32RR: |
| 126 case kS390_LoadReverse64RR: |
124 return kNoOpcodeFlags; | 127 return kNoOpcodeFlags; |
125 | 128 |
126 case kS390_LoadWordS8: | 129 case kS390_LoadWordS8: |
127 case kS390_LoadWordU8: | 130 case kS390_LoadWordU8: |
128 case kS390_LoadWordS16: | 131 case kS390_LoadWordS16: |
129 case kS390_LoadWordU16: | 132 case kS390_LoadWordU16: |
130 case kS390_LoadWordS32: | 133 case kS390_LoadWordS32: |
131 case kS390_LoadWordU32: | 134 case kS390_LoadWordU32: |
132 case kS390_LoadWord64: | 135 case kS390_LoadWord64: |
133 case kS390_LoadFloat32: | 136 case kS390_LoadFloat32: |
134 case kS390_LoadDouble: | 137 case kS390_LoadDouble: |
| 138 case kS390_LoadReverse16: |
| 139 case kS390_LoadReverse32: |
| 140 case kS390_LoadReverse64: |
135 return kIsLoadOperation; | 141 return kIsLoadOperation; |
136 | 142 |
137 case kS390_StoreWord8: | 143 case kS390_StoreWord8: |
138 case kS390_StoreWord16: | 144 case kS390_StoreWord16: |
139 case kS390_StoreWord32: | 145 case kS390_StoreWord32: |
140 case kS390_StoreWord64: | 146 case kS390_StoreWord64: |
| 147 case kS390_StoreReverse16: |
| 148 case kS390_StoreReverse32: |
| 149 case kS390_StoreReverse64: |
141 case kS390_StoreFloat32: | 150 case kS390_StoreFloat32: |
142 case kS390_StoreDouble: | 151 case kS390_StoreDouble: |
143 case kS390_Push: | 152 case kS390_Push: |
144 case kS390_PushFrame: | 153 case kS390_PushFrame: |
145 case kS390_StoreToStackSlot: | 154 case kS390_StoreToStackSlot: |
146 return kHasSideEffect; | 155 return kHasSideEffect; |
147 | 156 |
148 #define CASE(Name) case k##Name: | 157 #define CASE(Name) case k##Name: |
149 COMMON_ARCH_OPCODE_LIST(CASE) | 158 COMMON_ARCH_OPCODE_LIST(CASE) |
150 #undef CASE | 159 #undef CASE |
151 // Already covered in architecture independent code. | 160 // Already covered in architecture independent code. |
152 UNREACHABLE(); | 161 UNREACHABLE(); |
153 } | 162 } |
154 | 163 |
155 UNREACHABLE(); | 164 UNREACHABLE(); |
156 return kNoOpcodeFlags; | 165 return kNoOpcodeFlags; |
157 } | 166 } |
158 | 167 |
159 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 168 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
160 // TODO(all): Add instruction cost modeling. | 169 // TODO(all): Add instruction cost modeling. |
161 return 1; | 170 return 1; |
162 } | 171 } |
163 | 172 |
164 } // namespace compiler | 173 } // namespace compiler |
165 } // namespace internal | 174 } // namespace internal |
166 } // namespace v8 | 175 } // namespace v8 |
OLD | NEW |