| 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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 deopt_id, token_pos, locs); | 1187 deopt_id, token_pos, locs); |
| 1188 return; | 1188 return; |
| 1189 } | 1189 } |
| 1190 if (FLAG_always_megamorphic_calls) { | 1190 if (FLAG_always_megamorphic_calls) { |
| 1191 EmitMegamorphicInstanceCall(ic_data, argument_count, | 1191 EmitMegamorphicInstanceCall(ic_data, argument_count, |
| 1192 deopt_id, token_pos, locs, | 1192 deopt_id, token_pos, locs, |
| 1193 CatchClauseNode::kInvalidTryIndex); | 1193 CatchClauseNode::kInvalidTryIndex); |
| 1194 return; | 1194 return; |
| 1195 } | 1195 } |
| 1196 ASSERT(!ic_data.IsNull()); | 1196 ASSERT(!ic_data.IsNull()); |
| 1197 if (is_optimizing() && (ic_data.NumberOfUsedChecks() == 0)) { | 1197 if (is_optimizing() && (ic_data_in.NumberOfUsedChecks() == 0)) { |
| 1198 // Emit IC call that will count and thus may need reoptimization at | 1198 // Emit IC call that will count and thus may need reoptimization at |
| 1199 // function entry. | 1199 // function entry. |
| 1200 ASSERT(may_reoptimize() || flow_graph().IsCompiledForOsr()); | 1200 ASSERT(may_reoptimize() || flow_graph().IsCompiledForOsr()); |
| 1201 switch (ic_data.NumArgsTested()) { | 1201 switch (ic_data.NumArgsTested()) { |
| 1202 case 1: | 1202 case 1: |
| 1203 EmitOptimizedInstanceCall( | 1203 EmitOptimizedInstanceCall( |
| 1204 *StubCode::OneArgOptimizedCheckInlineCache_entry(), ic_data, | 1204 *StubCode::OneArgOptimizedCheckInlineCache_entry(), ic_data, |
| 1205 argument_count, deopt_id, token_pos, locs); | 1205 argument_count, deopt_id, token_pos, locs); |
| 1206 return; | 1206 return; |
| 1207 case 2: | 1207 case 2: |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1990 | 1990 |
| 1991 | 1991 |
| 1992 void FlowGraphCompiler::FrameStateClear() { | 1992 void FlowGraphCompiler::FrameStateClear() { |
| 1993 ASSERT(!is_optimizing()); | 1993 ASSERT(!is_optimizing()); |
| 1994 frame_state_.TruncateTo(0); | 1994 frame_state_.TruncateTo(0); |
| 1995 } | 1995 } |
| 1996 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1996 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
| 1997 | 1997 |
| 1998 | 1998 |
| 1999 } // namespace dart | 1999 } // namespace dart |
| OLD | NEW |