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

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

Issue 10871005: Make ClassFinalizer indifferent on whether we are generating a snapshot or not. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 10 matching lines...) Expand all
21 class SequenceNode; 21 class SequenceNode;
22 22
23 DECLARE_RUNTIME_ENTRY(CompileFunction); 23 DECLARE_RUNTIME_ENTRY(CompileFunction);
24 24
25 class Compiler : public AllStatic { 25 class Compiler : public AllStatic {
26 public: 26 public:
27 // Extracts class, interface, function symbols from the script and populates 27 // Extracts class, interface, function symbols from the script and populates
28 // the symbol tables and the class dictionary of the library. 28 // the symbol tables and the class dictionary of the library.
29 // 29 //
30 // Returns Error::null() if there is no compilation error. 30 // Returns Error::null() if there is no compilation error.
31 static RawError* Compile(const Library& library, const Script& script); 31 static RawError* Compile(const Library& library,
32 const Script& script,
33 bool generating_snapshot);
32 34
33 // Generates code for given function and sets its code field. 35 // Generates code for given function and sets its code field.
34 // 36 //
35 // Returns Error::null() if there is no compilation error. 37 // Returns Error::null() if there is no compilation error.
36 static RawError* CompileFunction(const Function& function); 38 static RawError* CompileFunction(const Function& function);
37 39
38 // Generates optimized code for function. 40 // Generates optimized code for function.
39 // 41 //
40 // Returns Error::null() if there is no compilation error. 42 // Returns Error::null() if there is no compilation error.
41 static RawError* CompileOptimizedFunction(const Function& function); 43 static RawError* CompileOptimizedFunction(const Function& function);
(...skipping 14 matching lines...) Expand all
56 58
57 // Eagerly compiles all functions in a class. 59 // Eagerly compiles all functions in a class.
58 // 60 //
59 // Returns Error::null() if there is no compilation error. 61 // Returns Error::null() if there is no compilation error.
60 static RawError* CompileAllFunctions(const Class& cls); 62 static RawError* CompileAllFunctions(const Class& cls);
61 }; 63 };
62 64
63 } // namespace dart 65 } // namespace dart
64 66
65 #endif // VM_COMPILER_H_ 67 #endif // VM_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698