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

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

Issue 11228022: Cache parsed functions when inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: virtual Created 8 years, 2 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 | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/parser_test.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 10 matching lines...) Expand all
21 21
22 struct TopLevel; 22 struct TopLevel;
23 class ClassDesc; 23 class ClassDesc;
24 struct MemberDesc; 24 struct MemberDesc;
25 struct ParamList; 25 struct ParamList;
26 struct QualIdent; 26 struct QualIdent;
27 struct CatchParamDesc; 27 struct CatchParamDesc;
28 struct FieldInitExpression; 28 struct FieldInitExpression;
29 29
30 // The class ParsedFunction holds the result of parsing a function. 30 // The class ParsedFunction holds the result of parsing a function.
31 class ParsedFunction : public ValueObject { 31 class ParsedFunction : public ZoneAllocated {
32 public: 32 public:
33 static const int kFirstLocalSlotIndex = -2; 33 static const int kFirstLocalSlotIndex = -2;
34 34
35 explicit ParsedFunction(const Function& function) 35 explicit ParsedFunction(const Function& function)
36 : function_(function), 36 : function_(function),
37 node_sequence_(NULL), 37 node_sequence_(NULL),
38 instantiator_(NULL), 38 instantiator_(NULL),
39 default_parameter_values_(Array::Handle()), 39 default_parameter_values_(Array::Handle()),
40 saved_context_var_(NULL), 40 saved_context_var_(NULL),
41 expression_temp_var_(NULL), 41 expression_temp_var_(NULL),
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 609
610 // Allocate temporary only once per function. 610 // Allocate temporary only once per function.
611 LocalVariable* expression_temp_; 611 LocalVariable* expression_temp_;
612 612
613 DISALLOW_COPY_AND_ASSIGN(Parser); 613 DISALLOW_COPY_AND_ASSIGN(Parser);
614 }; 614 };
615 615
616 } // namespace dart 616 } // namespace dart
617 617
618 #endif // VM_PARSER_H_ 618 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698