Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: runtime/vm/intermediate_language_arm64.cc

Issue 2692803006: Track the 'awaiter return' call stack use it to detect uncaught exceptions in async functions (Closed)
Patch Set: rmacnak review Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698