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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.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/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 } 994 }
995 995
996 996
997 // NOTE: If the entry code shape changes, ReturnAddressLocator in profiler.cc 997 // NOTE: If the entry code shape changes, ReturnAddressLocator in profiler.cc
998 // needs to be updated to match. 998 // needs to be updated to match.
999 void FlowGraphCompiler::EmitFrameEntry() { 999 void FlowGraphCompiler::EmitFrameEntry() {
1000 const Function& function = parsed_function().function(); 1000 const Function& function = parsed_function().function();
1001 if (CanOptimizeFunction() && 1001 if (CanOptimizeFunction() &&
1002 function.IsOptimizable() && 1002 function.IsOptimizable() &&
1003 (!is_optimizing() || may_reoptimize())) { 1003 (!is_optimizing() || may_reoptimize())) {
1004 __ Comment("Invocation Count Check");
1004 const Register function_reg = EBX; 1005 const Register function_reg = EBX;
1005 __ LoadObject(function_reg, function); 1006 __ LoadObject(function_reg, function);
1006 1007
1007 // Reoptimization of an optimized function is triggered by counting in 1008 // Reoptimization of an optimized function is triggered by counting in
1008 // IC stubs, but not at the entry of the function. 1009 // IC stubs, but not at the entry of the function.
1009 if (!is_optimizing()) { 1010 if (!is_optimizing()) {
1010 __ incl(FieldAddress(function_reg, Function::usage_counter_offset())); 1011 __ incl(FieldAddress(function_reg, Function::usage_counter_offset()));
1011 } 1012 }
1012 __ cmpl(FieldAddress(function_reg, Function::usage_counter_offset()), 1013 __ cmpl(FieldAddress(function_reg, Function::usage_counter_offset()),
1013 Immediate(GetOptimizationThreshold())); 1014 Immediate(GetOptimizationThreshold()));
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
1838 __ movups(reg, Address(ESP, 0)); 1839 __ movups(reg, Address(ESP, 0));
1839 __ addl(ESP, Immediate(kFpuRegisterSize)); 1840 __ addl(ESP, Immediate(kFpuRegisterSize));
1840 } 1841 }
1841 1842
1842 1843
1843 #undef __ 1844 #undef __
1844 1845
1845 } // namespace dart 1846 } // namespace dart
1846 1847
1847 #endif // defined TARGET_ARCH_IA32 1848 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698