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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 // Even if an intrinsified version of the function was successfully | 826 // Even if an intrinsified version of the function was successfully |
827 // generated, it may fall through to the non-intrinsified method body. | 827 // generated, it may fall through to the non-intrinsified method body. |
828 Intrinsifier::Intrinsify(parsed_function().function(), assembler()); | 828 Intrinsifier::Intrinsify(parsed_function().function(), assembler()); |
829 } | 829 } |
830 | 830 |
831 | 831 |
832 void FlowGraphCompiler::GenerateInstanceCall( | 832 void FlowGraphCompiler::GenerateInstanceCall( |
833 intptr_t deopt_id, | 833 intptr_t deopt_id, |
834 intptr_t token_pos, | 834 intptr_t token_pos, |
835 intptr_t argument_count, | 835 intptr_t argument_count, |
836 const Array& argument_names, | |
837 LocationSummary* locs, | 836 LocationSummary* locs, |
838 const ICData& ic_data) { | 837 const ICData& ic_data) { |
839 ASSERT(!ic_data.IsNull()); | 838 ASSERT(!ic_data.IsNull()); |
840 ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfChecks() == 0)); | 839 ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfChecks() == 0)); |
841 uword label_address = 0; | 840 uword label_address = 0; |
842 StubCode* stub_code = isolate()->stub_code(); | 841 StubCode* stub_code = isolate()->stub_code(); |
843 if (is_optimizing() && (ic_data.NumberOfChecks() == 0)) { | 842 if (is_optimizing() && (ic_data.NumberOfChecks() == 0)) { |
844 if (ic_data.IsClosureCall()) { | 843 if (ic_data.IsClosureCall()) { |
845 // This IC call may be closure call only. | 844 // This IC call may be closure call only. |
846 label_address = stub_code->ClosureCallInlineCacheEntryPoint(); | 845 label_address = stub_code->ClosureCallInlineCacheEntryPoint(); |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1397 } | 1396 } |
1398 const ICData& ic_data = ICData::ZoneHandle(isolate(), ICData::New( | 1397 const ICData& ic_data = ICData::ZoneHandle(isolate(), ICData::New( |
1399 parsed_function().function(), String::Handle(isolate(), target.name()), | 1398 parsed_function().function(), String::Handle(isolate(), target.name()), |
1400 arguments_descriptor, deopt_id, num_args_tested)); | 1399 arguments_descriptor, deopt_id, num_args_tested)); |
1401 ic_data.AddTarget(target); | 1400 ic_data.AddTarget(target); |
1402 (*deopt_id_to_ic_data_)[deopt_id] = &ic_data; | 1401 (*deopt_id_to_ic_data_)[deopt_id] = &ic_data; |
1403 return &ic_data; | 1402 return &ic_data; |
1404 } | 1403 } |
1405 | 1404 |
1406 } // namespace dart | 1405 } // namespace dart |
OLD | NEW |