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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |