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

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

Issue 10993023: Inline String isEmpty, refactor inlining of intrinsics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')
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_OPTIMIZER_H_ 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_
6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 void InsertAfter(Instruction* prev, 58 void InsertAfter(Instruction* prev,
59 Instruction* instr, 59 Instruction* instr,
60 Environment* env, 60 Environment* env,
61 Definition::UseKind use_kind); 61 Definition::UseKind use_kind);
62 62
63 void InsertConversionsFor(Definition* def); 63 void InsertConversionsFor(Definition* def);
64 64
65 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 65 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const;
66 66
67 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
68 void InlineArrayLengthGetter(InstanceCallInstr* call,
69 intptr_t length_offset,
70 bool is_immutable);
71 void InlineGArrayCapacityGetter(InstanceCallInstr* call);
72 void InlineStringLengthGetter(InstanceCallInstr* call);
73 void InlineStringIsEmptyTester(InstanceCallInstr* call);
74
67 FlowGraph* flow_graph_; 75 FlowGraph* flow_graph_;
68 76
69 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); 77 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer);
70 }; 78 };
71 79
72 80
73 // Analyze the generated flow graph. Currently only if it is a leaf 81 // Analyze the generated flow graph. Currently only if it is a leaf
74 // method, i.e., does not contain any calls to runtime or other Dart code. 82 // method, i.e., does not contain any calls to runtime or other Dart code.
75 class FlowGraphAnalyzer : public ValueObject { 83 class FlowGraphAnalyzer : public ValueObject {
76 public: 84 public:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 220
213 // Worklists of blocks and definitions. 221 // Worklists of blocks and definitions.
214 GrowableArray<BlockEntryInstr*> block_worklist_; 222 GrowableArray<BlockEntryInstr*> block_worklist_;
215 GrowableArray<Definition*> definition_worklist_; 223 GrowableArray<Definition*> definition_worklist_;
216 }; 224 };
217 225
218 226
219 } // namespace dart 227 } // namespace dart
220 228
221 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 229 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698