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

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

Issue 2183993004: DBC: Add missing deopt info after stack overflow checks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 EMIT_NATIVE_CODE(Stop, 0) { 267 EMIT_NATIVE_CODE(Stop, 0) {
268 __ Stop(message()); 268 __ Stop(message());
269 } 269 }
270 270
271 271
272 EMIT_NATIVE_CODE(CheckStackOverflow, 272 EMIT_NATIVE_CODE(CheckStackOverflow,
273 0, Location::NoLocation(), 273 0, Location::NoLocation(),
274 LocationSummary::kCall) { 274 LocationSummary::kCall) {
275 __ CheckStack(); 275 __ CheckStack();
276 compiler->RecordSafepoint(locs()); 276 compiler->AddCurrentDescriptor(RawPcDescriptors::kOther,
277 compiler->AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall, 277 deopt_id(),
278 Thread::kNoDeoptId,
279 token_pos()); 278 token_pos());
279 compiler->RecordAfterCall(this);
280 } 280 }
281 281
282 282
283 EMIT_NATIVE_CODE(PushArgument, 1) { 283 EMIT_NATIVE_CODE(PushArgument, 1) {
284 if (compiler->is_optimizing()) { 284 if (compiler->is_optimizing()) {
285 __ Push(locs()->in(0).reg()); 285 __ Push(locs()->in(0).reg());
286 } 286 }
287 } 287 }
288 288
289 289
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 __ IfULe(length, index); 1598 __ IfULe(length, index);
1599 compiler->EmitDeopt(deopt_id(), 1599 compiler->EmitDeopt(deopt_id(),
1600 ICData::kDeoptCheckArrayBound, 1600 ICData::kDeoptCheckArrayBound,
1601 (generalized_ ? ICData::kGeneralized : 0) | 1601 (generalized_ ? ICData::kGeneralized : 0) |
1602 (licm_hoisted_ ? ICData::kHoisted : 0)); 1602 (licm_hoisted_ ? ICData::kHoisted : 0));
1603 } 1603 }
1604 1604
1605 } // namespace dart 1605 } // namespace dart
1606 1606
1607 #endif // defined TARGET_ARCH_DBC 1607 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698