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

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

Issue 1928513002: Implement UnalignedLoad and UnalignedStore in WASM using LoadByte/Shift/Or and StoreByte/Shift/And. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address code review remarks. Add missing InstructionSelector::AlignmentRequirements for all architeā€¦ Created 4 years, 7 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 MachineOperatorBuilder::kFloat64Min | 1535 MachineOperatorBuilder::kFloat64Min |
1536 MachineOperatorBuilder::kFloat64Max | 1536 MachineOperatorBuilder::kFloat64Max |
1537 MachineOperatorBuilder::kFloat32Min | 1537 MachineOperatorBuilder::kFloat32Min |
1538 MachineOperatorBuilder::kFloat32Max | 1538 MachineOperatorBuilder::kFloat32Max |
1539 MachineOperatorBuilder::kFloat32RoundDown | 1539 MachineOperatorBuilder::kFloat32RoundDown |
1540 MachineOperatorBuilder::kFloat32RoundUp | 1540 MachineOperatorBuilder::kFloat32RoundUp |
1541 MachineOperatorBuilder::kFloat32RoundTruncate | 1541 MachineOperatorBuilder::kFloat32RoundTruncate |
1542 MachineOperatorBuilder::kFloat32RoundTiesEven; 1542 MachineOperatorBuilder::kFloat32RoundTiesEven;
1543 } 1543 }
1544 1544
1545 // static
1546 MachineOperatorBuilder::AlignmentRequirements
1547 InstructionSelector::AlignmentRequirements() {
1548 if (IsMipsArchVariant(kMips32r6)) {
1549 return MachineOperatorBuilder::AlignmentRequirements::
1550 FullUnalignedAccessSupport();
1551 } else {
1552 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) ||
1553 IsMipsArchVariant(kMips32r2));
1554 return MachineOperatorBuilder::AlignmentRequirements::
1555 NoUnalignedAccessSupport();
1556 }
1557 }
1558
1545 } // namespace compiler 1559 } // namespace compiler
1546 } // namespace internal 1560 } // namespace internal
1547 } // namespace v8 1561 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698