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

Unified Diff: runtime/vm/aot_optimizer.h

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix build after merge Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/aot_optimizer.h
diff --git a/runtime/vm/flow_graph_optimizer.h b/runtime/vm/aot_optimizer.h
similarity index 95%
copy from runtime/vm/flow_graph_optimizer.h
copy to runtime/vm/aot_optimizer.h
index 311d3081c8e0efb8009fe04ef7b228ce5dd2234e..e770ffea1d1a9ca1873bbe54ce1541e80445021c 100644
--- a/runtime/vm/flow_graph_optimizer.h
+++ b/runtime/vm/aot_optimizer.h
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#ifndef VM_FLOW_GRAPH_OPTIMIZER_H_
-#define VM_FLOW_GRAPH_OPTIMIZER_H_
+#ifndef VM_AOT_OPTIMIZER_H_
+#define VM_AOT_OPTIMIZER_H_
#include "vm/intermediate_language.h"
#include "vm/flow_graph.h"
@@ -13,10 +13,11 @@ namespace dart {
class CSEInstructionMap;
template <typename T> class GrowableArray;
class ParsedFunction;
+class RawBool;
-class FlowGraphOptimizer : public FlowGraphVisitor {
+class AotOptimizer : public FlowGraphVisitor {
public:
- FlowGraphOptimizer(
+ AotOptimizer(
FlowGraph* flow_graph,
bool use_speculative_inlining,
GrowableArray<intptr_t>* inlining_black_list)
@@ -26,7 +27,7 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
inlining_black_list_(inlining_black_list) {
ASSERT(!use_speculative_inlining || (inlining_black_list != NULL));
}
- virtual ~FlowGraphOptimizer() {}
+ virtual ~AotOptimizer() {}
FlowGraph* flow_graph() const { return flow_graph_; }
@@ -47,7 +48,6 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
virtual void VisitStaticCall(StaticCallInstr* instr);
virtual void VisitInstanceCall(InstanceCallInstr* instr);
- virtual void VisitStoreInstanceField(StoreInstanceFieldInstr* instr);
virtual void VisitAllocateContext(AllocateContextInstr* instr);
virtual void VisitLoadCodeUnits(LoadCodeUnitsInstr* instr);
@@ -179,10 +179,10 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
GrowableArray<intptr_t>* inlining_black_list_;
- DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer);
+ DISALLOW_COPY_AND_ASSIGN(AotOptimizer);
};
} // namespace dart
-#endif // VM_FLOW_GRAPH_OPTIMIZER_H_
+#endif // VM_AOT_OPTIMIZER_H_
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698