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

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

Issue 10665038: Remove old code generator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/code_patcher_ia32_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef VM_CODE_GENERATOR_X64_H_
6 #define VM_CODE_GENERATOR_X64_H_
7
8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_x64.h directly; use code_generator.h.
10 #endif
11
12 #include "vm/ast.h"
13 #include "vm/growable_array.h"
14
15 namespace dart {
16
17 // Forward declarations.
18 class Assembler;
19 class AstNode;
20 class ParsedFunction;
21
22 class CodeGenerator : public AstNodeVisitor {
23 public:
24 CodeGenerator(Assembler* assembler, const ParsedFunction& parsed_function)
25 : pc_descriptors_list_(NULL) { }
26 virtual ~CodeGenerator() { }
27
28 bool GenerateCode() {
29 return false;
30 }
31
32 // Add exception handler table to code.
33 void FinalizeExceptionHandlers(const Code& code) { UNIMPLEMENTED(); }
34
35 // Add pc descriptors to code.
36 void FinalizePcDescriptors(const Code& code) { UNIMPLEMENTED(); }
37
38 // Add stack maps to code.
39 void FinalizeStackmaps(const Code& code) { UNIMPLEMENTED(); }
40
41 // Add local variable descriptors to code.
42 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); }
43
44 void FinalizeComments(const Code& code) { UNIMPLEMENTED(); }
45
46 // Allocate and return an arguments descriptor.
47 // Let 'num_names' be the length of 'optional_arguments_names'.
48 // Treat the first 'num_arguments - num_names' arguments as positional and
49 // treat the following 'num_names' arguments as named optional arguments.
50 static const Array& ArgumentsDescriptor(
51 int num_arguments,
52 const Array& optional_arguments_names);
53
54 // Return true if the VM may optimize functions.
55 static bool CanOptimize();
56
57 private:
58 // Forward declarations.
59 class DescriptorList;
60
61 DescriptorList* pc_descriptors_list_;
62 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
63 };
64
65
66 } // namespace dart
67
68 #endif // VM_CODE_GENERATOR_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/code_patcher_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698