| OLD | NEW |
| 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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/cha.h" | 9 #include "vm/cha.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 const StoreInstanceFieldNode& store_node = | 637 const StoreInstanceFieldNode& store_node = |
| 638 *sequence_node.NodeAt(0)->AsStoreInstanceFieldNode(); | 638 *sequence_node.NodeAt(0)->AsStoreInstanceFieldNode(); |
| 639 if (store_node.field().guarded_cid() == kDynamicCid) { | 639 if (store_node.field().guarded_cid() == kDynamicCid) { |
| 640 GenerateInlinedSetter(store_node.field().Offset()); | 640 GenerateInlinedSetter(store_node.field().Offset()); |
| 641 return; | 641 return; |
| 642 } | 642 } |
| 643 } | 643 } |
| 644 } | 644 } |
| 645 // Even if an intrinsified version of the function was successfully | 645 // Even if an intrinsified version of the function was successfully |
| 646 // generated, it may fall through to the non-intrinsified method body. | 646 // generated, it may fall through to the non-intrinsified method body. |
| 647 return Intrinsifier::Intrinsify(parsed_function().function(), assembler()); | 647 Intrinsifier::Intrinsify(parsed_function().function(), assembler()); |
| 648 } | 648 } |
| 649 | 649 |
| 650 | 650 |
| 651 void FlowGraphCompiler::GenerateInstanceCall( | 651 void FlowGraphCompiler::GenerateInstanceCall( |
| 652 intptr_t deopt_id, | 652 intptr_t deopt_id, |
| 653 intptr_t token_pos, | 653 intptr_t token_pos, |
| 654 intptr_t argument_count, | 654 intptr_t argument_count, |
| 655 const Array& argument_names, | 655 const Array& argument_names, |
| 656 LocationSummary* locs, | 656 LocationSummary* locs, |
| 657 const ICData& ic_data) { | 657 const ICData& ic_data) { |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 | 1204 |
| 1205 for (int i = 0; i < len; i++) { | 1205 for (int i = 0; i < len; i++) { |
| 1206 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), | 1206 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), |
| 1207 &Function::ZoneHandle(ic_data.GetTargetAt(i)), | 1207 &Function::ZoneHandle(ic_data.GetTargetAt(i)), |
| 1208 ic_data.GetCountAt(i))); | 1208 ic_data.GetCountAt(i))); |
| 1209 } | 1209 } |
| 1210 sorted->Sort(HighestCountFirst); | 1210 sorted->Sort(HighestCountFirst); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 } // namespace dart | 1213 } // namespace dart |
| OLD | NEW |