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

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

Issue 17288005: Try to avoid checks for lazy initialization when recompiling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_ia32.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 const intptr_t kNumInputs = 1; 1707 const intptr_t kNumInputs = 1;
1708 const intptr_t kNumTemps = 0; 1708 const intptr_t kNumTemps = 0;
1709 LocationSummary* summary = 1709 LocationSummary* summary =
1710 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 1710 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
1711 summary->set_in(0, Location::RequiresRegister()); 1711 summary->set_in(0, Location::RequiresRegister());
1712 summary->set_out(Location::RequiresRegister()); 1712 summary->set_out(Location::RequiresRegister());
1713 return summary; 1713 return summary;
1714 } 1714 }
1715 1715
1716 1716
1717 // When the parser is building an implicit static getter for optimization,
1718 // it can generate a function body where deoptimization ids do not line up
1719 // with the unoptimized code.
1720 //
1721 // This is safe only so long as LoadStaticFieldInstr cannot deoptimize.
1717 void LoadStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1722 void LoadStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1718 Register field = locs()->in(0).reg(); 1723 Register field = locs()->in(0).reg();
1719 Register result = locs()->out().reg(); 1724 Register result = locs()->out().reg();
1720 __ LoadFromOffset(kLoadWord, result, 1725 __ LoadFromOffset(kLoadWord, result,
1721 field, Field::value_offset() - kHeapObjectTag); 1726 field, Field::value_offset() - kHeapObjectTag);
1722 } 1727 }
1723 1728
1724 1729
1725 LocationSummary* StoreStaticFieldInstr::MakeLocationSummary() const { 1730 LocationSummary* StoreStaticFieldInstr::MakeLocationSummary() const {
1726 LocationSummary* locs = new LocationSummary(1, 1, LocationSummary::kNoCall); 1731 LocationSummary* locs = new LocationSummary(1, 1, LocationSummary::kNoCall);
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
3609 compiler->GenerateCall(token_pos(), 3614 compiler->GenerateCall(token_pos(),
3610 &label, 3615 &label,
3611 PcDescriptors::kOther, 3616 PcDescriptors::kOther,
3612 locs()); 3617 locs());
3613 __ Drop(2); // Discard type arguments and receiver. 3618 __ Drop(2); // Discard type arguments and receiver.
3614 } 3619 }
3615 3620
3616 } // namespace dart 3621 } // namespace dart
3617 3622
3618 #endif // defined TARGET_ARCH_ARM 3623 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698