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

Side by Side Diff: vm/parser.h

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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.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 12 matching lines...) Expand all
23 struct ClassDesc; 23 struct 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 : ValueObject { 31 class ParsedFunction : ValueObject {
32 public: 32 public:
33 static const int kFirstLocalSlotIndex = -2;
34
33 explicit ParsedFunction(const Function& function) 35 explicit ParsedFunction(const Function& function)
34 : function_(function), 36 : function_(function),
35 node_sequence_(NULL), 37 node_sequence_(NULL),
36 instantiator_(NULL), 38 instantiator_(NULL),
37 default_parameter_values_(Array::Handle()), 39 default_parameter_values_(Array::Handle()),
38 saved_context_var_(NULL), 40 saved_context_var_(NULL),
39 expression_temp_var_(NULL), 41 expression_temp_var_(NULL),
40 first_parameter_index_(0), 42 first_parameter_index_(0),
41 first_stack_local_index_(0), 43 first_stack_local_index_(0),
42 copied_parameter_count_(0), 44 copied_parameter_count_(0),
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 529
528 // Allocate temporary only once per function. 530 // Allocate temporary only once per function.
529 LocalVariable* expression_temp_; 531 LocalVariable* expression_temp_;
530 532
531 DISALLOW_COPY_AND_ASSIGN(Parser); 533 DISALLOW_COPY_AND_ASSIGN(Parser);
532 }; 534 };
533 535
534 } // namespace dart 536 } // namespace dart
535 537
536 #endif // VM_PARSER_H_ 538 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « vm/object.cc ('k') | vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698