Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: src/compiler/ppc/instruction-selector-ppc.cc

Issue 2301833004: [wasm] Trap handling: ProtectedLoad instruction (Closed)
Patch Set: Add VisitProtectedLoad stubs for other architectures Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "src/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 g.DefineAsRegister(node), g.UseRegister(base), g.UseImmediate(offset)); 222 g.DefineAsRegister(node), g.UseRegister(base), g.UseImmediate(offset));
223 } else if (g.CanBeImmediate(base, mode)) { 223 } else if (g.CanBeImmediate(base, mode)) {
224 Emit(opcode | AddressingModeField::encode(kMode_MRI), 224 Emit(opcode | AddressingModeField::encode(kMode_MRI),
225 g.DefineAsRegister(node), g.UseRegister(offset), g.UseImmediate(base)); 225 g.DefineAsRegister(node), g.UseRegister(offset), g.UseImmediate(base));
226 } else { 226 } else {
227 Emit(opcode | AddressingModeField::encode(kMode_MRR), 227 Emit(opcode | AddressingModeField::encode(kMode_MRR),
228 g.DefineAsRegister(node), g.UseRegister(base), g.UseRegister(offset)); 228 g.DefineAsRegister(node), g.UseRegister(base), g.UseRegister(offset));
229 } 229 }
230 } 230 }
231 231
232 void InstructionSelector::VisitProtectedLoad(Node* node) {
233 // TODO(eholk)
234 UNIMPLEMENTED();
235 }
232 236
233 void InstructionSelector::VisitStore(Node* node) { 237 void InstructionSelector::VisitStore(Node* node) {
234 PPCOperandGenerator g(this); 238 PPCOperandGenerator g(this);
235 Node* base = node->InputAt(0); 239 Node* base = node->InputAt(0);
236 Node* offset = node->InputAt(1); 240 Node* offset = node->InputAt(1);
237 Node* value = node->InputAt(2); 241 Node* value = node->InputAt(2);
238 242
239 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); 243 StoreRepresentation store_rep = StoreRepresentationOf(node->op());
240 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); 244 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind();
241 MachineRepresentation rep = store_rep.representation(); 245 MachineRepresentation rep = store_rep.representation();
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 // static 2061 // static
2058 MachineOperatorBuilder::AlignmentRequirements 2062 MachineOperatorBuilder::AlignmentRequirements
2059 InstructionSelector::AlignmentRequirements() { 2063 InstructionSelector::AlignmentRequirements() {
2060 return MachineOperatorBuilder::AlignmentRequirements:: 2064 return MachineOperatorBuilder::AlignmentRequirements::
2061 FullUnalignedAccessSupport(); 2065 FullUnalignedAccessSupport();
2062 } 2066 }
2063 2067
2064 } // namespace compiler 2068 } // namespace compiler
2065 } // namespace internal 2069 } // namespace internal
2066 } // namespace v8 2070 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698