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/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/s390/frames-s390.h" | 9 #include "src/s390/frames-s390.h" |
10 | 10 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 #if V8_TARGET_ARCH_S390X | 236 #if V8_TARGET_ARCH_S390X |
237 && g.CanBeImmediate(offset, kInt16Imm_4ByteAligned) | 237 && g.CanBeImmediate(offset, kInt16Imm_4ByteAligned) |
238 #endif | 238 #endif |
239 ) { | 239 ) { |
240 inputs[input_count++] = g.UseImmediate(offset); | 240 inputs[input_count++] = g.UseImmediate(offset); |
241 addressing_mode = kMode_MRI; | 241 addressing_mode = kMode_MRI; |
242 } else { | 242 } else { |
243 inputs[input_count++] = g.UseUniqueRegister(offset); | 243 inputs[input_count++] = g.UseUniqueRegister(offset); |
244 addressing_mode = kMode_MRR; | 244 addressing_mode = kMode_MRR; |
245 } | 245 } |
246 inputs[input_count++] = (write_barrier_kind == kMapWriteBarrier) | 246 inputs[input_count++] = g.UseUniqueRegister(value); |
247 ? g.UseRegister(value) | |
248 : g.UseUniqueRegister(value); | |
249 RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny; | 247 RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny; |
250 switch (write_barrier_kind) { | 248 switch (write_barrier_kind) { |
251 case kNoWriteBarrier: | 249 case kNoWriteBarrier: |
252 UNREACHABLE(); | 250 UNREACHABLE(); |
253 break; | 251 break; |
254 case kMapWriteBarrier: | 252 case kMapWriteBarrier: |
255 record_write_mode = RecordWriteMode::kValueIsMap; | 253 record_write_mode = RecordWriteMode::kValueIsMap; |
256 break; | 254 break; |
257 case kPointerWriteBarrier: | 255 case kPointerWriteBarrier: |
258 record_write_mode = RecordWriteMode::kValueIsPointer; | 256 record_write_mode = RecordWriteMode::kValueIsPointer; |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1681 MachineOperatorBuilder::kFloat32RoundTruncate | | 1679 MachineOperatorBuilder::kFloat32RoundTruncate | |
1682 MachineOperatorBuilder::kFloat64RoundTruncate | | 1680 MachineOperatorBuilder::kFloat64RoundTruncate | |
1683 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1681 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1684 MachineOperatorBuilder::kWord32Popcnt | | 1682 MachineOperatorBuilder::kWord32Popcnt | |
1685 MachineOperatorBuilder::kWord64Popcnt; | 1683 MachineOperatorBuilder::kWord64Popcnt; |
1686 } | 1684 } |
1687 | 1685 |
1688 } // namespace compiler | 1686 } // namespace compiler |
1689 } // namespace internal | 1687 } // namespace internal |
1690 } // namespace v8 | 1688 } // namespace v8 |
OLD | NEW |