| 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_
|
|
|