| OLD | NEW |
| 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_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
| 6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // the dart::Function object. Returns either an error if the parse fails | 219 // the dart::Function object. Returns either an error if the parse fails |
| 220 // (which could be the case for local functions), or a flat array of entries | 220 // (which could be the case for local functions), or a flat array of entries |
| 221 // for each parameter. Each parameter entry contains: | 221 // for each parameter. Each parameter entry contains: |
| 222 // * a Dart bool indicating whether the parameter was declared final | 222 // * a Dart bool indicating whether the parameter was declared final |
| 223 // * its default value (or null if none was declared) | 223 // * its default value (or null if none was declared) |
| 224 // * an array of metadata (or null if no metadata was declared). | 224 // * an array of metadata (or null if no metadata was declared). |
| 225 enum { | 225 enum { |
| 226 kParameterIsFinalOffset, | 226 kParameterIsFinalOffset, |
| 227 kParameterDefaultValueOffset, | 227 kParameterDefaultValueOffset, |
| 228 kParameterMetadataOffset, | 228 kParameterMetadataOffset, |
| 229 kParameterIsFieldInitializorOffset, |
| 229 kParameterEntrySize, | 230 kParameterEntrySize, |
| 230 }; | 231 }; |
| 231 static RawObject* ParseFunctionParameters(const Function& func); | 232 static RawObject* ParseFunctionParameters(const Function& func); |
| 232 | 233 |
| 233 private: | 234 private: |
| 234 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments. | 235 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments. |
| 235 | 236 |
| 236 struct Block; | 237 struct Block; |
| 237 class TryStack; | 238 class TryStack; |
| 238 | 239 |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 | 889 |
| 889 // Indentation of parser trace. | 890 // Indentation of parser trace. |
| 890 intptr_t trace_indent_; | 891 intptr_t trace_indent_; |
| 891 | 892 |
| 892 DISALLOW_COPY_AND_ASSIGN(Parser); | 893 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 893 }; | 894 }; |
| 894 | 895 |
| 895 } // namespace dart | 896 } // namespace dart |
| 896 | 897 |
| 897 #endif // VM_PARSER_H_ | 898 #endif // VM_PARSER_H_ |
| OLD | NEW |