| 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 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 | 2510 |
| 2511 InstructionOperand inputs[4]; | 2511 InstructionOperand inputs[4]; |
| 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(); } |
| 2521 |
| 2520 // static | 2522 // static |
| 2521 MachineOperatorBuilder::Flags | 2523 MachineOperatorBuilder::Flags |
| 2522 InstructionSelector::SupportedMachineOperatorFlags() { | 2524 InstructionSelector::SupportedMachineOperatorFlags() { |
| 2523 return MachineOperatorBuilder::kFloat32RoundDown | | 2525 return MachineOperatorBuilder::kFloat32RoundDown | |
| 2524 MachineOperatorBuilder::kFloat64RoundDown | | 2526 MachineOperatorBuilder::kFloat64RoundDown | |
| 2525 MachineOperatorBuilder::kFloat32RoundUp | | 2527 MachineOperatorBuilder::kFloat32RoundUp | |
| 2526 MachineOperatorBuilder::kFloat64RoundUp | | 2528 MachineOperatorBuilder::kFloat64RoundUp | |
| 2527 MachineOperatorBuilder::kFloat32RoundTruncate | | 2529 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 2528 MachineOperatorBuilder::kFloat64RoundTruncate | | 2530 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 2529 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2531 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 2530 MachineOperatorBuilder::kWord32Popcnt | | 2532 MachineOperatorBuilder::kWord32Popcnt | |
| 2531 MachineOperatorBuilder::kWord32ReverseBytes | | 2533 MachineOperatorBuilder::kWord32ReverseBytes | |
| 2532 MachineOperatorBuilder::kWord64ReverseBytes | | 2534 MachineOperatorBuilder::kWord64ReverseBytes | |
| 2533 MachineOperatorBuilder::kWord64Popcnt; | 2535 MachineOperatorBuilder::kWord64Popcnt; |
| 2534 } | 2536 } |
| 2535 | 2537 |
| 2536 // static | 2538 // static |
| 2537 MachineOperatorBuilder::AlignmentRequirements | 2539 MachineOperatorBuilder::AlignmentRequirements |
| 2538 InstructionSelector::AlignmentRequirements() { | 2540 InstructionSelector::AlignmentRequirements() { |
| 2539 return MachineOperatorBuilder::AlignmentRequirements:: | 2541 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2540 FullUnalignedAccessSupport(); | 2542 FullUnalignedAccessSupport(); |
| 2541 } | 2543 } |
| 2542 | 2544 |
| 2543 } // namespace compiler | 2545 } // namespace compiler |
| 2544 } // namespace internal | 2546 } // namespace internal |
| 2545 } // namespace v8 | 2547 } // namespace v8 |
| OLD | NEW |