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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 2528 matching lines...) Expand 10 before | Expand all | Expand 10 after
2539 bool opt) const { 2539 bool opt) const {
2540 UNREACHABLE(); 2540 UNREACHABLE();
2541 return NULL; 2541 return NULL;
2542 } 2542 }
2543 2543
2544 2544
2545 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2545 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2546 __ Bind(compiler->GetJumpLabel(this)); 2546 __ Bind(compiler->GetJumpLabel(this));
2547 compiler->AddExceptionHandler(catch_try_index(), try_index(), 2547 compiler->AddExceptionHandler(catch_try_index(), try_index(),
2548 compiler->assembler()->CodeSize(), 2548 compiler->assembler()->CodeSize(),
2549 handler_token_pos(), is_generated(),
2549 catch_handler_types_, needs_stacktrace()); 2550 catch_handler_types_, needs_stacktrace());
2550 // On lazy deoptimization we patch the optimized code here to enter the 2551 // On lazy deoptimization we patch the optimized code here to enter the
2551 // deoptimization stub. 2552 // deoptimization stub.
2552 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId()); 2553 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId());
2553 if (compiler->is_optimizing()) { 2554 if (compiler->is_optimizing()) {
2554 compiler->AddDeoptIndexAtCall(deopt_id); 2555 compiler->AddDeoptIndexAtCall(deopt_id);
2555 } else { 2556 } else {
2556 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id, 2557 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id,
2557 TokenPosition::kNoSource); 2558 TokenPosition::kNoSource);
2558 } 2559 }
(...skipping 4189 matching lines...) Expand 10 before | Expand all | Expand 10 after
6748 __ Drop(1); 6749 __ Drop(1);
6749 __ popq(result); 6750 __ popq(result);
6750 } 6751 }
6751 6752
6752 6753
6753 } // namespace dart 6754 } // namespace dart
6754 6755
6755 #undef __ 6756 #undef __
6756 6757
6757 #endif // defined TARGET_ARCH_X64 6758 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698