OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 InstructionOperand outputs[1]; | 204 InstructionOperand outputs[1]; |
205 outputs[0] = g.DefineAsRegister(node); | 205 outputs[0] = g.DefineAsRegister(node); |
206 InstructionOperand inputs[3]; | 206 InstructionOperand inputs[3]; |
207 size_t input_count = 0; | 207 size_t input_count = 0; |
208 AddressingMode mode = | 208 AddressingMode mode = |
209 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); | 209 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); |
210 InstructionCode code = opcode | AddressingModeField::encode(mode); | 210 InstructionCode code = opcode | AddressingModeField::encode(mode); |
211 Emit(code, 1, outputs, input_count, inputs); | 211 Emit(code, 1, outputs, input_count, inputs); |
212 } | 212 } |
213 | 213 |
| 214 void InstructionSelector::VisitProtectedLoad(Node* node) { |
| 215 // TODO(eholk) |
| 216 UNIMPLEMENTED(); |
| 217 } |
214 | 218 |
215 void InstructionSelector::VisitStore(Node* node) { | 219 void InstructionSelector::VisitStore(Node* node) { |
216 X87OperandGenerator g(this); | 220 X87OperandGenerator g(this); |
217 Node* base = node->InputAt(0); | 221 Node* base = node->InputAt(0); |
218 Node* index = node->InputAt(1); | 222 Node* index = node->InputAt(1); |
219 Node* value = node->InputAt(2); | 223 Node* value = node->InputAt(2); |
220 | 224 |
221 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); | 225 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); |
222 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); | 226 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); |
223 MachineRepresentation rep = store_rep.representation(); | 227 MachineRepresentation rep = store_rep.representation(); |
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 // static | 1751 // static |
1748 MachineOperatorBuilder::AlignmentRequirements | 1752 MachineOperatorBuilder::AlignmentRequirements |
1749 InstructionSelector::AlignmentRequirements() { | 1753 InstructionSelector::AlignmentRequirements() { |
1750 return MachineOperatorBuilder::AlignmentRequirements:: | 1754 return MachineOperatorBuilder::AlignmentRequirements:: |
1751 FullUnalignedAccessSupport(); | 1755 FullUnalignedAccessSupport(); |
1752 } | 1756 } |
1753 | 1757 |
1754 } // namespace compiler | 1758 } // namespace compiler |
1755 } // namespace internal | 1759 } // namespace internal |
1756 } // namespace v8 | 1760 } // namespace v8 |
OLD | NEW |