| 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_builder.h" | 9 #include "vm/flow_graph_builder.h" |
| 10 #include "vm/flow_graph_compiler.h" | 10 #include "vm/flow_graph_compiler.h" |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 void AssertAssignableComp::EmitNativeCode(FlowGraphCompiler* compiler) { | 1201 void AssertAssignableComp::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1202 compiler->GenerateAssertAssignable(cid(), | 1202 compiler->GenerateAssertAssignable(cid(), |
| 1203 token_pos(), | 1203 token_pos(), |
| 1204 try_index(), | 1204 try_index(), |
| 1205 dst_type(), | 1205 dst_type(), |
| 1206 dst_name()); | 1206 dst_name()); |
| 1207 ASSERT(locs()->in(0).reg() == locs()->out().reg()); | 1207 ASSERT(locs()->in(0).reg() == locs()->out().reg()); |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 | 1210 |
| 1211 LocationSummary* AssertBooleanComp::MakeLocationSummary() const { | |
| 1212 return LocationSummary::Make(1, | |
| 1213 Location::SameAsFirstInput(), | |
| 1214 LocationSummary::kCall); | |
| 1215 } | |
| 1216 | |
| 1217 | |
| 1218 LocationSummary* StoreStaticFieldComp::MakeLocationSummary() const { | 1211 LocationSummary* StoreStaticFieldComp::MakeLocationSummary() const { |
| 1219 LocationSummary* locs = new LocationSummary(1, 1); | 1212 LocationSummary* locs = new LocationSummary(1, 1); |
| 1220 locs->set_in(0, Location::RequiresRegister()); | 1213 locs->set_in(0, Location::RequiresRegister()); |
| 1221 locs->set_temp(0, Location::RequiresRegister()); | 1214 locs->set_temp(0, Location::RequiresRegister()); |
| 1222 locs->set_out(Location::SameAsFirstInput()); | 1215 locs->set_out(Location::SameAsFirstInput()); |
| 1223 return locs; | 1216 return locs; |
| 1224 } | 1217 } |
| 1225 | 1218 |
| 1226 | 1219 |
| 1227 void StoreStaticFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) { | 1220 void StoreStaticFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); | 1306 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); |
| 1314 compiler->GenerateCall(token_pos(), try_index(), &label, | 1307 compiler->GenerateCall(token_pos(), try_index(), &label, |
| 1315 PcDescriptors::kOther); | 1308 PcDescriptors::kOther); |
| 1316 __ Drop(2); // Discard type arguments and receiver. | 1309 __ Drop(2); // Discard type arguments and receiver. |
| 1317 } | 1310 } |
| 1318 | 1311 |
| 1319 | 1312 |
| 1320 #undef __ | 1313 #undef __ |
| 1321 | 1314 |
| 1322 } // namespace dart | 1315 } // namespace dart |
| OLD | NEW |