| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 | 1263 |
| 1264 __ Bind(&done); | 1264 __ Bind(&done); |
| 1265 RecordSafepoint(locs, slow_path_argument_count); | 1265 RecordSafepoint(locs, slow_path_argument_count); |
| 1266 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); | 1266 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
| 1267 if (FLAG_precompiled_mode) { | 1267 if (FLAG_precompiled_mode) { |
| 1268 // Megamorphic calls may occur in slow path stubs. | 1268 // Megamorphic calls may occur in slow path stubs. |
| 1269 // If valid use try_index argument. | 1269 // If valid use try_index argument. |
| 1270 if (try_index == CatchClauseNode::kInvalidTryIndex) { | 1270 if (try_index == CatchClauseNode::kInvalidTryIndex) { |
| 1271 try_index = CurrentTryIndex(); | 1271 try_index = CurrentTryIndex(); |
| 1272 } | 1272 } |
| 1273 pc_descriptors_list()->AddDescriptor( | 1273 AddDescriptor(RawPcDescriptors::kOther, assembler()->CodeSize(), |
| 1274 RawPcDescriptors::kOther, assembler()->CodeSize(), Thread::kNoDeoptId, | 1274 Thread::kNoDeoptId, token_pos, try_index); |
| 1275 token_pos, try_index); | |
| 1276 } else if (is_optimizing()) { | 1275 } else if (is_optimizing()) { |
| 1277 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, | 1276 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, |
| 1278 token_pos); | 1277 token_pos); |
| 1279 AddDeoptIndexAtCall(deopt_id_after); | 1278 AddDeoptIndexAtCall(deopt_id_after); |
| 1280 } else { | 1279 } else { |
| 1281 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, | 1280 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, |
| 1282 token_pos); | 1281 token_pos); |
| 1283 // Add deoptimization continuation point after the call and before the | 1282 // Add deoptimization continuation point after the call and before the |
| 1284 // arguments are removed. | 1283 // arguments are removed. |
| 1285 AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos); | 1284 AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos); |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1849 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1851 __ PopDouble(reg); | 1850 __ PopDouble(reg); |
| 1852 } | 1851 } |
| 1853 | 1852 |
| 1854 | 1853 |
| 1855 #undef __ | 1854 #undef __ |
| 1856 | 1855 |
| 1857 } // namespace dart | 1856 } // namespace dart |
| 1858 | 1857 |
| 1859 #endif // defined TARGET_ARCH_ARM64 | 1858 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |