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

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

Issue 10875030: Add support for XMM registers in SSA code generation pipeline. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix a bug pointed out by Florian Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/locations.h" 5 #include "vm/locations.h"
6 6
7 #include "vm/il_printer.h" 7 #include "vm/il_printer.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 summary->set_out(out); 43 summary->set_out(out);
44 return summary; 44 return summary;
45 } 45 }
46 46
47 47
48 const char* Location::Name() const { 48 const char* Location::Name() const {
49 switch (kind()) { 49 switch (kind()) {
50 case kInvalid: return "?"; 50 case kInvalid: return "?";
51 case kRegister: return Assembler::RegisterName(reg()); 51 case kRegister: return Assembler::RegisterName(reg());
52 case kXmmRegister: return Assembler::XmmRegisterName(xmm_reg());
52 case kStackSlot: return "S"; 53 case kStackSlot: return "S";
54 case kDoubleStackSlot: return "DS";
53 case kUnallocated: 55 case kUnallocated:
54 switch (policy()) { 56 switch (policy()) {
55 case kAny: 57 case kAny:
56 return "A"; 58 return "A";
57 case kPrefersRegister: 59 case kPrefersRegister:
58 return "P"; 60 return "P";
59 case kRequiresRegister: 61 case kRequiresRegister:
60 return "R"; 62 return "R";
63 case kRequiresXmmRegister:
64 return "DR";
61 case kSameAsFirstInput: 65 case kSameAsFirstInput:
62 return "0"; 66 return "0";
63 } 67 }
64 UNREACHABLE(); 68 UNREACHABLE();
65 default: 69 default:
66 ASSERT(IsConstant()); 70 ASSERT(IsConstant());
67 return "C"; 71 return "C";
68 } 72 }
69 return "?"; 73 return "?";
70 } 74 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 113
110 if (!out().IsInvalid()) { 114 if (!out().IsInvalid()) {
111 f->Print(" => "); 115 f->Print(" => ");
112 out().PrintTo(f); 116 out().PrintTo(f);
113 } 117 }
114 118
115 if (always_calls()) f->Print(" C"); 119 if (always_calls()) f->Print(" C");
116 } 120 }
117 121
118 } // namespace dart 122 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698