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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.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: Renamed UnalignedAccessConfig to AlignmentRequirements 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 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 MachineOperatorBuilder::kFloat64RoundDown | 2044 MachineOperatorBuilder::kFloat64RoundDown |
2045 MachineOperatorBuilder::kFloat32RoundDown | 2045 MachineOperatorBuilder::kFloat32RoundDown |
2046 MachineOperatorBuilder::kFloat64RoundUp | 2046 MachineOperatorBuilder::kFloat64RoundUp |
2047 MachineOperatorBuilder::kFloat32RoundUp | 2047 MachineOperatorBuilder::kFloat32RoundUp |
2048 MachineOperatorBuilder::kFloat64RoundTruncate | 2048 MachineOperatorBuilder::kFloat64RoundTruncate |
2049 MachineOperatorBuilder::kFloat32RoundTruncate | 2049 MachineOperatorBuilder::kFloat32RoundTruncate |
2050 MachineOperatorBuilder::kFloat64RoundTiesEven | 2050 MachineOperatorBuilder::kFloat64RoundTiesEven |
2051 MachineOperatorBuilder::kFloat32RoundTiesEven; 2051 MachineOperatorBuilder::kFloat32RoundTiesEven;
2052 } 2052 }
2053 2053
2054 // static
2055 MachineOperatorBuilder::AlignmentRequirements
2056 InstructionSelector::AlignmentConfiguration() {
2057 if (kArchVariant == kMips64r6) {
2058 return MachineOperatorBuilder::AlignmentRequirements::
2059 FullUnalignedAccessSupport();
2060 } else {
2061 DCHECK(kArchVariant == kMips64r2);
2062 return MachineOperatorBuilder::AlignmentRequirements::
2063 NoUnalignedAccessSupport();
2064 }
2065 }
2066
2054 } // namespace compiler 2067 } // namespace compiler
2055 } // namespace internal 2068 } // namespace internal
2056 } // namespace v8 2069 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698