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

Side by Side Diff: src/ppc/assembler-ppc.cc

Issue 2242223002: PPC: Enable unaligned access and clean up the use of UNALIGNED_ACCESSES (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase over master Created 4 years, 4 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/ppc/assembler-ppc.h ('k') | src/ppc/constants-ppc.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 Register ra = src.ra(); 1224 Register ra = src.ra();
1225 Register rb = src.rb(); 1225 Register rb = src.rb();
1226 DCHECK(!ra.is(r0)); 1226 DCHECK(!ra.is(r0));
1227 emit(EXT2 | LWAX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11); 1227 emit(EXT2 | LWAX | rt.code() * B21 | ra.code() * B16 | rb.code() * B11);
1228 #else 1228 #else
1229 lwzx(rt, src); 1229 lwzx(rt, src);
1230 #endif 1230 #endif
1231 } 1231 }
1232 1232
1233 1233
1234 void Assembler::ldbrx(Register dst, const MemOperand& src) {
1235 x_form(EXT2 | LDBRX, src.ra(), dst, src.rb(), LeaveRC);
1236 }
1237
1238
1239 void Assembler::lwbrx(Register dst, const MemOperand& src) {
1240 x_form(EXT2 | LWBRX, src.ra(), dst, src.rb(), LeaveRC);
1241 }
1242
1243
1244 void Assembler::lhbrx(Register dst, const MemOperand& src) {
1245 x_form(EXT2 | LHBRX, src.ra(), dst, src.rb(), LeaveRC);
1246 }
1247
1248
1234 void Assembler::stb(Register dst, const MemOperand& src) { 1249 void Assembler::stb(Register dst, const MemOperand& src) {
1235 DCHECK(!src.ra_.is(r0)); 1250 DCHECK(!src.ra_.is(r0));
1236 d_form(STB, dst, src.ra(), src.offset(), true); 1251 d_form(STB, dst, src.ra(), src.offset(), true);
1237 } 1252 }
1238 1253
1239 1254
1240 void Assembler::stbx(Register rs, const MemOperand& src) { 1255 void Assembler::stbx(Register rs, const MemOperand& src) {
1241 Register ra = src.ra(); 1256 Register ra = src.ra();
1242 Register rb = src.rb(); 1257 Register rb = src.rb();
1243 DCHECK(!ra.is(r0)); 1258 DCHECK(!ra.is(r0));
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 2515
2501 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); 2516 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_);
2502 } 2517 }
2503 } 2518 }
2504 2519
2505 2520
2506 } // namespace internal 2521 } // namespace internal
2507 } // namespace v8 2522 } // namespace v8
2508 2523
2509 #endif // V8_TARGET_ARCH_PPC 2524 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | src/ppc/constants-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698