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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 InstructionOperand outputs[1]; | 320 InstructionOperand outputs[1]; |
321 outputs[0] = g.DefineAsRegister(node); | 321 outputs[0] = g.DefineAsRegister(node); |
322 InstructionOperand inputs[3]; | 322 InstructionOperand inputs[3]; |
323 size_t input_count = 0; | 323 size_t input_count = 0; |
324 AddressingMode mode = | 324 AddressingMode mode = |
325 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); | 325 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); |
326 InstructionCode code = opcode | AddressingModeField::encode(mode); | 326 InstructionCode code = opcode | AddressingModeField::encode(mode); |
327 Emit(code, 1, outputs, input_count, inputs); | 327 Emit(code, 1, outputs, input_count, inputs); |
328 } | 328 } |
329 | 329 |
| 330 void InstructionSelector::VisitProtectedLoad(Node* node) { |
| 331 // TODO(eholk) |
| 332 UNIMPLEMENTED(); |
| 333 } |
| 334 |
330 void InstructionSelector::VisitStore(Node* node) { | 335 void InstructionSelector::VisitStore(Node* node) { |
331 S390OperandGenerator g(this); | 336 S390OperandGenerator g(this); |
332 Node* base = node->InputAt(0); | 337 Node* base = node->InputAt(0); |
333 Node* offset = node->InputAt(1); | 338 Node* offset = node->InputAt(1); |
334 Node* value = node->InputAt(2); | 339 Node* value = node->InputAt(2); |
335 | 340 |
336 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); | 341 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); |
337 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); | 342 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); |
338 MachineRepresentation rep = store_rep.representation(); | 343 MachineRepresentation rep = store_rep.representation(); |
339 | 344 |
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2026 // static | 2031 // static |
2027 MachineOperatorBuilder::AlignmentRequirements | 2032 MachineOperatorBuilder::AlignmentRequirements |
2028 InstructionSelector::AlignmentRequirements() { | 2033 InstructionSelector::AlignmentRequirements() { |
2029 return MachineOperatorBuilder::AlignmentRequirements:: | 2034 return MachineOperatorBuilder::AlignmentRequirements:: |
2030 FullUnalignedAccessSupport(); | 2035 FullUnalignedAccessSupport(); |
2031 } | 2036 } |
2032 | 2037 |
2033 } // namespace compiler | 2038 } // namespace compiler |
2034 } // namespace internal | 2039 } // namespace internal |
2035 } // namespace v8 | 2040 } // namespace v8 |
OLD | NEW |