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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 deopt_id, token_pos, locs); | 1264 deopt_id, token_pos, locs); |
1265 } else { | 1265 } else { |
1266 ICData& call_ic_data = ICData::ZoneHandle(ic_data.raw()); | 1266 ICData& call_ic_data = ICData::ZoneHandle(ic_data.raw()); |
1267 if (call_ic_data.IsNull()) { | 1267 if (call_ic_data.IsNull()) { |
1268 const intptr_t kNumArgsChecked = 0; | 1268 const intptr_t kNumArgsChecked = 0; |
1269 call_ic_data = | 1269 call_ic_data = |
1270 GetOrAddStaticCallICData(deopt_id, function, arguments_descriptor, | 1270 GetOrAddStaticCallICData(deopt_id, function, arguments_descriptor, |
1271 kNumArgsChecked) | 1271 kNumArgsChecked) |
1272 ->raw(); | 1272 ->raw(); |
1273 } | 1273 } |
| 1274 AddCurrentDescriptor(RawPcDescriptors::kRewind, deopt_id, token_pos); |
1274 EmitUnoptimizedStaticCall(argument_count, deopt_id, token_pos, locs, | 1275 EmitUnoptimizedStaticCall(argument_count, deopt_id, token_pos, locs, |
1275 call_ic_data); | 1276 call_ic_data); |
1276 } | 1277 } |
1277 } | 1278 } |
1278 | 1279 |
1279 | 1280 |
1280 void FlowGraphCompiler::GenerateNumberTypeCheck(Register kClassIdReg, | 1281 void FlowGraphCompiler::GenerateNumberTypeCheck(Register kClassIdReg, |
1281 const AbstractType& type, | 1282 const AbstractType& type, |
1282 Label* is_instance_lbl, | 1283 Label* is_instance_lbl, |
1283 Label* is_not_instance_lbl) { | 1284 Label* is_not_instance_lbl) { |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 | 1981 |
1981 | 1982 |
1982 void FlowGraphCompiler::FrameStateClear() { | 1983 void FlowGraphCompiler::FrameStateClear() { |
1983 ASSERT(!is_optimizing()); | 1984 ASSERT(!is_optimizing()); |
1984 frame_state_.TruncateTo(0); | 1985 frame_state_.TruncateTo(0); |
1985 } | 1986 } |
1986 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1987 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
1987 | 1988 |
1988 | 1989 |
1989 } // namespace dart | 1990 } // namespace dart |
OLD | NEW |