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

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

Issue 10458050: Move ReturnInstr to new scheme (x64 and ia32) and implement more code in new ia32 compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/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/intermediate_language.h" 7 #include "vm/intermediate_language.h"
8 8
9 namespace dart { 9 namespace dart {
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 break; 90 break;
91 case Location::kSameAsFirstInput: 91 case Location::kSameAsFirstInput:
92 result_location = in(0); 92 result_location = in(0);
93 break; 93 break;
94 } 94 }
95 set_out(result_location); 95 set_out(result_location);
96 } 96 }
97 } 97 }
98 98
99 99
100 LocationSummary* LocationSummary::Make(intptr_t input_count, Location out) {
101 LocationSummary* summary = new LocationSummary(input_count, 0);
102 for (intptr_t i = 0; i < input_count; i++) {
103 summary->set_in(i, Location::RequiresRegister());
104 }
105 summary->set_out(out);
106 return summary;
107 }
108
100 } // namespace dart 109 } // namespace dart
101 110
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