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

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

Issue 22866025: Always generate full unoptimized code for intrinsified methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 1154
1155 // Input parameters: 1155 // Input parameters:
1156 // RA: return address. 1156 // RA: return address.
1157 // SP: address of last argument. 1157 // SP: address of last argument.
1158 // FP: caller's frame pointer. 1158 // FP: caller's frame pointer.
1159 // PP: caller's pool pointer. 1159 // PP: caller's pool pointer.
1160 // S5: ic-data. 1160 // S5: ic-data.
1161 // S4: arguments descriptor array. 1161 // S4: arguments descriptor array.
1162 void FlowGraphCompiler::CompileGraph() { 1162 void FlowGraphCompiler::CompileGraph() {
1163 InitCompiler(); 1163 InitCompiler();
1164 if (TryIntrinsify()) { 1164
1165 // Although this intrinsified code will never be patched, it must satisfy 1165 TryIntrinsify();
1166 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum
1167 // code size.
1168 __ break_(0);
1169 __ Branch(&StubCode::FixCallersTargetLabel());
1170 return;
1171 }
1172 1166
1173 EmitFrameEntry(); 1167 EmitFrameEntry();
1174 1168
1175 const Function& function = parsed_function().function(); 1169 const Function& function = parsed_function().function();
1176 1170
1177 const int num_fixed_params = function.num_fixed_parameters(); 1171 const int num_fixed_params = function.num_fixed_parameters();
1178 const int num_copied_params = parsed_function().num_copied_params(); 1172 const int num_copied_params = parsed_function().num_copied_params();
1179 const int num_locals = parsed_function().num_stack_locals(); 1173 const int num_locals = parsed_function().num_stack_locals();
1180 1174
1181 // We check the number of passed arguments when we have to copy them due to 1175 // We check the number of passed arguments when we have to copy them due to
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 __ AddImmediate(SP, kDoubleSize); 1993 __ AddImmediate(SP, kDoubleSize);
2000 } 1994 }
2001 1995
2002 1996
2003 #undef __ 1997 #undef __
2004 1998
2005 1999
2006 } // namespace dart 2000 } // namespace dart
2007 2001
2008 #endif // defined TARGET_ARCH_MIPS 2002 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698