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

Side by Side Diff: vm/parser.h

Issue 9594028: Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots w… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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 | « vm/object_test.cc ('k') | vm/parser.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_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 "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void RunStaticFieldInitializer(const Field& field); 208 void RunStaticFieldInitializer(const Field& field);
209 RawObject* EvaluateConstConstructorCall( 209 RawObject* EvaluateConstConstructorCall(
210 const Class& type_class, 210 const Class& type_class,
211 const AbstractTypeArguments& type_arguments, 211 const AbstractTypeArguments& type_arguments,
212 const Function& constructor, 212 const Function& constructor,
213 ArgumentListNode* arguments); 213 ArgumentListNode* arguments);
214 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); 214 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr);
215 215
216 // Support for parsing of scripts. 216 // Support for parsing of scripts.
217 void ParseTopLevel(); 217 void ParseTopLevel();
218 void ParseClassDefinition(GrowableArray<const Class*>* classes); 218 void ParseClassDefinition(const GrowableObjectArray& pending_classes);
219 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); 219 void ParseInterfaceDefinition(const GrowableObjectArray& pending_classes);
220 void ParseFunctionTypeAlias(GrowableArray<const Class*>* classes); 220 void ParseFunctionTypeAlias(const GrowableObjectArray& pending_classes);
221 void ParseTopLevelVariable(TopLevel* top_level); 221 void ParseTopLevelVariable(TopLevel* top_level);
222 void ParseTopLevelFunction(TopLevel* top_level); 222 void ParseTopLevelFunction(TopLevel* top_level);
223 void ParseTopLevelAccessor(TopLevel* top_level); 223 void ParseTopLevelAccessor(TopLevel* top_level);
224 224
225 // Support for parsing libraries. 225 // Support for parsing libraries.
226 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, 226 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag,
227 intptr_t token_pos, 227 intptr_t token_pos,
228 const String& url, 228 const String& url,
229 const Array& import_map); 229 const Array& import_map);
230 void ParseLibraryDefinition(); 230 void ParseLibraryDefinition();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // code at all points in the try block where an exit from the block is 476 // code at all points in the try block where an exit from the block is
477 // done using 'return', 'break' or 'continue' statements. 477 // done using 'return', 'break' or 'continue' statements.
478 TryBlocks* try_blocks_list_; 478 TryBlocks* try_blocks_list_;
479 479
480 DISALLOW_COPY_AND_ASSIGN(Parser); 480 DISALLOW_COPY_AND_ASSIGN(Parser);
481 }; 481 };
482 482
483 } // namespace dart 483 } // namespace dart
484 484
485 #endif // VM_PARSER_H_ 485 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « vm/object_test.cc ('k') | vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698