| 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/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/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/constant_propagator.h" | 10 #include "vm/constant_propagator.h" |
| (...skipping 3147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3158 compiler->GenerateStaticCall(deopt_id(), instance_call()->token_pos(), | 3158 compiler->GenerateStaticCall(deopt_id(), instance_call()->token_pos(), |
| 3159 target, instance_call()->ArgumentCount(), | 3159 target, instance_call()->ArgumentCount(), |
| 3160 instance_call()->argument_names(), locs(), | 3160 instance_call()->argument_names(), locs(), |
| 3161 ICData::Handle()); | 3161 ICData::Handle()); |
| 3162 return; | 3162 return; |
| 3163 } | 3163 } |
| 3164 | 3164 |
| 3165 compiler->EmitPolymorphicInstanceCall( | 3165 compiler->EmitPolymorphicInstanceCall( |
| 3166 ic_data(), instance_call()->ArgumentCount(), | 3166 ic_data(), instance_call()->ArgumentCount(), |
| 3167 instance_call()->argument_names(), deopt_id(), | 3167 instance_call()->argument_names(), deopt_id(), |
| 3168 instance_call()->token_pos(), locs(), complete()); | 3168 instance_call()->token_pos(), locs(), complete(), total_call_count()); |
| 3169 } | 3169 } |
| 3170 #endif | 3170 #endif |
| 3171 | 3171 |
| 3172 | 3172 |
| 3173 RawType* PolymorphicInstanceCallInstr::ComputeRuntimeType( | 3173 RawType* PolymorphicInstanceCallInstr::ComputeRuntimeType( |
| 3174 const ICData& ic_data) { | 3174 const ICData& ic_data) { |
| 3175 bool is_string = true; | 3175 bool is_string = true; |
| 3176 bool is_integer = true; | 3176 bool is_integer = true; |
| 3177 bool is_double = true; | 3177 bool is_double = true; |
| 3178 | 3178 |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3964 set_native_c_function(native_function); | 3964 set_native_c_function(native_function); |
| 3965 function().SetIsNativeAutoSetupScope(auto_setup_scope); | 3965 function().SetIsNativeAutoSetupScope(auto_setup_scope); |
| 3966 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 3966 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
| 3967 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 3967 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
| 3968 set_is_bootstrap_native(is_bootstrap_native); | 3968 set_is_bootstrap_native(is_bootstrap_native); |
| 3969 } | 3969 } |
| 3970 | 3970 |
| 3971 #undef __ | 3971 #undef __ |
| 3972 | 3972 |
| 3973 } // namespace dart | 3973 } // namespace dart |
| OLD | NEW |