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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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) 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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 bool opt) const { 2508 bool opt) const {
2509 UNREACHABLE(); 2509 UNREACHABLE();
2510 return NULL; 2510 return NULL;
2511 } 2511 }
2512 2512
2513 2513
2514 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2514 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2515 __ Bind(compiler->GetJumpLabel(this)); 2515 __ Bind(compiler->GetJumpLabel(this));
2516 compiler->AddExceptionHandler(catch_try_index(), try_index(), 2516 compiler->AddExceptionHandler(catch_try_index(), try_index(),
2517 compiler->assembler()->CodeSize(), 2517 compiler->assembler()->CodeSize(),
2518 handler_token_pos(), is_generated(),
2518 catch_handler_types_, needs_stacktrace()); 2519 catch_handler_types_, needs_stacktrace());
2519 // On lazy deoptimization we patch the optimized code here to enter the 2520 // On lazy deoptimization we patch the optimized code here to enter the
2520 // deoptimization stub. 2521 // deoptimization stub.
2521 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId()); 2522 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId());
2522 if (compiler->is_optimizing()) { 2523 if (compiler->is_optimizing()) {
2523 compiler->AddDeoptIndexAtCall(deopt_id); 2524 compiler->AddDeoptIndexAtCall(deopt_id);
2524 } else { 2525 } else {
2525 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id, 2526 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id,
2526 TokenPosition::kNoSource); 2527 TokenPosition::kNoSource);
2527 } 2528 }
(...skipping 4342 matching lines...) Expand 10 before | Expand all | Expand 10 after
6870 __ Drop(1); 6871 __ Drop(1);
6871 __ popl(result); 6872 __ popl(result);
6872 } 6873 }
6873 6874
6874 6875
6875 } // namespace dart 6876 } // namespace dart
6876 6877
6877 #undef __ 6878 #undef __
6878 6879
6879 #endif // defined TARGET_ARCH_IA32 6880 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698