| 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 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 size_t input_count = 0; | 2424 size_t input_count = 0; |
| 2425 inputs[input_count++] = g.UseUniqueRegister(base); | 2425 inputs[input_count++] = g.UseUniqueRegister(base); |
| 2426 inputs[input_count++] = g.UseUniqueRegister(index); | 2426 inputs[input_count++] = g.UseUniqueRegister(index); |
| 2427 inputs[input_count++] = g.UseUniqueRegister(value); | 2427 inputs[input_count++] = g.UseUniqueRegister(value); |
| 2428 InstructionOperand outputs[1]; | 2428 InstructionOperand outputs[1]; |
| 2429 outputs[0] = g.UseUniqueRegister(node); | 2429 outputs[0] = g.UseUniqueRegister(node); |
| 2430 InstructionCode code = opcode | AddressingModeField::encode(addressing_mode); | 2430 InstructionCode code = opcode | AddressingModeField::encode(addressing_mode); |
| 2431 Emit(code, 1, outputs, input_count, inputs); | 2431 Emit(code, 1, outputs, input_count, inputs); |
| 2432 } | 2432 } |
| 2433 | 2433 |
| 2434 void InstructionSelector::VisitAtomicCompareExchange(Node* node) { |
| 2435 UNIMPLEMENTED(); |
| 2436 } |
| 2437 |
| 2434 // static | 2438 // static |
| 2435 MachineOperatorBuilder::Flags | 2439 MachineOperatorBuilder::Flags |
| 2436 InstructionSelector::SupportedMachineOperatorFlags() { | 2440 InstructionSelector::SupportedMachineOperatorFlags() { |
| 2437 return MachineOperatorBuilder::kFloat32RoundDown | | 2441 return MachineOperatorBuilder::kFloat32RoundDown | |
| 2438 MachineOperatorBuilder::kFloat64RoundDown | | 2442 MachineOperatorBuilder::kFloat64RoundDown | |
| 2439 MachineOperatorBuilder::kFloat32RoundUp | | 2443 MachineOperatorBuilder::kFloat32RoundUp | |
| 2440 MachineOperatorBuilder::kFloat64RoundUp | | 2444 MachineOperatorBuilder::kFloat64RoundUp | |
| 2441 MachineOperatorBuilder::kFloat32RoundTruncate | | 2445 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 2442 MachineOperatorBuilder::kFloat64RoundTruncate | | 2446 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 2443 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2447 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 2444 MachineOperatorBuilder::kWord32Popcnt | | 2448 MachineOperatorBuilder::kWord32Popcnt | |
| 2445 MachineOperatorBuilder::kWord32ReverseBytes | | 2449 MachineOperatorBuilder::kWord32ReverseBytes | |
| 2446 MachineOperatorBuilder::kWord64ReverseBytes | | 2450 MachineOperatorBuilder::kWord64ReverseBytes | |
| 2447 MachineOperatorBuilder::kWord64Popcnt; | 2451 MachineOperatorBuilder::kWord64Popcnt; |
| 2448 } | 2452 } |
| 2449 | 2453 |
| 2450 // static | 2454 // static |
| 2451 MachineOperatorBuilder::AlignmentRequirements | 2455 MachineOperatorBuilder::AlignmentRequirements |
| 2452 InstructionSelector::AlignmentRequirements() { | 2456 InstructionSelector::AlignmentRequirements() { |
| 2453 return MachineOperatorBuilder::AlignmentRequirements:: | 2457 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2454 FullUnalignedAccessSupport(); | 2458 FullUnalignedAccessSupport(); |
| 2455 } | 2459 } |
| 2456 | 2460 |
| 2457 } // namespace compiler | 2461 } // namespace compiler |
| 2458 } // namespace internal | 2462 } // namespace internal |
| 2459 } // namespace v8 | 2463 } // namespace v8 |
| OLD | NEW |