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

Side by Side Diff: runtime/vm/intermediate_language_arm.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 1
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
7 #if defined(TARGET_ARCH_ARM) 7 #if defined(TARGET_ARCH_ARM)
8 8
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 10
(...skipping 2856 matching lines...) Expand 10 before | Expand all | Expand 10 after
2867 bool opt) const { 2867 bool opt) const {
2868 UNREACHABLE(); 2868 UNREACHABLE();
2869 return NULL; 2869 return NULL;
2870 } 2870 }
2871 2871
2872 2872
2873 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2873 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2874 __ Bind(compiler->GetJumpLabel(this)); 2874 __ Bind(compiler->GetJumpLabel(this));
2875 compiler->AddExceptionHandler(catch_try_index(), try_index(), 2875 compiler->AddExceptionHandler(catch_try_index(), try_index(),
2876 compiler->assembler()->CodeSize(), 2876 compiler->assembler()->CodeSize(),
2877 handler_token_pos(), is_generated(),
2877 catch_handler_types_, needs_stacktrace()); 2878 catch_handler_types_, needs_stacktrace());
2878 // On lazy deoptimization we patch the optimized code here to enter the 2879 // On lazy deoptimization we patch the optimized code here to enter the
2879 // deoptimization stub. 2880 // deoptimization stub.
2880 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId()); 2881 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId());
2881 if (compiler->is_optimizing()) { 2882 if (compiler->is_optimizing()) {
2882 compiler->AddDeoptIndexAtCall(deopt_id); 2883 compiler->AddDeoptIndexAtCall(deopt_id);
2883 } else { 2884 } else {
2884 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id, 2885 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id,
2885 TokenPosition::kNoSource); 2886 TokenPosition::kNoSource);
2886 } 2887 }
(...skipping 4337 matching lines...) Expand 10 before | Expand all | Expand 10 after
7224 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 7225 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
7225 kGrowRegExpStackRuntimeEntry, 1, locs()); 7226 kGrowRegExpStackRuntimeEntry, 1, locs());
7226 __ Drop(1); 7227 __ Drop(1);
7227 __ Pop(result); 7228 __ Pop(result);
7228 } 7229 }
7229 7230
7230 7231
7231 } // namespace dart 7232 } // namespace dart
7232 7233
7233 #endif // defined TARGET_ARCH_ARM 7234 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698