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

Side by Side Diff: runtime/vm/flow_graph_compiler.h

Issue 22266005: Inline fsin/fcos. Huge speedup on Box2D. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | « no previous file | runtime/vm/flow_graph_compiler_arm.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 }; 234 };
235 235
236 public: 236 public:
237 FlowGraphCompiler(Assembler* assembler, 237 FlowGraphCompiler(Assembler* assembler,
238 const FlowGraph& flow_graph, 238 const FlowGraph& flow_graph,
239 bool is_optimizing); 239 bool is_optimizing);
240 240
241 ~FlowGraphCompiler(); 241 ~FlowGraphCompiler();
242 242
243 static bool SupportsUnboxedMints(); 243 static bool SupportsUnboxedMints();
244 static bool SupportsInlinedTrigonometrics();
244 245
245 // Accessors. 246 // Accessors.
246 Assembler* assembler() const { return assembler_; } 247 Assembler* assembler() const { return assembler_; }
247 const ParsedFunction& parsed_function() const { return parsed_function_; } 248 const ParsedFunction& parsed_function() const { return parsed_function_; }
248 const GrowableArray<BlockEntryInstr*>& block_order() const { 249 const GrowableArray<BlockEntryInstr*>& block_order() const {
249 return block_order_; 250 return block_order_;
250 } 251 }
251 252
252 const FlowGraph& flow_graph() const { return flow_graph_; } 253 const FlowGraph& flow_graph() const { return flow_graph_; }
253 254
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // that should be used when deoptimizing we store it in this variable. 603 // that should be used when deoptimizing we store it in this variable.
603 // In future AddDeoptStub should be moved out of the instruction template. 604 // In future AddDeoptStub should be moved out of the instruction template.
604 Environment* pending_deoptimization_env_; 605 Environment* pending_deoptimization_env_;
605 606
606 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 607 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
607 }; 608 };
608 609
609 } // namespace dart 610 } // namespace dart
610 611
611 #endif // VM_FLOW_GRAPH_COMPILER_H_ 612 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698