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

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

Issue 2491713002: DBC: Add missing PC descriptors in static initializers. (Closed)
Patch Set: small fix Created 4 years, 1 month 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 | « no previous file | runtime/vm/simulator_dbc.cc » ('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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/simulator_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698