| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 enum Kind { | 172 enum Kind { |
| 173 kUnknown, | 173 kUnknown, |
| 174 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, | 174 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, |
| 175 RECOGNIZED_LIST(DEFINE_ENUM_LIST) | 175 RECOGNIZED_LIST(DEFINE_ENUM_LIST) |
| 176 #undef DEFINE_ENUM_LIST | 176 #undef DEFINE_ENUM_LIST |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 static Kind RecognizeKind(const Function& function); | 179 static Kind RecognizeKind(const Function& function); |
| 180 static bool AlwaysInline(const Function& function); | 180 static bool AlwaysInline(const Function& function); |
| 181 static const char* KindToCString(Kind kind); | 181 static const char* KindToCString(Kind kind); |
| 182 static void InitializeState(); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 | 185 |
| 185 // CompileType describes type of the value produced by the definition. | 186 // CompileType describes type of the value produced by the definition. |
| 186 // | 187 // |
| 187 // It captures the following properties: | 188 // It captures the following properties: |
| 188 // - whether value can potentially be null or it is definitely not null; | 189 // - whether value can potentially be null or it is definitely not null; |
| 189 // - concrete class id of the value or kDynamicCid if unknown statically; | 190 // - concrete class id of the value or kDynamicCid if unknown statically; |
| 190 // - abstract super type of the value, concrete type of the value in runtime | 191 // - abstract super type of the value, concrete type of the value in runtime |
| 191 // is guaranteed to be sub type of this type. | 192 // is guaranteed to be sub type of this type. |
| (...skipping 6610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6802 ForwardInstructionIterator* current_iterator_; | 6803 ForwardInstructionIterator* current_iterator_; |
| 6803 | 6804 |
| 6804 private: | 6805 private: |
| 6805 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6806 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6806 }; | 6807 }; |
| 6807 | 6808 |
| 6808 | 6809 |
| 6809 } // namespace dart | 6810 } // namespace dart |
| 6810 | 6811 |
| 6811 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6812 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |