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 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2512 size_t input_count = 0; | 2512 size_t input_count = 0; |
2513 inputs[input_count++] = g.UseUniqueRegister(value); | 2513 inputs[input_count++] = g.UseUniqueRegister(value); |
2514 inputs[input_count++] = g.UseUniqueRegister(base); | 2514 inputs[input_count++] = g.UseUniqueRegister(base); |
2515 inputs[input_count++] = g.UseUniqueRegister(index); | 2515 inputs[input_count++] = g.UseUniqueRegister(index); |
2516 Emit(opcode | AddressingModeField::encode(kMode_MRR), 0, nullptr, input_count, | 2516 Emit(opcode | AddressingModeField::encode(kMode_MRR), 0, nullptr, input_count, |
2517 inputs); | 2517 inputs); |
2518 } | 2518 } |
2519 | 2519 |
2520 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); } | 2520 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); } |
2521 | 2521 |
| 2522 void InstructionSelector::VisitAtomicCompareExchange(Node* node) { |
| 2523 UNIMPLEMENTED(); |
| 2524 } |
| 2525 |
2522 // static | 2526 // static |
2523 MachineOperatorBuilder::Flags | 2527 MachineOperatorBuilder::Flags |
2524 InstructionSelector::SupportedMachineOperatorFlags() { | 2528 InstructionSelector::SupportedMachineOperatorFlags() { |
2525 return MachineOperatorBuilder::kFloat32RoundDown | | 2529 return MachineOperatorBuilder::kFloat32RoundDown | |
2526 MachineOperatorBuilder::kFloat64RoundDown | | 2530 MachineOperatorBuilder::kFloat64RoundDown | |
2527 MachineOperatorBuilder::kFloat32RoundUp | | 2531 MachineOperatorBuilder::kFloat32RoundUp | |
2528 MachineOperatorBuilder::kFloat64RoundUp | | 2532 MachineOperatorBuilder::kFloat64RoundUp | |
2529 MachineOperatorBuilder::kFloat32RoundTruncate | | 2533 MachineOperatorBuilder::kFloat32RoundTruncate | |
2530 MachineOperatorBuilder::kFloat64RoundTruncate | | 2534 MachineOperatorBuilder::kFloat64RoundTruncate | |
2531 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2535 MachineOperatorBuilder::kFloat64RoundTiesAway | |
2532 MachineOperatorBuilder::kWord32Popcnt | | 2536 MachineOperatorBuilder::kWord32Popcnt | |
2533 MachineOperatorBuilder::kWord32ReverseBytes | | 2537 MachineOperatorBuilder::kWord32ReverseBytes | |
2534 MachineOperatorBuilder::kWord64ReverseBytes | | 2538 MachineOperatorBuilder::kWord64ReverseBytes | |
2535 MachineOperatorBuilder::kWord64Popcnt; | 2539 MachineOperatorBuilder::kWord64Popcnt; |
2536 } | 2540 } |
2537 | 2541 |
2538 // static | 2542 // static |
2539 MachineOperatorBuilder::AlignmentRequirements | 2543 MachineOperatorBuilder::AlignmentRequirements |
2540 InstructionSelector::AlignmentRequirements() { | 2544 InstructionSelector::AlignmentRequirements() { |
2541 return MachineOperatorBuilder::AlignmentRequirements:: | 2545 return MachineOperatorBuilder::AlignmentRequirements:: |
2542 FullUnalignedAccessSupport(); | 2546 FullUnalignedAccessSupport(); |
2543 } | 2547 } |
2544 | 2548 |
2545 } // namespace compiler | 2549 } // namespace compiler |
2546 } // namespace internal | 2550 } // namespace internal |
2547 } // namespace v8 | 2551 } // namespace v8 |
OLD | NEW |