OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |