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

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

Issue 1907363002: MIPS64: Fix [turbofan] Length and index2 are unsigned in CheckedLoad/CheckedStore. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. 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
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | no next file » | 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/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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 opcode = kMips64Ldc1; 151 opcode = kMips64Ldc1;
152 break; 152 break;
153 case MachineRepresentation::kBit: // Fall through. 153 case MachineRepresentation::kBit: // Fall through.
154 case MachineRepresentation::kWord8: 154 case MachineRepresentation::kWord8:
155 opcode = load_rep.IsUnsigned() ? kMips64Lbu : kMips64Lb; 155 opcode = load_rep.IsUnsigned() ? kMips64Lbu : kMips64Lb;
156 break; 156 break;
157 case MachineRepresentation::kWord16: 157 case MachineRepresentation::kWord16:
158 opcode = load_rep.IsUnsigned() ? kMips64Lhu : kMips64Lh; 158 opcode = load_rep.IsUnsigned() ? kMips64Lhu : kMips64Lh;
159 break; 159 break;
160 case MachineRepresentation::kWord32: 160 case MachineRepresentation::kWord32:
161 opcode = kMips64Lw; 161 opcode = load_rep.IsUnsigned() ? kMips64Lwu : kMips64Lw;
162 break; 162 break;
163 case MachineRepresentation::kTagged: // Fall through. 163 case MachineRepresentation::kTagged: // Fall through.
164 case MachineRepresentation::kWord64: 164 case MachineRepresentation::kWord64:
165 opcode = kMips64Ld; 165 opcode = kMips64Ld;
166 break; 166 break;
167 case MachineRepresentation::kSimd128: // Fall through. 167 case MachineRepresentation::kSimd128: // Fall through.
168 case MachineRepresentation::kNone: 168 case MachineRepresentation::kNone:
169 UNREACHABLE(); 169 UNREACHABLE();
170 return; 170 return;
171 } 171 }
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 MachineOperatorBuilder::kFloat32RoundUp | 2049 MachineOperatorBuilder::kFloat32RoundUp |
2050 MachineOperatorBuilder::kFloat64RoundTruncate | 2050 MachineOperatorBuilder::kFloat64RoundTruncate |
2051 MachineOperatorBuilder::kFloat32RoundTruncate | 2051 MachineOperatorBuilder::kFloat32RoundTruncate |
2052 MachineOperatorBuilder::kFloat64RoundTiesEven | 2052 MachineOperatorBuilder::kFloat64RoundTiesEven |
2053 MachineOperatorBuilder::kFloat32RoundTiesEven; 2053 MachineOperatorBuilder::kFloat32RoundTiesEven;
2054 } 2054 }
2055 2055
2056 } // namespace compiler 2056 } // namespace compiler
2057 } // namespace internal 2057 } // namespace internal
2058 } // namespace v8 2058 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698