Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 1867913004: Specialize instance calls when the call receiver is the method receiver and the method class has a … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3131 locs(), 3131 locs(),
3132 ICData::Handle()); 3132 ICData::Handle());
3133 return; 3133 return;
3134 } 3134 }
3135 3135
3136 compiler->EmitPolymorphicInstanceCall(ic_data(), 3136 compiler->EmitPolymorphicInstanceCall(ic_data(),
3137 instance_call()->ArgumentCount(), 3137 instance_call()->ArgumentCount(),
3138 instance_call()->argument_names(), 3138 instance_call()->argument_names(),
3139 deopt_id(), 3139 deopt_id(),
3140 instance_call()->token_pos(), 3140 instance_call()->token_pos(),
3141 locs()); 3141 locs(),
3142 complete());
3142 } 3143 }
3143 3144
3144 3145
3145 LocationSummary* StaticCallInstr::MakeLocationSummary(Zone* zone, 3146 LocationSummary* StaticCallInstr::MakeLocationSummary(Zone* zone,
3146 bool optimizing) const { 3147 bool optimizing) const {
3147 return MakeCallSummary(zone); 3148 return MakeCallSummary(zone);
3148 } 3149 }
3149 3150
3150 3151
3151 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 3152 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
3751 set_native_c_function(native_function); 3752 set_native_c_function(native_function);
3752 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3753 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3753 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3754 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3754 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3755 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3755 set_is_bootstrap_native(is_bootstrap_native); 3756 set_is_bootstrap_native(is_bootstrap_native);
3756 } 3757 }
3757 3758
3758 #undef __ 3759 #undef __
3759 3760
3760 } // namespace dart 3761 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698