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

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

Issue 2388093003: VM: Make optimized try-catch work in DBC. (Closed)
Patch Set: Created 4 years, 2 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_DBC. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC.
6 #if defined(TARGET_ARCH_DBC) 6 #if defined(TARGET_ARCH_DBC)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 } 1112 }
1113 1113
1114 1114
1115 EMIT_NATIVE_CODE(CatchBlockEntry, 0) { 1115 EMIT_NATIVE_CODE(CatchBlockEntry, 0) {
1116 __ Bind(compiler->GetJumpLabel(this)); 1116 __ Bind(compiler->GetJumpLabel(this));
1117 compiler->AddExceptionHandler(catch_try_index(), 1117 compiler->AddExceptionHandler(catch_try_index(),
1118 try_index(), 1118 try_index(),
1119 compiler->assembler()->CodeSize(), 1119 compiler->assembler()->CodeSize(),
1120 catch_handler_types_, 1120 catch_handler_types_,
1121 needs_stacktrace()); 1121 needs_stacktrace());
1122
1123 if (HasParallelMove()) {
1124 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move());
1125 }
1126
1122 __ MoveSpecial(-exception_var().index()-1, 1127 __ MoveSpecial(-exception_var().index()-1,
1123 Simulator::kExceptionSpecialIndex); 1128 Simulator::kExceptionSpecialIndex);
1124 __ MoveSpecial(-stacktrace_var().index()-1, 1129 __ MoveSpecial(-stacktrace_var().index()-1,
1125 Simulator::kStacktraceSpecialIndex); 1130 Simulator::kStacktraceSpecialIndex);
1126 __ SetFrame(compiler->StackSize()); 1131 __ SetFrame(compiler->StackSize());
1127 } 1132 }
1128 1133
1129 1134
1130 EMIT_NATIVE_CODE(Throw, 0, Location::NoLocation(), LocationSummary::kCall) { 1135 EMIT_NATIVE_CODE(Throw, 0, Location::NoLocation(), LocationSummary::kCall) {
1131 __ Throw(0); 1136 __ Throw(0);
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 __ IfULe(length, index); 1888 __ IfULe(length, index);
1884 compiler->EmitDeopt(deopt_id(), 1889 compiler->EmitDeopt(deopt_id(),
1885 ICData::kDeoptCheckArrayBound, 1890 ICData::kDeoptCheckArrayBound,
1886 (generalized_ ? ICData::kGeneralized : 0) | 1891 (generalized_ ? ICData::kGeneralized : 0) |
1887 (licm_hoisted_ ? ICData::kHoisted : 0)); 1892 (licm_hoisted_ ? ICData::kHoisted : 0));
1888 } 1893 }
1889 1894
1890 } // namespace dart 1895 } // namespace dart
1891 1896
1892 #endif // defined TARGET_ARCH_DBC 1897 #endif // defined TARGET_ARCH_DBC
OLDNEW
« runtime/vm/flow_graph_compiler.cc ('K') | « runtime/vm/flow_graph_compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698