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

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

Issue 12871015: SIMD plumbing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: s/materialize/Materialize Created 7 years, 9 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') | runtime/vm/object.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) 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/locations.h" 5 #include "vm/locations.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/il_printer.h" 8 #include "vm/il_printer.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 99
100 100
101 const char* Location::Name() const { 101 const char* Location::Name() const {
102 switch (kind()) { 102 switch (kind()) {
103 case kInvalid: return "?"; 103 case kInvalid: return "?";
104 case kRegister: return Assembler::RegisterName(reg()); 104 case kRegister: return Assembler::RegisterName(reg());
105 case kFpuRegister: return Assembler::FpuRegisterName(fpu_reg()); 105 case kFpuRegister: return Assembler::FpuRegisterName(fpu_reg());
106 case kStackSlot: return "S"; 106 case kStackSlot: return "S";
107 case kDoubleStackSlot: return "DS"; 107 case kDoubleStackSlot: return "DS";
108 case kFloat32x4StackSlot: return "F32x4S";
109 case kUint32x4StackSlot: return "UI32x4S";
108 case kUnallocated: 110 case kUnallocated:
109 switch (policy()) { 111 switch (policy()) {
110 case kAny: 112 case kAny:
111 return "A"; 113 return "A";
112 case kPrefersRegister: 114 case kPrefersRegister:
113 return "P"; 115 return "P";
114 case kRequiresRegister: 116 case kRequiresRegister:
115 return "R"; 117 return "R";
116 case kRequiresFpuRegister: 118 case kRequiresFpuRegister:
117 return "DR"; 119 return "DR";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 172
171 if (!out().IsInvalid()) { 173 if (!out().IsInvalid()) {
172 f->Print(" => "); 174 f->Print(" => ");
173 out().PrintTo(f); 175 out().PrintTo(f);
174 } 176 }
175 177
176 if (always_calls()) f->Print(" C"); 178 if (always_calls()) f->Print(" C");
177 } 179 }
178 180
179 } // namespace dart 181 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/locations.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698