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

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

Issue 10919008: Unbox phis that were proven to be of type Double. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Srdjan's comments Created 8 years, 3 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/isolate.cc ('k') | runtime/vm/stub_code_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) 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ASSERT(IsConstant()); 70 ASSERT(IsConstant());
71 return "C"; 71 return "C";
72 } 72 }
73 return "?"; 73 return "?";
74 } 74 }
75 75
76 76
77 void Location::PrintTo(BufferFormatter* f) const { 77 void Location::PrintTo(BufferFormatter* f) const {
78 if (kind() == kStackSlot) { 78 if (kind() == kStackSlot) {
79 f->Print("S%+d", stack_index()); 79 f->Print("S%+d", stack_index());
80 } else if (kind() == kDoubleStackSlot) {
81 f->Print("DS%+d", stack_index());
80 } else { 82 } else {
81 f->Print("%s", Name()); 83 f->Print("%s", Name());
82 } 84 }
83 } 85 }
84 86
85 87
86 void Location::Print() const { 88 void Location::Print() const {
87 if (kind() == kStackSlot) { 89 if (kind() == kStackSlot) {
88 OS::Print("S%+d", stack_index()); 90 OS::Print("S%+d", stack_index());
89 } else { 91 } else {
(...skipping 23 matching lines...) Expand all
113 115
114 if (!out().IsInvalid()) { 116 if (!out().IsInvalid()) {
115 f->Print(" => "); 117 f->Print(" => ");
116 out().PrintTo(f); 118 out().PrintTo(f);
117 } 119 }
118 120
119 if (always_calls()) f->Print(" C"); 121 if (always_calls()) f->Print(" C");
120 } 122 }
121 123
122 } // namespace dart 124 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698