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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 2313803003: [turbofan] ARM: Implement vswp and use in gap resolver (Closed)
Patch Set: Fix git's broken rebase Created 4 years, 3 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/arm/disasm-arm.cc ('k') | src/arm/simulator-arm.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1047
1048 1048
1049 void MacroAssembler::VmovLow(DwVfpRegister dst, Register src) { 1049 void MacroAssembler::VmovLow(DwVfpRegister dst, Register src) {
1050 if (dst.code() < 16) { 1050 if (dst.code() < 16) {
1051 const LowDwVfpRegister loc = LowDwVfpRegister::from_code(dst.code()); 1051 const LowDwVfpRegister loc = LowDwVfpRegister::from_code(dst.code());
1052 vmov(loc.low(), src); 1052 vmov(loc.low(), src);
1053 } else { 1053 } else {
1054 vmov(dst, VmovIndexLo, src); 1054 vmov(dst, VmovIndexLo, src);
1055 } 1055 }
1056 } 1056 }
1057
1057 void MacroAssembler::LslPair(Register dst_low, Register dst_high, 1058 void MacroAssembler::LslPair(Register dst_low, Register dst_high,
1058 Register src_low, Register src_high, 1059 Register src_low, Register src_high,
1059 Register scratch, Register shift) { 1060 Register scratch, Register shift) {
1060 DCHECK(!AreAliased(dst_high, src_low)); 1061 DCHECK(!AreAliased(dst_high, src_low));
1061 DCHECK(!AreAliased(dst_high, shift)); 1062 DCHECK(!AreAliased(dst_high, shift));
1062 1063
1063 Label less_than_32; 1064 Label less_than_32;
1064 Label done; 1065 Label done;
1065 rsb(scratch, shift, Operand(32), SetCC); 1066 rsb(scratch, shift, Operand(32), SetCC);
1066 b(gt, &less_than_32); 1067 b(gt, &less_than_32);
(...skipping 3099 matching lines...) Expand 10 before | Expand all | Expand 10 after
4166 } 4167 }
4167 } 4168 }
4168 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 4169 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
4169 add(result, result, Operand(dividend, LSR, 31)); 4170 add(result, result, Operand(dividend, LSR, 31));
4170 } 4171 }
4171 4172
4172 } // namespace internal 4173 } // namespace internal
4173 } // namespace v8 4174 } // namespace v8
4174 4175
4175 #endif // V8_TARGET_ARCH_ARM 4176 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698