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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2587 bool opt) const { | 2587 bool opt) const { |
2588 UNREACHABLE(); | 2588 UNREACHABLE(); |
2589 return NULL; | 2589 return NULL; |
2590 } | 2590 } |
2591 | 2591 |
2592 | 2592 |
2593 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2593 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
2594 __ Bind(compiler->GetJumpLabel(this)); | 2594 __ Bind(compiler->GetJumpLabel(this)); |
2595 compiler->AddExceptionHandler(catch_try_index(), try_index(), | 2595 compiler->AddExceptionHandler(catch_try_index(), try_index(), |
2596 compiler->assembler()->CodeSize(), | 2596 compiler->assembler()->CodeSize(), |
| 2597 handler_token_pos(), is_generated(), |
2597 catch_handler_types_, needs_stacktrace()); | 2598 catch_handler_types_, needs_stacktrace()); |
2598 // On lazy deoptimization we patch the optimized code here to enter the | 2599 // On lazy deoptimization we patch the optimized code here to enter the |
2599 // deoptimization stub. | 2600 // deoptimization stub. |
2600 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId()); | 2601 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId()); |
2601 if (compiler->is_optimizing()) { | 2602 if (compiler->is_optimizing()) { |
2602 compiler->AddDeoptIndexAtCall(deopt_id); | 2603 compiler->AddDeoptIndexAtCall(deopt_id); |
2603 } else { | 2604 } else { |
2604 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id, | 2605 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id, |
2605 TokenPosition::kNoSource); | 2606 TokenPosition::kNoSource); |
2606 } | 2607 } |
(...skipping 3410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6017 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | 6018 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), |
6018 kGrowRegExpStackRuntimeEntry, 1, locs()); | 6019 kGrowRegExpStackRuntimeEntry, 1, locs()); |
6019 __ Drop(1); | 6020 __ Drop(1); |
6020 __ Pop(result); | 6021 __ Pop(result); |
6021 } | 6022 } |
6022 | 6023 |
6023 | 6024 |
6024 } // namespace dart | 6025 } // namespace dart |
6025 | 6026 |
6026 #endif // defined TARGET_ARCH_ARM64 | 6027 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |