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/aot_optimizer.h

Issue 2716593002: Propagate this-specialization to regular (megamorphic) calls (Closed)
Patch Set: Add new Canonicalize call to make use of type data Created 3 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
« no previous file with comments | « no previous file | runtime/vm/aot_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 RUNTIME_VM_AOT_OPTIMIZER_H_ 5 #ifndef RUNTIME_VM_AOT_OPTIMIZER_H_
6 #define RUNTIME_VM_AOT_OPTIMIZER_H_ 6 #define RUNTIME_VM_AOT_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void InsertBefore(Instruction* next, 45 void InsertBefore(Instruction* next,
46 Instruction* instr, 46 Instruction* instr,
47 Environment* env, 47 Environment* env,
48 FlowGraph::UseKind use_kind) { 48 FlowGraph::UseKind use_kind) {
49 flow_graph_->InsertBefore(next, instr, env, use_kind); 49 flow_graph_->InsertBefore(next, instr, env, use_kind);
50 } 50 }
51 51
52 private: 52 private:
53 // Attempt to build ICData for call using propagated class-ids. 53 // Attempt to build ICData for call using propagated class-ids.
54 bool TryCreateICData(InstanceCallInstr* call); 54 bool TryCreateICData(InstanceCallInstr* call);
55 const ICData& TrySpecializeICData(const ICData& ic_data, intptr_t cid);
56 55
57 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); 56 bool TryReplaceWithIndexedOp(InstanceCallInstr* call);
58 57
59 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 58 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
60 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 59 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
61 60
62 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); 61 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind);
63 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); 62 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind);
64 63
65 bool TryInlineFieldAccess(InstanceCallInstr* call); 64 bool TryInlineFieldAccess(InstanceCallInstr* call);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 139
141 bool has_unique_no_such_method_; 140 bool has_unique_no_such_method_;
142 141
143 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); 142 DISALLOW_COPY_AND_ASSIGN(AotOptimizer);
144 }; 143 };
145 144
146 145
147 } // namespace dart 146 } // namespace dart
148 147
149 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_ 148 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698