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

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

Issue 1888783002: VM: Always start switchable calls with IC stub. (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 | « no previous file | runtime/vm/flow_graph_compiler_arm.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/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/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/cha.h" 10 #include "vm/cha.h"
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 return false; 1146 return false;
1147 } 1147 }
1148 1148
1149 1149
1150 void FlowGraphCompiler::GenerateInstanceCall( 1150 void FlowGraphCompiler::GenerateInstanceCall(
1151 intptr_t deopt_id, 1151 intptr_t deopt_id,
1152 TokenPosition token_pos, 1152 TokenPosition token_pos,
1153 intptr_t argument_count, 1153 intptr_t argument_count,
1154 LocationSummary* locs, 1154 LocationSummary* locs,
1155 const ICData& ic_data_in) { 1155 const ICData& ic_data_in) {
1156 const ICData& ic_data = ICData::ZoneHandle(ic_data_in.Original()); 1156 ICData& ic_data = ICData::ZoneHandle(ic_data_in.Original());
1157 if (FLAG_precompiled_mode) { 1157 if (FLAG_precompiled_mode) {
1158 ic_data = ic_data.AsUnaryClassChecks();
1158 EmitSwitchableInstanceCall(ic_data, argument_count, 1159 EmitSwitchableInstanceCall(ic_data, argument_count,
1159 deopt_id, token_pos, locs); 1160 deopt_id, token_pos, locs);
1160 return; 1161 return;
1161 } 1162 }
1162 if (FLAG_always_megamorphic_calls) { 1163 if (FLAG_always_megamorphic_calls) {
1163 EmitMegamorphicInstanceCall(ic_data, argument_count, 1164 EmitMegamorphicInstanceCall(ic_data, argument_count,
1164 deopt_id, token_pos, locs, 1165 deopt_id, token_pos, locs,
1165 CatchClauseNode::kInvalidTryIndex); 1166 CatchClauseNode::kInvalidTryIndex);
1166 return; 1167 return;
1167 } 1168 }
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 1951
1951 1952
1952 void FlowGraphCompiler::FrameStateClear() { 1953 void FlowGraphCompiler::FrameStateClear() {
1953 ASSERT(!is_optimizing()); 1954 ASSERT(!is_optimizing());
1954 frame_state_.TruncateTo(0); 1955 frame_state_.TruncateTo(0);
1955 } 1956 }
1956 #endif 1957 #endif
1957 1958
1958 1959
1959 } // namespace dart 1960 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698