| 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 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2544 size_t input_count = 0; | 2544 size_t input_count = 0; |
| 2545 inputs[input_count++] = g.UseUniqueRegister(base); | 2545 inputs[input_count++] = g.UseUniqueRegister(base); |
| 2546 inputs[input_count++] = g.UseUniqueRegister(index); | 2546 inputs[input_count++] = g.UseUniqueRegister(index); |
| 2547 inputs[input_count++] = g.UseUniqueRegister(value); | 2547 inputs[input_count++] = g.UseUniqueRegister(value); |
| 2548 InstructionOperand outputs[1]; | 2548 InstructionOperand outputs[1]; |
| 2549 outputs[0] = g.UseUniqueRegister(node); | 2549 outputs[0] = g.UseUniqueRegister(node); |
| 2550 InstructionCode code = opcode | AddressingModeField::encode(addressing_mode); | 2550 InstructionCode code = opcode | AddressingModeField::encode(addressing_mode); |
| 2551 Emit(code, 1, outputs, input_count, inputs); | 2551 Emit(code, 1, outputs, input_count, inputs); |
| 2552 } | 2552 } |
| 2553 | 2553 |
| 2554 void InstructionSelector::VisitAtomicCompareExchange(Node* node) { |
| 2555 UNIMPLEMENTED(); |
| 2556 } |
| 2557 |
| 2554 // static | 2558 // static |
| 2555 MachineOperatorBuilder::Flags | 2559 MachineOperatorBuilder::Flags |
| 2556 InstructionSelector::SupportedMachineOperatorFlags() { | 2560 InstructionSelector::SupportedMachineOperatorFlags() { |
| 2557 return MachineOperatorBuilder::kFloat32RoundDown | | 2561 return MachineOperatorBuilder::kFloat32RoundDown | |
| 2558 MachineOperatorBuilder::kFloat64RoundDown | | 2562 MachineOperatorBuilder::kFloat64RoundDown | |
| 2559 MachineOperatorBuilder::kFloat32RoundUp | | 2563 MachineOperatorBuilder::kFloat32RoundUp | |
| 2560 MachineOperatorBuilder::kFloat64RoundUp | | 2564 MachineOperatorBuilder::kFloat64RoundUp | |
| 2561 MachineOperatorBuilder::kFloat32RoundTruncate | | 2565 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 2562 MachineOperatorBuilder::kFloat64RoundTruncate | | 2566 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 2563 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2567 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 2564 MachineOperatorBuilder::kWord32Popcnt | | 2568 MachineOperatorBuilder::kWord32Popcnt | |
| 2565 MachineOperatorBuilder::kWord32ReverseBytes | | 2569 MachineOperatorBuilder::kWord32ReverseBytes | |
| 2566 MachineOperatorBuilder::kWord64ReverseBytes | | 2570 MachineOperatorBuilder::kWord64ReverseBytes | |
| 2567 MachineOperatorBuilder::kWord64Popcnt; | 2571 MachineOperatorBuilder::kWord64Popcnt; |
| 2568 } | 2572 } |
| 2569 | 2573 |
| 2570 // static | 2574 // static |
| 2571 MachineOperatorBuilder::AlignmentRequirements | 2575 MachineOperatorBuilder::AlignmentRequirements |
| 2572 InstructionSelector::AlignmentRequirements() { | 2576 InstructionSelector::AlignmentRequirements() { |
| 2573 return MachineOperatorBuilder::AlignmentRequirements:: | 2577 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2574 FullUnalignedAccessSupport(); | 2578 FullUnalignedAccessSupport(); |
| 2575 } | 2579 } |
| 2576 | 2580 |
| 2577 } // namespace compiler | 2581 } // namespace compiler |
| 2578 } // namespace internal | 2582 } // namespace internal |
| 2579 } // namespace v8 | 2583 } // namespace v8 |
| OLD | NEW |