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

Side by Side Diff: runtime/vm/intermediate_language_mips.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 2713 matching lines...) Expand 10 before | Expand all | Expand 10 after
2724 bool opt) const { 2724 bool opt) const {
2725 UNREACHABLE(); 2725 UNREACHABLE();
2726 return NULL; 2726 return NULL;
2727 } 2727 }
2728 2728
2729 2729
2730 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2730 void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2731 __ Bind(compiler->GetJumpLabel(this)); 2731 __ Bind(compiler->GetJumpLabel(this));
2732 compiler->AddExceptionHandler(catch_try_index(), try_index(), 2732 compiler->AddExceptionHandler(catch_try_index(), try_index(),
2733 compiler->assembler()->CodeSize(), 2733 compiler->assembler()->CodeSize(),
2734 handler_token_pos(), is_generated(),
2734 catch_handler_types_, needs_stacktrace()); 2735 catch_handler_types_, needs_stacktrace());
2735 // On lazy deoptimization we patch the optimized code here to enter the 2736 // On lazy deoptimization we patch the optimized code here to enter the
2736 // deoptimization stub. 2737 // deoptimization stub.
2737 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId()); 2738 const intptr_t deopt_id = Thread::ToDeoptAfter(GetDeoptId());
2738 if (compiler->is_optimizing()) { 2739 if (compiler->is_optimizing()) {
2739 compiler->AddDeoptIndexAtCall(deopt_id); 2740 compiler->AddDeoptIndexAtCall(deopt_id);
2740 } else { 2741 } else {
2741 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id, 2742 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id,
2742 TokenPosition::kNoSource); 2743 TokenPosition::kNoSource);
2743 } 2744 }
(...skipping 3265 matching lines...) Expand 10 before | Expand all | Expand 10 after
6009 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6010 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6010 kGrowRegExpStackRuntimeEntry, 1, locs()); 6011 kGrowRegExpStackRuntimeEntry, 1, locs());
6011 __ lw(result, Address(SP, 1 * kWordSize)); 6012 __ lw(result, Address(SP, 1 * kWordSize));
6012 __ addiu(SP, SP, Immediate(2 * kWordSize)); 6013 __ addiu(SP, SP, Immediate(2 * kWordSize));
6013 } 6014 }
6014 6015
6015 6016
6016 } // namespace dart 6017 } // namespace dart
6017 6018
6018 #endif // defined TARGET_ARCH_MIPS 6019 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698