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

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

Issue 23691024: If a rethrow is encountered in the catch block, then its handler must be marked that it needs stack… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 3830 matching lines...) Expand 10 before | Expand all | Expand 10 after
3841 __ break_(0); 3841 __ break_(0);
3842 } 3842 }
3843 3843
3844 3844
3845 LocationSummary* ReThrowInstr::MakeLocationSummary() const { 3845 LocationSummary* ReThrowInstr::MakeLocationSummary() const {
3846 return new LocationSummary(0, 0, LocationSummary::kCall); 3846 return new LocationSummary(0, 0, LocationSummary::kCall);
3847 } 3847 }
3848 3848
3849 3849
3850 void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 3850 void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
3851 compiler->SetNeedsStacktrace(catch_try_index());
3851 compiler->GenerateCallRuntime(token_pos(), 3852 compiler->GenerateCallRuntime(token_pos(),
3852 deopt_id(), 3853 deopt_id(),
3853 kReThrowRuntimeEntry, 3854 kReThrowRuntimeEntry,
3854 2, 3855 2,
3855 locs()); 3856 locs());
3856 __ break_(0); 3857 __ break_(0);
3857 } 3858 }
3858 3859
3859 3860
3860 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 3861 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
4136 compiler->GenerateCall(token_pos(), 4137 compiler->GenerateCall(token_pos(),
4137 &label, 4138 &label,
4138 PcDescriptors::kOther, 4139 PcDescriptors::kOther,
4139 locs()); 4140 locs());
4140 __ Drop(2); // Discard type arguments and receiver. 4141 __ Drop(2); // Discard type arguments and receiver.
4141 } 4142 }
4142 4143
4143 } // namespace dart 4144 } // namespace dart
4144 4145
4145 #endif // defined TARGET_ARCH_MIPS 4146 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698