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

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

Issue 12378039: Inline ByteArray setters like setUint8 in the optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased Created 7 years, 9 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool TryInlineInstanceGetter(InstanceCallInstr* call); 80 bool TryInlineInstanceGetter(InstanceCallInstr* call);
81 bool TryInlineInstanceSetter(InstanceCallInstr* call, 81 bool TryInlineInstanceSetter(InstanceCallInstr* call,
82 const ICData& unary_ic_data); 82 const ICData& unary_ic_data);
83 83
84 bool TryInlineInstanceMethod(InstanceCallInstr* call); 84 bool TryInlineInstanceMethod(InstanceCallInstr* call);
85 void ReplaceWithInstanceOf(InstanceCallInstr* instr); 85 void ReplaceWithInstanceOf(InstanceCallInstr* instr);
86 86
87 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, 87 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call,
88 intptr_t cid); 88 intptr_t cid);
89 89
90 LoadIndexedInstr* BuildByteArrayViewLoad(InstanceCallInstr* call, 90 bool BuildByteArrayViewLoad(InstanceCallInstr* call,
91 intptr_t receiver_cid, 91 intptr_t receiver_cid,
92 intptr_t view_cid); 92 intptr_t view_cid);
93 bool BuildByteArrayViewStore(InstanceCallInstr* call,
94 intptr_t receiver_cid,
95 intptr_t view_cid);
96 void PrepareByteArrayViewOp(InstanceCallInstr* call,
97 intptr_t receiver_cid,
98 intptr_t view_cid);
93 99
94 // Insert a check of 'to_check' determined by 'unary_checks'. If the 100 // Insert a check of 'to_check' determined by 'unary_checks'. If the
95 // check fails it will deoptimize to 'deopt_id' using the deoptimization 101 // check fails it will deoptimize to 'deopt_id' using the deoptimization
96 // environment 'deopt_environment'. The check is inserted immediately 102 // environment 'deopt_environment'. The check is inserted immediately
97 // before 'insert_before'. 103 // before 'insert_before'.
98 void AddCheckClass(Definition* to_check, 104 void AddCheckClass(Definition* to_check,
99 const ICData& unary_checks, 105 const ICData& unary_checks,
100 intptr_t deopt_id, 106 intptr_t deopt_id,
101 Environment* deopt_environment, 107 Environment* deopt_environment,
102 Instruction* insert_before); 108 Instruction* insert_before);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // inputs. 291 // inputs.
286 static BranchInstr* CloneBranch(BranchInstr* branch, 292 static BranchInstr* CloneBranch(BranchInstr* branch,
287 Value* left, 293 Value* left,
288 Value* right); 294 Value* right);
289 }; 295 };
290 296
291 297
292 } // namespace dart 298 } // namespace dart
293 299
294 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 300 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698