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

Side by Side Diff: src/compiler/mips/code-generator-mips.cc

Issue 1779713009: Implement optional turbofan UnalignedLoad and UnalignedStore operators (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/machine-operator.cc ('k') | src/compiler/mips/instruction-codes-mips.h » ('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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 break; 1156 break;
1157 case kMipsLb: 1157 case kMipsLb:
1158 __ lb(i.OutputRegister(), i.MemoryOperand()); 1158 __ lb(i.OutputRegister(), i.MemoryOperand());
1159 break; 1159 break;
1160 case kMipsSb: 1160 case kMipsSb:
1161 __ sb(i.InputRegister(2), i.MemoryOperand()); 1161 __ sb(i.InputRegister(2), i.MemoryOperand());
1162 break; 1162 break;
1163 case kMipsLhu: 1163 case kMipsLhu:
1164 __ lhu(i.OutputRegister(), i.MemoryOperand()); 1164 __ lhu(i.OutputRegister(), i.MemoryOperand());
1165 break; 1165 break;
1166 case kMipsUlhu:
1167 UNREACHABLE();
Paul Lind 2016/03/12 05:07:46 I'm guessing you just don't have implementation ye
1168 __ lhu(i.OutputRegister(), i.MemoryOperand());
1169 break;
1166 case kMipsLh: 1170 case kMipsLh:
1167 __ lh(i.OutputRegister(), i.MemoryOperand()); 1171 __ lh(i.OutputRegister(), i.MemoryOperand());
1168 break; 1172 break;
1173 case kMipsUlh:
1174 UNREACHABLE();
1175 __ lh(i.OutputRegister(), i.MemoryOperand());
1176 break;
1169 case kMipsSh: 1177 case kMipsSh:
1170 __ sh(i.InputRegister(2), i.MemoryOperand()); 1178 __ sh(i.InputRegister(2), i.MemoryOperand());
1171 break; 1179 break;
1180 case kMipsUsh:
1181 UNREACHABLE();
1182 __ sh(i.InputRegister(2), i.MemoryOperand());
1183 break;
1172 case kMipsLw: 1184 case kMipsLw:
1173 __ lw(i.OutputRegister(), i.MemoryOperand()); 1185 __ lw(i.OutputRegister(), i.MemoryOperand());
1174 break; 1186 break;
1187 case kMipsUlw:
1188 __ Ulw(i.OutputRegister(), i.MemoryOperand());
1189 break;
1175 case kMipsSw: 1190 case kMipsSw:
1176 __ sw(i.InputRegister(2), i.MemoryOperand()); 1191 __ sw(i.InputRegister(2), i.MemoryOperand());
1177 break; 1192 break;
1193 case kMipsUsw:
1194 __ Usw(i.InputRegister(2), i.MemoryOperand());
1195 break;
1178 case kMipsLwc1: { 1196 case kMipsLwc1: {
1179 __ lwc1(i.OutputSingleRegister(), i.MemoryOperand()); 1197 __ lwc1(i.OutputSingleRegister(), i.MemoryOperand());
1180 break; 1198 break;
1181 } 1199 }
1182 case kMipsSwc1: { 1200 case kMipsSwc1: {
1183 size_t index = 0; 1201 size_t index = 0;
1184 MemOperand operand = i.MemoryOperand(&index); 1202 MemOperand operand = i.MemoryOperand(&index);
1185 __ swc1(i.InputSingleRegister(index), operand); 1203 __ swc1(i.InputSingleRegister(index), operand);
1186 break; 1204 break;
1187 } 1205 }
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 padding_size -= v8::internal::Assembler::kInstrSize; 1880 padding_size -= v8::internal::Assembler::kInstrSize;
1863 } 1881 }
1864 } 1882 }
1865 } 1883 }
1866 1884
1867 #undef __ 1885 #undef __
1868 1886
1869 } // namespace compiler 1887 } // namespace compiler
1870 } // namespace internal 1888 } // namespace internal
1871 } // namespace v8 1889 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698