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

Side by Side Diff: runtime/vm/intermediate_language_arm.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 4434 matching lines...) Expand 10 before | Expand all | Expand 10 after
4445 __ bkpt(0); 4445 __ bkpt(0);
4446 } 4446 }
4447 4447
4448 4448
4449 LocationSummary* ReThrowInstr::MakeLocationSummary() const { 4449 LocationSummary* ReThrowInstr::MakeLocationSummary() const {
4450 return new LocationSummary(0, 0, LocationSummary::kCall); 4450 return new LocationSummary(0, 0, LocationSummary::kCall);
4451 } 4451 }
4452 4452
4453 4453
4454 void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4454 void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
4455 compiler->SetNeedsStacktrace(catch_try_index());
4455 compiler->GenerateCallRuntime(token_pos(), 4456 compiler->GenerateCallRuntime(token_pos(),
4456 deopt_id(), 4457 deopt_id(),
4457 kReThrowRuntimeEntry, 4458 kReThrowRuntimeEntry,
4458 2, 4459 2,
4459 locs()); 4460 locs());
4460 __ bkpt(0); 4461 __ bkpt(0);
4461 } 4462 }
4462 4463
4463 4464
4464 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4465 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
4699 compiler->GenerateCall(token_pos(), 4700 compiler->GenerateCall(token_pos(),
4700 &label, 4701 &label,
4701 PcDescriptors::kOther, 4702 PcDescriptors::kOther,
4702 locs()); 4703 locs());
4703 __ Drop(2); // Discard type arguments and receiver. 4704 __ Drop(2); // Discard type arguments and receiver.
4704 } 4705 }
4705 4706
4706 } // namespace dart 4707 } // namespace dart
4707 4708
4708 #endif // defined TARGET_ARCH_ARM 4709 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698