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

Side by Side Diff: runtime/vm/intermediate_language_mips.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 | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 const intptr_t kNumInputs = 1; 1662 const intptr_t kNumInputs = 1;
1663 const intptr_t kNumTemps = 0; 1663 const intptr_t kNumTemps = 0;
1664 LocationSummary* summary = 1664 LocationSummary* summary =
1665 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 1665 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
1666 summary->set_in(0, Location::RequiresRegister()); 1666 summary->set_in(0, Location::RequiresRegister());
1667 summary->set_out(Location::RequiresRegister()); 1667 summary->set_out(Location::RequiresRegister());
1668 return summary; 1668 return summary;
1669 } 1669 }
1670 1670
1671 1671
1672 // When the parser is building an implicit static getter for optimization,
1673 // it can generate a function body where deoptimization ids do not line up
1674 // with the unoptimized code.
1675 //
1676 // This is safe only so long as LoadStaticFieldInstr cannot deoptimize.
1672 void LoadStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1677 void LoadStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1673 __ TraceSimMsg("LoadStaticFieldInstr"); 1678 __ TraceSimMsg("LoadStaticFieldInstr");
1674 Register field = locs()->in(0).reg(); 1679 Register field = locs()->in(0).reg();
1675 Register result = locs()->out().reg(); 1680 Register result = locs()->out().reg();
1676 __ lw(result, FieldAddress(field, Field::value_offset())); 1681 __ lw(result, FieldAddress(field, Field::value_offset()));
1677 } 1682 }
1678 1683
1679 1684
1680 LocationSummary* StoreStaticFieldInstr::MakeLocationSummary() const { 1685 LocationSummary* StoreStaticFieldInstr::MakeLocationSummary() const {
1681 LocationSummary* locs = new LocationSummary(1, 1, LocationSummary::kNoCall); 1686 LocationSummary* locs = new LocationSummary(1, 1, LocationSummary::kNoCall);
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
3306 compiler->GenerateCall(token_pos(), 3311 compiler->GenerateCall(token_pos(),
3307 &label, 3312 &label,
3308 PcDescriptors::kOther, 3313 PcDescriptors::kOther,
3309 locs()); 3314 locs());
3310 __ Drop(2); // Discard type arguments and receiver. 3315 __ Drop(2); // Discard type arguments and receiver.
3311 } 3316 }
3312 3317
3313 } // namespace dart 3318 } // namespace dart
3314 3319
3315 #endif // defined TARGET_ARCH_MIPS 3320 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698