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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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_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/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 4780 matching lines...) Expand 10 before | Expand all | Expand 10 after
4791 __ int3(); 4791 __ int3();
4792 } 4792 }
4793 4793
4794 4794
4795 LocationSummary* ReThrowInstr::MakeLocationSummary() const { 4795 LocationSummary* ReThrowInstr::MakeLocationSummary() const {
4796 return new LocationSummary(0, 0, LocationSummary::kCall); 4796 return new LocationSummary(0, 0, LocationSummary::kCall);
4797 } 4797 }
4798 4798
4799 4799
4800 void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4800 void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
4801 compiler->SetNeedsStacktrace(catch_try_index());
4801 compiler->GenerateCallRuntime(token_pos(), 4802 compiler->GenerateCallRuntime(token_pos(),
4802 deopt_id(), 4803 deopt_id(),
4803 kReThrowRuntimeEntry, 4804 kReThrowRuntimeEntry,
4804 2, 4805 2,
4805 locs()); 4806 locs());
4806 __ int3(); 4807 __ int3();
4807 } 4808 }
4808 4809
4809 4810
4810 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4811 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
5264 PcDescriptors::kOther, 5265 PcDescriptors::kOther,
5265 locs()); 5266 locs());
5266 __ Drop(2); // Discard type arguments and receiver. 5267 __ Drop(2); // Discard type arguments and receiver.
5267 } 5268 }
5268 5269
5269 } // namespace dart 5270 } // namespace dart
5270 5271
5271 #undef __ 5272 #undef __
5272 5273
5273 #endif // defined TARGET_ARCH_IA32 5274 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698