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

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

Issue 300003015: Reduce register pressure on ARM, ARM64, and MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/constants_arm64.h ('k') | runtime/vm/intermediate_language_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 (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
8 #if defined(TARGET_ARCH_ARM64) 8 #if defined(TARGET_ARCH_ARM64)
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 10
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 Unknown(instr); 1001 Unknown(instr);
1002 } 1002 }
1003 } 1003 }
1004 1004
1005 1005
1006 void ARM64Decoder::DecodeConditionalSelect(Instr* instr) { 1006 void ARM64Decoder::DecodeConditionalSelect(Instr* instr) {
1007 if ((instr->Bits(29, 2) == 0) && (instr->Bits(10, 2) == 0)) { 1007 if ((instr->Bits(29, 2) == 0) && (instr->Bits(10, 2) == 0)) {
1008 Format(instr, "mov'sf'cond 'rd, 'rn, 'rm"); 1008 Format(instr, "mov'sf'cond 'rd, 'rn, 'rm");
1009 } else if ((instr->Bits(29, 2) == 0) && (instr->Bits(10, 2) == 1)) { 1009 } else if ((instr->Bits(29, 2) == 0) && (instr->Bits(10, 2) == 1)) {
1010 Format(instr, "csinc'sf'cond 'rd, 'rn, 'rm"); 1010 Format(instr, "csinc'sf'cond 'rd, 'rn, 'rm");
1011 } else if ((instr->Bits(29, 2) == 2) && (instr->Bits(10, 2) == 0)) {
1012 Format(instr, "csinv'sf'cond 'rd, 'rn, 'rm");
1011 } else { 1013 } else {
1012 Unknown(instr); 1014 Unknown(instr);
1013 } 1015 }
1014 } 1016 }
1015 1017
1016 1018
1017 void ARM64Decoder::DecodeDPRegister(Instr* instr) { 1019 void ARM64Decoder::DecodeDPRegister(Instr* instr) {
1018 if (instr->IsAddSubShiftExtOp()) { 1020 if (instr->IsAddSubShiftExtOp()) {
1019 DecodeAddSubShiftExt(instr); 1021 DecodeAddSubShiftExt(instr);
1020 } else if (instr->IsLogicalShiftOp()) { 1022 } else if (instr->IsLogicalShiftOp()) {
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 human_buffer, 1386 human_buffer,
1385 sizeof(human_buffer), 1387 sizeof(human_buffer),
1386 pc); 1388 pc);
1387 pc += instruction_length; 1389 pc += instruction_length;
1388 } 1390 }
1389 } 1391 }
1390 1392
1391 } // namespace dart 1393 } // namespace dart
1392 1394
1393 #endif // defined TARGET_ARCH_ARM 1395 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/constants_arm64.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698