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

Side by Side Diff: runtime/vm/intermediate_language_arm.cc

Issue 1377113004: VM: Support phis with pair representations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 5 years, 2 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 | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language_ia32.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 6203 matching lines...) Expand 10 before | Expand all | Expand 10 after
6214 reinterpret_cast<int32_t>(locs()->in(1).constant().raw()) >> 1; 6214 reinterpret_cast<int32_t>(locs()->in(1).constant().raw()) >> 1;
6215 switch (op_kind()) { 6215 switch (op_kind()) {
6216 case Token::kSHR: { 6216 case Token::kSHR: {
6217 if (shift < 32) { 6217 if (shift < 32) {
6218 __ Lsl(out_lo, left_hi, Operand(32 - shift)); 6218 __ Lsl(out_lo, left_hi, Operand(32 - shift));
6219 __ orr(out_lo, out_lo, Operand(left_lo, LSR, shift)); 6219 __ orr(out_lo, out_lo, Operand(left_lo, LSR, shift));
6220 __ Asr(out_hi, left_hi, Operand(shift)); 6220 __ Asr(out_hi, left_hi, Operand(shift));
6221 } else { 6221 } else {
6222 if (shift == 32) { 6222 if (shift == 32) {
6223 __ mov(out_lo, Operand(left_hi)); 6223 __ mov(out_lo, Operand(left_hi));
6224 } else if (shift < 64) {
6225 __ Asr(out_lo, left_hi, Operand(shift - 32));
6224 } else { 6226 } else {
6225 __ Asr(out_lo, left_hi, Operand(shift - 32)); 6227 __ Asr(out_lo, left_hi, Operand(31));
6226 } 6228 }
6227 __ Asr(out_hi, left_hi, Operand(31)); 6229 __ Asr(out_hi, left_hi, Operand(31));
6228 } 6230 }
6229 break; 6231 break;
6230 } 6232 }
6231 case Token::kSHL: { 6233 case Token::kSHL: {
6234 ASSERT(shift < 64);
6232 if (shift < 32) { 6235 if (shift < 32) {
6233 __ Lsr(out_hi, left_lo, Operand(32 - shift)); 6236 __ Lsr(out_hi, left_lo, Operand(32 - shift));
6234 __ orr(out_hi, out_hi, Operand(left_hi, LSL, shift)); 6237 __ orr(out_hi, out_hi, Operand(left_hi, LSL, shift));
6235 __ Lsl(out_lo, left_lo, Operand(shift)); 6238 __ Lsl(out_lo, left_lo, Operand(shift));
6236 } else { 6239 } else {
6237 if (shift == 32) { 6240 if (shift == 32) {
6238 __ mov(out_hi, Operand(left_lo)); 6241 __ mov(out_hi, Operand(left_lo));
6239 } else { 6242 } else {
6240 __ Lsl(out_hi, left_lo, Operand(shift - 32)); 6243 __ Lsl(out_hi, left_lo, Operand(shift - 32));
6241 } 6244 }
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
6857 1, 6860 1,
6858 locs()); 6861 locs());
6859 __ Drop(1); 6862 __ Drop(1);
6860 __ Pop(result); 6863 __ Pop(result);
6861 } 6864 }
6862 6865
6863 6866
6864 } // namespace dart 6867 } // namespace dart
6865 6868
6866 #endif // defined TARGET_ARCH_ARM 6869 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698