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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.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_compiler_mips.cc ('k') | runtime/vm/flow_graph_inliner.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_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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 __ LoadObject(RAX, Object::null_object(), PP); 1039 __ LoadObject(RAX, Object::null_object(), PP);
1040 __ ret(); 1040 __ ret();
1041 } 1041 }
1042 1042
1043 1043
1044 void FlowGraphCompiler::EmitFrameEntry() { 1044 void FlowGraphCompiler::EmitFrameEntry() {
1045 const Function& function = parsed_function().function(); 1045 const Function& function = parsed_function().function();
1046 Register new_pp = kNoRegister; 1046 Register new_pp = kNoRegister;
1047 Register new_pc = kNoRegister; 1047 Register new_pc = kNoRegister;
1048 if (CanOptimizeFunction() && 1048 if (CanOptimizeFunction() &&
1049 function.is_optimizable() && 1049 function.IsOptimizable() &&
1050 (!is_optimizing() || may_reoptimize())) { 1050 (!is_optimizing() || may_reoptimize())) {
1051 const Register function_reg = RDI; 1051 const Register function_reg = RDI;
1052 new_pp = R13; 1052 new_pp = R13;
1053 new_pc = R12; 1053 new_pc = R12;
1054 1054
1055 Label next; 1055 Label next;
1056 __ nop(4); // Need a fixed size sequence on frame entry. 1056 __ nop(4); // Need a fixed size sequence on frame entry.
1057 __ call(&next); 1057 __ call(&next);
1058 __ Bind(&next); 1058 __ Bind(&next);
1059 1059
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 __ movups(reg, Address(RSP, 0)); 1907 __ movups(reg, Address(RSP, 0));
1908 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1908 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1909 } 1909 }
1910 1910
1911 1911
1912 #undef __ 1912 #undef __
1913 1913
1914 } // namespace dart 1914 } // namespace dart
1915 1915
1916 #endif // defined TARGET_ARCH_X64 1916 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698