| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 EMIT_NATIVE_CODE(Stop, 0) { | 288 EMIT_NATIVE_CODE(Stop, 0) { |
| 289 __ Stop(message()); | 289 __ Stop(message()); |
| 290 } | 290 } |
| 291 | 291 |
| 292 | 292 |
| 293 EMIT_NATIVE_CODE(CheckStackOverflow, | 293 EMIT_NATIVE_CODE(CheckStackOverflow, |
| 294 0, | 294 0, |
| 295 Location::NoLocation(), | 295 Location::NoLocation(), |
| 296 LocationSummary::kCall) { | 296 LocationSummary::kCall) { |
| 297 __ CheckStack(); | 297 if (compiler->ForceSlowPathForStackOverflow()) { |
| 298 __ CheckStackAlwaysExit(); |
| 299 } else { |
| 300 __ CheckStack(); |
| 301 } |
| 298 compiler->AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id(), | 302 compiler->AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id(), |
| 299 token_pos()); | 303 token_pos()); |
| 300 compiler->RecordAfterCall(this); | 304 compiler->RecordAfterCall(this); |
| 301 } | 305 } |
| 302 | 306 |
| 303 | 307 |
| 304 EMIT_NATIVE_CODE(PushArgument, 1) { | 308 EMIT_NATIVE_CODE(PushArgument, 1) { |
| 305 if (compiler->is_optimizing()) { | 309 if (compiler->is_optimizing()) { |
| 306 __ Push(locs()->in(0).reg()); | 310 __ Push(locs()->in(0).reg()); |
| 307 } | 311 } |
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1992 } | 1996 } |
| 1993 __ IfULe(length, index); | 1997 __ IfULe(length, index); |
| 1994 compiler->EmitDeopt(deopt_id(), ICData::kDeoptCheckArrayBound, | 1998 compiler->EmitDeopt(deopt_id(), ICData::kDeoptCheckArrayBound, |
| 1995 (generalized_ ? ICData::kGeneralized : 0) | | 1999 (generalized_ ? ICData::kGeneralized : 0) | |
| 1996 (licm_hoisted_ ? ICData::kHoisted : 0)); | 2000 (licm_hoisted_ ? ICData::kHoisted : 0)); |
| 1997 } | 2001 } |
| 1998 | 2002 |
| 1999 } // namespace dart | 2003 } // namespace dart |
| 2000 | 2004 |
| 2001 #endif // defined TARGET_ARCH_DBC | 2005 #endif // defined TARGET_ARCH_DBC |
| OLD | NEW |