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

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

Issue 1133633002: Eagerly create local var descriptors for artificially created methods (they cannot be regularly par… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | Annotate | Revision Log
« 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // The return value is either a RawInstance on success or a RawError 66 // The return value is either a RawInstance on success or a RawError
67 // on compilation failure. 67 // on compilation failure.
68 static RawObject* ExecuteOnce(SequenceNode* fragment); 68 static RawObject* ExecuteOnce(SequenceNode* fragment);
69 69
70 // Evaluates the initializer expression of the given static field. 70 // Evaluates the initializer expression of the given static field.
71 // 71 //
72 // The return value is either a RawInstance on success or a RawError 72 // The return value is either a RawInstance on success or a RawError
73 // on compilation failure. 73 // on compilation failure.
74 static RawObject* EvaluateStaticInitializer(const Field& field); 74 static RawObject* EvaluateStaticInitializer(const Field& field);
75 75
76 // Generates local var descriptors and sets it in 'code'. 76 // Generates local var descriptors and sets it in 'code'. Do not call if the
77 // local var descriptor already exists.
77 static void ComputeLocalVarDescriptors(const Code& code); 78 static void ComputeLocalVarDescriptors(const Code& code);
78 79
79 // Eagerly compiles all functions in a class. 80 // Eagerly compiles all functions in a class.
80 // 81 //
81 // Returns Error::null() if there is no compilation error. 82 // Returns Error::null() if there is no compilation error.
82 static RawError* CompileAllFunctions(const Class& cls); 83 static RawError* CompileAllFunctions(const Class& cls);
83 }; 84 };
84 85
85 } // namespace dart 86 } // namespace dart
86 87
87 #endif // VM_COMPILER_H_ 88 #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