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

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

Issue 101753005: Changes to interpret the optimizable bit based on whether the function (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_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/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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 __ ldr(R1, Address(SP, 0 * kWordSize)); // Value. 1030 __ ldr(R1, Address(SP, 0 * kWordSize)); // Value.
1031 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1); 1031 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1);
1032 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null())); 1032 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null()));
1033 __ Ret(); 1033 __ Ret();
1034 } 1034 }
1035 1035
1036 1036
1037 void FlowGraphCompiler::EmitFrameEntry() { 1037 void FlowGraphCompiler::EmitFrameEntry() {
1038 const Function& function = parsed_function().function(); 1038 const Function& function = parsed_function().function();
1039 if (CanOptimizeFunction() && 1039 if (CanOptimizeFunction() &&
1040 function.is_optimizable() && 1040 function.IsOptimizable() &&
1041 (!is_optimizing() || may_reoptimize())) { 1041 (!is_optimizing() || may_reoptimize())) {
1042 const Register function_reg = R6; 1042 const Register function_reg = R6;
1043 1043
1044 // The pool pointer is not setup before entering the Dart frame. 1044 // The pool pointer is not setup before entering the Dart frame.
1045 // Preserve PP of caller. 1045 // Preserve PP of caller.
1046 __ mov(R7, ShifterOperand(PP)); 1046 __ mov(R7, ShifterOperand(PP));
1047 // Temporarily setup pool pointer for this dart function. 1047 // Temporarily setup pool pointer for this dart function.
1048 __ LoadPoolPointer(); 1048 __ LoadPoolPointer();
1049 // Load function object from object pool. 1049 // Load function object from object pool.
1050 __ LoadObject(function_reg, function); // Uses PP. 1050 __ LoadObject(function_reg, function); // Uses PP.
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 DRegister dreg = EvenDRegisterOf(reg); 1885 DRegister dreg = EvenDRegisterOf(reg);
1886 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1886 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1887 } 1887 }
1888 1888
1889 1889
1890 #undef __ 1890 #undef __
1891 1891
1892 } // namespace dart 1892 } // namespace dart
1893 1893
1894 #endif // defined TARGET_ARCH_ARM 1894 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698