| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 | 1280 |
| 1281 __ Bind(&done); | 1281 __ Bind(&done); |
| 1282 RecordSafepoint(locs, slow_path_argument_count); | 1282 RecordSafepoint(locs, slow_path_argument_count); |
| 1283 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); | 1283 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
| 1284 if (FLAG_precompiled_mode) { | 1284 if (FLAG_precompiled_mode) { |
| 1285 // Megamorphic calls may occur in slow path stubs. | 1285 // Megamorphic calls may occur in slow path stubs. |
| 1286 // If valid use try_index argument. | 1286 // If valid use try_index argument. |
| 1287 if (try_index == CatchClauseNode::kInvalidTryIndex) { | 1287 if (try_index == CatchClauseNode::kInvalidTryIndex) { |
| 1288 try_index = CurrentTryIndex(); | 1288 try_index = CurrentTryIndex(); |
| 1289 } | 1289 } |
| 1290 pc_descriptors_list()->AddDescriptor( | 1290 AddDescriptor(RawPcDescriptors::kOther, assembler()->CodeSize(), |
| 1291 RawPcDescriptors::kOther, assembler()->CodeSize(), Thread::kNoDeoptId, | 1291 Thread::kNoDeoptId, token_pos, try_index); |
| 1292 token_pos, try_index); | |
| 1293 } else if (is_optimizing()) { | 1292 } else if (is_optimizing()) { |
| 1294 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, | 1293 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, |
| 1295 token_pos); | 1294 token_pos); |
| 1296 AddDeoptIndexAtCall(deopt_id_after); | 1295 AddDeoptIndexAtCall(deopt_id_after); |
| 1297 } else { | 1296 } else { |
| 1298 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, | 1297 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, |
| 1299 token_pos); | 1298 token_pos); |
| 1300 // Add deoptimization continuation point after the call and before the | 1299 // Add deoptimization continuation point after the call and before the |
| 1301 // arguments are removed. | 1300 // arguments are removed. |
| 1302 AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos); | 1301 AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos); |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 __ AddImmediate(SP, kDoubleSize); | 1869 __ AddImmediate(SP, kDoubleSize); |
| 1871 } | 1870 } |
| 1872 | 1871 |
| 1873 | 1872 |
| 1874 #undef __ | 1873 #undef __ |
| 1875 | 1874 |
| 1876 | 1875 |
| 1877 } // namespace dart | 1876 } // namespace dart |
| 1878 | 1877 |
| 1879 #endif // defined TARGET_ARCH_MIPS | 1878 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |