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

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

Issue 602993002: Frees up LR on arm for use by the register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/constants_arm.h ('k') | runtime/vm/intermediate_language_arm.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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 #define __ assem-> 177 #define __ assem->
178 __ Comment("%s", Name()); 178 __ Comment("%s", Name());
179 __ Bind(entry_label()); 179 __ Bind(entry_label());
180 if (FLAG_trap_on_deoptimization) { 180 if (FLAG_trap_on_deoptimization) {
181 __ bkpt(0); 181 __ bkpt(0);
182 } 182 }
183 183
184 ASSERT(deopt_env() != NULL); 184 ASSERT(deopt_env() != NULL);
185 185
186 StubCode* stub_code = compiler->isolate()->stub_code(); 186 StubCode* stub_code = compiler->isolate()->stub_code();
187 // LR may be live. It will be clobbered by BranchLink, so cache it in IP.
188 // It will be restored at the top of the deoptimization stub, specifically in
189 // GenerateDeoptimizationSequence in stub_code_arm.cc.
190 __ mov(IP, Operand(LR));
187 __ BranchLink(&stub_code->DeoptimizeLabel()); 191 __ BranchLink(&stub_code->DeoptimizeLabel());
188 set_pc_offset(assem->CodeSize()); 192 set_pc_offset(assem->CodeSize());
189 #undef __ 193 #undef __
190 } 194 }
191 195
192 196
193 #define __ assembler()-> 197 #define __ assembler()->
194 198
195 199
196 // Fall through if bool_register contains null. 200 // Fall through if bool_register contains null.
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 DRegister dreg = EvenDRegisterOf(reg); 1806 DRegister dreg = EvenDRegisterOf(reg);
1803 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1807 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1804 } 1808 }
1805 1809
1806 1810
1807 #undef __ 1811 #undef __
1808 1812
1809 } // namespace dart 1813 } // namespace dart
1810 1814
1811 #endif // defined TARGET_ARCH_ARM 1815 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/constants_arm.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698