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

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

Issue 1973553003: VM precompiler: Compute and use result type of static initializers of final fields. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: preprocess initializers Created 4 years, 7 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/compiler.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_COMPILER_H_ 5 #ifndef VM_COMPILER_H_
6 #define VM_COMPILER_H_ 6 #define VM_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/runtime_entry.h" 10 #include "vm/runtime_entry.h"
(...skipping 20 matching lines...) Expand all
31 class CompilationPipeline : public ZoneAllocated { 31 class CompilationPipeline : public ZoneAllocated {
32 public: 32 public:
33 static CompilationPipeline* New(Zone* zone, const Function& function); 33 static CompilationPipeline* New(Zone* zone, const Function& function);
34 34
35 virtual void ParseFunction(ParsedFunction* parsed_function) = 0; 35 virtual void ParseFunction(ParsedFunction* parsed_function) = 0;
36 virtual FlowGraph* BuildFlowGraph( 36 virtual FlowGraph* BuildFlowGraph(
37 Zone* zone, 37 Zone* zone,
38 ParsedFunction* parsed_function, 38 ParsedFunction* parsed_function,
39 const ZoneGrowableArray<const ICData*>& ic_data_array, 39 const ZoneGrowableArray<const ICData*>& ic_data_array,
40 intptr_t osr_id) = 0; 40 intptr_t osr_id) = 0;
41 virtual void FinalizeCompilation() = 0; 41 virtual void FinalizeCompilation(FlowGraph* flow_graph) = 0;
42 virtual ~CompilationPipeline() { } 42 virtual ~CompilationPipeline() { }
43 }; 43 };
44 44
45 45
46 class DartCompilationPipeline : public CompilationPipeline { 46 class DartCompilationPipeline : public CompilationPipeline {
47 public: 47 public:
48 virtual void ParseFunction(ParsedFunction* parsed_function); 48 virtual void ParseFunction(ParsedFunction* parsed_function);
49 49
50 virtual FlowGraph* BuildFlowGraph( 50 virtual FlowGraph* BuildFlowGraph(
51 Zone* zone, 51 Zone* zone,
52 ParsedFunction* parsed_function, 52 ParsedFunction* parsed_function,
53 const ZoneGrowableArray<const ICData*>& ic_data_array, 53 const ZoneGrowableArray<const ICData*>& ic_data_array,
54 intptr_t osr_id); 54 intptr_t osr_id);
55 55
56 virtual void FinalizeCompilation(); 56 virtual void FinalizeCompilation(FlowGraph* flow_graph);
57 }; 57 };
58 58
59 59
60 class IrregexpCompilationPipeline : public CompilationPipeline { 60 class IrregexpCompilationPipeline : public CompilationPipeline {
61 public: 61 public:
62 IrregexpCompilationPipeline() : backtrack_goto_(NULL) { } 62 IrregexpCompilationPipeline() : backtrack_goto_(NULL) { }
63 63
64 virtual void ParseFunction(ParsedFunction* parsed_function); 64 virtual void ParseFunction(ParsedFunction* parsed_function);
65 65
66 virtual FlowGraph* BuildFlowGraph( 66 virtual FlowGraph* BuildFlowGraph(
67 Zone* zone, 67 Zone* zone,
68 ParsedFunction* parsed_function, 68 ParsedFunction* parsed_function,
69 const ZoneGrowableArray<const ICData*>& ic_data_array, 69 const ZoneGrowableArray<const ICData*>& ic_data_array,
70 intptr_t osr_id); 70 intptr_t osr_id);
71 71
72 virtual void FinalizeCompilation(); 72 virtual void FinalizeCompilation(FlowGraph* flow_graph);
73 73
74 private: 74 private:
75 IndirectGotoInstr* backtrack_goto_; 75 IndirectGotoInstr* backtrack_goto_;
76 }; 76 };
77 77
78 78
79 class Compiler : public AllStatic { 79 class Compiler : public AllStatic {
80 public: 80 public:
81 static const intptr_t kNoOSRDeoptId = Thread::kNoDeoptId; 81 static const intptr_t kNoOSRDeoptId = Thread::kNoDeoptId;
82 82
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 Monitor* done_monitor_; // Notify/wait that the thread is done. 186 Monitor* done_monitor_; // Notify/wait that the thread is done.
187 187
188 BackgroundCompilationQueue* function_queue_; 188 BackgroundCompilationQueue* function_queue_;
189 189
190 DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler); 190 DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler);
191 }; 191 };
192 192
193 } // namespace dart 193 } // namespace dart
194 194
195 #endif // VM_COMPILER_H_ 195 #endif // VM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698