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

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

Issue 27307005: Change == into an instance call to allow polymorphic inlining of ==. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased, addressed comments Created 7 years, 1 month 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/intrinsifier.h ('k') | runtime/vm/symbols.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 return "?"; 153 return "?";
154 } 154 }
155 155
156 156
157 void Location::PrintTo(BufferFormatter* f) const { 157 void Location::PrintTo(BufferFormatter* f) const {
158 if (kind() == kStackSlot) { 158 if (kind() == kStackSlot) {
159 f->Print("S%+" Pd "", stack_index()); 159 f->Print("S%+" Pd "", stack_index());
160 } else if (kind() == kDoubleStackSlot) { 160 } else if (kind() == kDoubleStackSlot) {
161 f->Print("DS%+" Pd "", stack_index()); 161 f->Print("DS%+" Pd "", stack_index());
162 } else if (kind() == kQuadStackSlot) {
163 f->Print("QS%+" Pd "", stack_index());
162 } else { 164 } else {
163 f->Print("%s", Name()); 165 f->Print("%s", Name());
164 } 166 }
165 } 167 }
166 168
167 169
168 void Location::Print() const { 170 void Location::Print() const {
169 if (kind() == kStackSlot) { 171 if (kind() == kStackSlot) {
170 OS::Print("S%+" Pd "", stack_index()); 172 OS::Print("S%+" Pd "", stack_index());
171 } else { 173 } else {
(...skipping 23 matching lines...) Expand all
195 197
196 if (!out().IsInvalid()) { 198 if (!out().IsInvalid()) {
197 f->Print(" => "); 199 f->Print(" => ");
198 out().PrintTo(f); 200 out().PrintTo(f);
199 } 201 }
200 202
201 if (always_calls()) f->Print(" C"); 203 if (always_calls()) f->Print(" C");
202 } 204 }
203 205
204 } // namespace dart 206 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698