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

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

Issue 1543933002: Move comment to corect location. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « no previous file | no next file » | 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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 const Function& function = parsed_function().function(); 991 const Function& function = parsed_function().function();
992 // Load pool pointer. 992 // Load pool pointer.
993 993
994 if (flow_graph().IsCompiledForOsr()) { 994 if (flow_graph().IsCompiledForOsr()) {
995 intptr_t extra_slots = StackSize() 995 intptr_t extra_slots = StackSize()
996 - flow_graph().num_stack_locals() 996 - flow_graph().num_stack_locals()
997 - flow_graph().num_copied_params(); 997 - flow_graph().num_copied_params();
998 ASSERT(extra_slots >= 0); 998 ASSERT(extra_slots >= 0);
999 __ EnterOsrFrame(extra_slots * kWordSize); 999 __ EnterOsrFrame(extra_slots * kWordSize);
1000 } else { 1000 } else {
1001 __ Comment("Invocation Count Check");
1002 const Register new_pp = R13; 1001 const Register new_pp = R13;
1003 __ LoadPoolPointer(new_pp); 1002 __ LoadPoolPointer(new_pp);
1004 1003
1005 if (CanOptimizeFunction() && 1004 if (CanOptimizeFunction() &&
1006 function.IsOptimizable() && 1005 function.IsOptimizable() &&
1007 (!is_optimizing() || may_reoptimize())) { 1006 (!is_optimizing() || may_reoptimize())) {
1007 __ Comment("Invocation Count Check");
1008 const Register function_reg = RDI; 1008 const Register function_reg = RDI;
1009 // Load function object using the callee's pool pointer. 1009 // Load function object using the callee's pool pointer.
1010 __ LoadFunctionFromCalleePool(function_reg, function, new_pp); 1010 __ LoadFunctionFromCalleePool(function_reg, function, new_pp);
1011 1011
1012 // Reoptimization of an optimized function is triggered by counting in 1012 // Reoptimization of an optimized function is triggered by counting in
1013 // IC stubs, but not at the entry of the function. 1013 // IC stubs, but not at the entry of the function.
1014 if (!is_optimizing()) { 1014 if (!is_optimizing()) {
1015 __ incl(FieldAddress(function_reg, Function::usage_counter_offset())); 1015 __ incl(FieldAddress(function_reg, Function::usage_counter_offset()));
1016 } 1016 }
1017 __ cmpl( 1017 __ cmpl(
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 __ movups(reg, Address(RSP, 0)); 1811 __ movups(reg, Address(RSP, 0));
1812 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); 1812 __ AddImmediate(RSP, Immediate(kFpuRegisterSize));
1813 } 1813 }
1814 1814
1815 1815
1816 #undef __ 1816 #undef __
1817 1817
1818 } // namespace dart 1818 } // namespace dart
1819 1819
1820 #endif // defined TARGET_ARCH_X64 1820 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698