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

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

Issue 1419743004: Remove redundant code from flow graph optimizer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 TargetEntryInstr** entry, 175 TargetEntryInstr** entry,
176 Definition** last); 176 Definition** last);
177 177
178 intptr_t PrepareInlineByteArrayBaseOp(Instruction* call, 178 intptr_t PrepareInlineByteArrayBaseOp(Instruction* call,
179 intptr_t array_cid, 179 intptr_t array_cid,
180 intptr_t view_cid, 180 intptr_t view_cid,
181 Definition** array, 181 Definition** array,
182 Definition* index, 182 Definition* index,
183 Instruction** cursor); 183 Instruction** cursor);
184 184
185 bool BuildByteArrayBaseLoad(InstanceCallInstr* call,
186 intptr_t view_cid);
187 bool BuildByteArrayBaseStore(InstanceCallInstr* call,
188 intptr_t view_cid);
189
190 // Insert a check of 'to_check' determined by 'unary_checks'. If the 185 // Insert a check of 'to_check' determined by 'unary_checks'. If the
191 // check fails it will deoptimize to 'deopt_id' using the deoptimization 186 // check fails it will deoptimize to 'deopt_id' using the deoptimization
192 // environment 'deopt_environment'. The check is inserted immediately 187 // environment 'deopt_environment'. The check is inserted immediately
193 // before 'insert_before'. 188 // before 'insert_before'.
194 void AddCheckClass(Definition* to_check, 189 void AddCheckClass(Definition* to_check,
195 const ICData& unary_checks, 190 const ICData& unary_checks,
196 intptr_t deopt_id, 191 intptr_t deopt_id,
197 Environment* deopt_environment, 192 Environment* deopt_environment,
198 Instruction* insert_before); 193 Instruction* insert_before);
199 Instruction* GetCheckClass(Definition* to_check, 194 Instruction* GetCheckClass(Definition* to_check,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // Optimize spill stores inside try-blocks by identifying values that always 434 // Optimize spill stores inside try-blocks by identifying values that always
440 // contain a single known constant at catch block entry. 435 // contain a single known constant at catch block entry.
441 class TryCatchAnalyzer : public AllStatic { 436 class TryCatchAnalyzer : public AllStatic {
442 public: 437 public:
443 static void Optimize(FlowGraph* flow_graph); 438 static void Optimize(FlowGraph* flow_graph);
444 }; 439 };
445 440
446 } // namespace dart 441 } // namespace dart
447 442
448 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 443 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698