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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 if (compiler->is_optimizing()) { | 411 if (compiler->is_optimizing()) { |
412 __ LoadField(locs()->out(0).reg(), locs()->in(0).reg(), | 412 __ LoadField(locs()->out(0).reg(), locs()->in(0).reg(), |
413 Field::static_value_offset() / kWordSize); | 413 Field::static_value_offset() / kWordSize); |
414 } else { | 414 } else { |
415 const intptr_t kidx = __ AddConstant(StaticField()); | 415 const intptr_t kidx = __ AddConstant(StaticField()); |
416 __ PushStatic(kidx); | 416 __ PushStatic(kidx); |
417 } | 417 } |
418 } | 418 } |
419 | 419 |
420 | 420 |
421 EMIT_NATIVE_CODE(InitStaticField, 1) { | 421 EMIT_NATIVE_CODE(InitStaticField, |
| 422 1, |
| 423 Location::NoLocation(), |
| 424 LocationSummary::kCall) { |
422 if (compiler->is_optimizing()) { | 425 if (compiler->is_optimizing()) { |
423 __ Push(locs()->in(0).reg()); | 426 __ Push(locs()->in(0).reg()); |
424 __ InitStaticTOS(); | 427 __ InitStaticTOS(); |
425 } else { | 428 } else { |
426 __ InitStaticTOS(); | 429 __ InitStaticTOS(); |
427 } | 430 } |
| 431 compiler->RecordAfterCall(this); |
428 } | 432 } |
429 | 433 |
430 | 434 |
431 EMIT_NATIVE_CODE(ClosureCall, | 435 EMIT_NATIVE_CODE(ClosureCall, |
432 1, | 436 1, |
433 Location::RegisterLocation(0), | 437 Location::RegisterLocation(0), |
434 LocationSummary::kCall) { | 438 LocationSummary::kCall) { |
435 if (compiler->is_optimizing()) { | 439 if (compiler->is_optimizing()) { |
436 __ Push(locs()->in(0).reg()); | 440 __ Push(locs()->in(0).reg()); |
437 } | 441 } |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1989 } | 1993 } |
1990 __ IfULe(length, index); | 1994 __ IfULe(length, index); |
1991 compiler->EmitDeopt(deopt_id(), ICData::kDeoptCheckArrayBound, | 1995 compiler->EmitDeopt(deopt_id(), ICData::kDeoptCheckArrayBound, |
1992 (generalized_ ? ICData::kGeneralized : 0) | | 1996 (generalized_ ? ICData::kGeneralized : 0) | |
1993 (licm_hoisted_ ? ICData::kHoisted : 0)); | 1997 (licm_hoisted_ ? ICData::kHoisted : 0)); |
1994 } | 1998 } |
1995 | 1999 |
1996 } // namespace dart | 2000 } // namespace dart |
1997 | 2001 |
1998 #endif // defined TARGET_ARCH_DBC | 2002 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |