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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.h

Issue 9479004: Add a stubbed-out implementation of FlowGraphCompiler for ia32 and arm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.h
diff --git a/runtime/vm/flow_graph_compiler_ia32.h b/runtime/vm/flow_graph_compiler_ia32.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4c75dd794169a75dd4c1006001367b0ce543bbf
--- /dev/null
+++ b/runtime/vm/flow_graph_compiler_ia32.h
@@ -0,0 +1,51 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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_COMPILER_IA32_H_
+#define VM_FLOW_GRAPH_COMPILER_IA32_H_
+
+#ifndef VM_FLOW_GRAPH_COMPILER_H_
+#error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
+#endif
+
+#include "vm/intermediate_language.h"
+
+namespace dart {
+
+class Assembler;
+class Code;
+template <typename T> class GrowableArray;
+class ParsedFunction;
+
+// Stubbed out implementation of graph compiler, bails out immediately if
+// CompileGraph is called. The rest of the public API is UNIMPLEMENTED.
+class FlowGraphCompiler : public InstructionVisitor {
+ public:
+ FlowGraphCompiler(Assembler* assembler,
+ const ParsedFunction& parsed_function,
+ const GrowableArray<BlockEntryInstr*>* blocks)
+ : parsed_function_(parsed_function) {
+ }
+
+ virtual ~FlowGraphCompiler() { }
+
+ void CompileGraph();
+
+ // Infrastructure copied from class CodeGenerator or stubbed out.
+ void FinalizePcDescriptors(const Code& code);
+ void FinalizeVarDescriptors(const Code& code);
+ void FinalizeExceptionHandlers(const Code& code);
+
+ private:
+ // Bail out of the flow graph compiler. Does not return to the caller.
+ void Bailout(const char* reason);
+
+ const ParsedFunction& parsed_function_;
+
+ DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
+};
+
+} // namespace dart
+
+#endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698