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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.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
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/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 immediate_mode = kLoadStoreImm64; 586 immediate_mode = kLoadStoreImm64;
587 break; 587 break;
588 case MachineRepresentation::kSimd128: // Fall through. 588 case MachineRepresentation::kSimd128: // Fall through.
589 case MachineRepresentation::kNone: 589 case MachineRepresentation::kNone:
590 UNREACHABLE(); 590 UNREACHABLE();
591 return; 591 return;
592 } 592 }
593 EmitLoad(this, node, opcode, immediate_mode, rep); 593 EmitLoad(this, node, opcode, immediate_mode, rep);
594 } 594 }
595 595
596 void InstructionSelector::VisitProtectedLoad(Node* node) {
597 // TODO(eholk)
598 UNIMPLEMENTED();
599 }
596 600
597 void InstructionSelector::VisitStore(Node* node) { 601 void InstructionSelector::VisitStore(Node* node) {
598 Arm64OperandGenerator g(this); 602 Arm64OperandGenerator g(this);
599 Node* base = node->InputAt(0); 603 Node* base = node->InputAt(0);
600 Node* index = node->InputAt(1); 604 Node* index = node->InputAt(1);
601 Node* value = node->InputAt(2); 605 Node* value = node->InputAt(2);
602 606
603 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); 607 StoreRepresentation store_rep = StoreRepresentationOf(node->op());
604 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); 608 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind();
605 MachineRepresentation rep = store_rep.representation(); 609 MachineRepresentation rep = store_rep.representation();
(...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 // static 2797 // static
2794 MachineOperatorBuilder::AlignmentRequirements 2798 MachineOperatorBuilder::AlignmentRequirements
2795 InstructionSelector::AlignmentRequirements() { 2799 InstructionSelector::AlignmentRequirements() {
2796 return MachineOperatorBuilder::AlignmentRequirements:: 2800 return MachineOperatorBuilder::AlignmentRequirements::
2797 FullUnalignedAccessSupport(); 2801 FullUnalignedAccessSupport();
2798 } 2802 }
2799 2803
2800 } // namespace compiler 2804 } // namespace compiler
2801 } // namespace internal 2805 } // namespace internal
2802 } // namespace v8 2806 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698