Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, 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" |
| 11 | 11 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 // by the fragment. | 51 // by the fragment. |
| 52 // | 52 // |
| 53 // The return value is either a RawInstance on success or a RawError | 53 // The return value is either a RawInstance on success or a RawError |
| 54 // on compilation failure. | 54 // on compilation failure. |
| 55 static RawObject* ExecuteOnce(SequenceNode* fragment); | 55 static RawObject* ExecuteOnce(SequenceNode* fragment); |
| 56 | 56 |
| 57 // Eagerly compiles all functions in a class. | 57 // Eagerly compiles all functions in a class. |
| 58 // | 58 // |
| 59 // Returns Error::null() if there is no compilation error. | 59 // Returns Error::null() if there is no compilation error. |
| 60 static RawError* CompileAllFunctions(const Class& cls); | 60 static RawError* CompileAllFunctions(const Class& cls); |
| 61 | |
| 62 static RawArray* ExtractTypeFeedbackArray(const Code& code); | |
|
Kevin Millikin (Google)
2012/09/18 11:01:55
It seems better to move this to a member function
zerny-google
2012/09/18 11:53:07
Done.
| |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace dart | 65 } // namespace dart |
| 64 | 66 |
| 65 #endif // VM_COMPILER_H_ | 67 #endif // VM_COMPILER_H_ |
| OLD | NEW |