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

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

Issue 2140683002: Remove remaining stub code for IC range profiling. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/flow_graph_compiler.cc ('k') | runtime/vm/stub_code.h » ('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 3159 matching lines...) Expand 10 before | Expand all | Expand 10 after
3170 const StubEntry* stub_entry = TwoArgsSmiOpInlineCacheEntry(token_kind()); 3170 const StubEntry* stub_entry = TwoArgsSmiOpInlineCacheEntry(token_kind());
3171 if (stub_entry != NULL) { 3171 if (stub_entry != NULL) {
3172 // We have a dedicated inline cache stub for this operation, add an 3172 // We have a dedicated inline cache stub for this operation, add an
3173 // an initial Smi/Smi check with count 0. 3173 // an initial Smi/Smi check with count 0.
3174 is_smi_two_args_op = call_ic_data->AddSmiSmiCheckForFastSmiStubs(); 3174 is_smi_two_args_op = call_ic_data->AddSmiSmiCheckForFastSmiStubs();
3175 } 3175 }
3176 if (is_smi_two_args_op) { 3176 if (is_smi_two_args_op) {
3177 ASSERT(ArgumentCount() == 2); 3177 ASSERT(ArgumentCount() == 2);
3178 compiler->EmitInstanceCall(*stub_entry, *call_ic_data, ArgumentCount(), 3178 compiler->EmitInstanceCall(*stub_entry, *call_ic_data, ArgumentCount(),
3179 deopt_id(), token_pos(), locs()); 3179 deopt_id(), token_pos(), locs());
3180 } else if (FLAG_ic_range_profiling &&
3181 (Token::IsBinaryArithmeticOperator(token_kind()) ||
3182 Token::IsUnaryArithmeticOperator(token_kind()))) {
3183 ASSERT(Token::IsUnaryArithmeticOperator(token_kind()) ==
3184 (ArgumentCount() == 1));
3185 ASSERT(Token::IsBinaryArithmeticOperator(token_kind()) ==
3186 (ArgumentCount() == 2));
3187 const StubEntry* stub_entry = (ArgumentCount() == 1)
3188 ? StubCode::UnaryRangeCollectingInlineCache_entry()
3189 : StubCode::BinaryRangeCollectingInlineCache_entry();
3190 compiler->EmitInstanceCall(*stub_entry, *call_ic_data, ArgumentCount(),
3191 deopt_id(), token_pos(), locs());
3192 } else { 3180 } else {
3193 compiler->GenerateInstanceCall(deopt_id(), 3181 compiler->GenerateInstanceCall(deopt_id(),
3194 token_pos(), 3182 token_pos(),
3195 ArgumentCount(), 3183 ArgumentCount(),
3196 locs(), 3184 locs(),
3197 *call_ic_data); 3185 *call_ic_data);
3198 } 3186 }
3199 } 3187 }
3200 #else 3188 #else
3201 ICData* ic_data = &ICData::ZoneHandle(call_ic_data->Original()); 3189 ICData* ic_data = &ICData::ZoneHandle(call_ic_data->Original());
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3931 set_native_c_function(native_function); 3919 set_native_c_function(native_function);
3932 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3920 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3933 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3921 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3934 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3922 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3935 set_is_bootstrap_native(is_bootstrap_native); 3923 set_is_bootstrap_native(is_bootstrap_native);
3936 } 3924 }
3937 3925
3938 #undef __ 3926 #undef __
3939 3927
3940 } // namespace dart 3928 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698