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

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

Issue 13190014: Optimizes 'as' operation in similar way as 'instanceof': collect type feedback in unoptimized mode… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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_builder.cc ('k') | runtime/vm/flow_graph_optimizer.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_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 74 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
75 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 75 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
76 76
77 bool TryInlineInstanceGetter(InstanceCallInstr* call); 77 bool TryInlineInstanceGetter(InstanceCallInstr* call);
78 bool TryInlineInstanceSetter(InstanceCallInstr* call, 78 bool TryInlineInstanceSetter(InstanceCallInstr* call,
79 const ICData& unary_ic_data); 79 const ICData& unary_ic_data);
80 80
81 bool TryInlineInstanceMethod(InstanceCallInstr* call); 81 bool TryInlineInstanceMethod(InstanceCallInstr* call);
82 void ReplaceWithInstanceOf(InstanceCallInstr* instr); 82 void ReplaceWithInstanceOf(InstanceCallInstr* instr);
83 void ReplaceWithTypeCast(InstanceCallInstr* instr);
83 84
84 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, 85 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call,
85 intptr_t cid); 86 intptr_t cid);
86 87
87 bool BuildByteArrayViewLoad(InstanceCallInstr* call, 88 bool BuildByteArrayViewLoad(InstanceCallInstr* call,
88 intptr_t receiver_cid, 89 intptr_t receiver_cid,
89 intptr_t view_cid); 90 intptr_t view_cid);
90 bool BuildByteArrayViewStore(InstanceCallInstr* call, 91 bool BuildByteArrayViewStore(InstanceCallInstr* call,
91 intptr_t receiver_cid, 92 intptr_t receiver_cid,
92 intptr_t view_cid); 93 intptr_t view_cid);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // inputs. 290 // inputs.
290 static BranchInstr* CloneBranch(BranchInstr* branch, 291 static BranchInstr* CloneBranch(BranchInstr* branch,
291 Value* left, 292 Value* left,
292 Value* right); 293 Value* right);
293 }; 294 };
294 295
295 296
296 } // namespace dart 297 } // namespace dart
297 298
298 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 299 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698