| OLD | NEW |
| 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 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 LocationSummary* LocationSummary::Make(intptr_t input_count, | 12 LocationSummary* LocationSummary::Make(intptr_t input_count, |
| 13 Location out, | 13 Location out, |
| 14 ContainsCall contains_call, | 14 ContainsCall contains_call) { |
| 15 ContainsBranch contains_branch) { | |
| 16 LocationSummary* summary = new LocationSummary(input_count, | 15 LocationSummary* summary = new LocationSummary(input_count, |
| 17 0, | 16 0, |
| 18 contains_call, | 17 contains_call); |
| 19 contains_branch); | |
| 20 for (intptr_t i = 0; i < input_count; i++) { | 18 for (intptr_t i = 0; i < input_count; i++) { |
| 21 summary->set_in(i, Location::RequiresRegister()); | 19 summary->set_in(i, Location::RequiresRegister()); |
| 22 } | 20 } |
| 23 summary->set_out(out); | 21 summary->set_out(out); |
| 24 return summary; | 22 return summary; |
| 25 } | 23 } |
| 26 | 24 |
| 27 } // namespace dart | 25 } // namespace dart |
| 28 | 26 |
| OLD | NEW |