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

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

Issue 1541133003: Incremental changes from background compilation work (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: r Created 5 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler_arm64.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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 976
977 977
978 static const Register new_pp = NOTFP; 978 static const Register new_pp = NOTFP;
979 979
980 980
981 void FlowGraphCompiler::EmitFrameEntry() { 981 void FlowGraphCompiler::EmitFrameEntry() {
982 const Function& function = parsed_function().function(); 982 const Function& function = parsed_function().function();
983 if (CanOptimizeFunction() && 983 if (CanOptimizeFunction() &&
984 function.IsOptimizable() && 984 function.IsOptimizable() &&
985 (!is_optimizing() || may_reoptimize())) { 985 (!is_optimizing() || may_reoptimize())) {
986 __ Comment("Invocation Count Check");
986 const Register function_reg = R8; 987 const Register function_reg = R8;
987
988 // The pool pointer is not setup before entering the Dart frame. 988 // The pool pointer is not setup before entering the Dart frame.
989 // Temporarily setup pool pointer for this dart function. 989 // Temporarily setup pool pointer for this dart function.
990 __ LoadPoolPointer(new_pp); 990 __ LoadPoolPointer(new_pp);
991 // Load function object from object pool. 991 // Load function object from object pool.
992 __ LoadFunctionFromCalleePool(function_reg, function, new_pp); 992 __ LoadFunctionFromCalleePool(function_reg, function, new_pp);
993 993
994 __ ldr(R3, FieldAddress(function_reg, 994 __ ldr(R3, FieldAddress(function_reg,
995 Function::usage_counter_offset())); 995 Function::usage_counter_offset()));
996 // Reoptimization of an optimized function is triggered by counting in 996 // Reoptimization of an optimized function is triggered by counting in
997 // IC stubs, but not at the entry of the function. 997 // IC stubs, but not at the entry of the function.
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 DRegister dreg = EvenDRegisterOf(reg); 1933 DRegister dreg = EvenDRegisterOf(reg);
1934 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1934 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1935 } 1935 }
1936 1936
1937 1937
1938 #undef __ 1938 #undef __
1939 1939
1940 } // namespace dart 1940 } // namespace dart
1941 1941
1942 #endif // defined TARGET_ARCH_ARM 1942 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698