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

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

Issue 1024563004: Compile implicit closures as dispatchers instead of duplicating the original method's code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased Created 5 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 | « runtime/vm/object.cc ('k') | runtime/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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 519
520 SequenceNode* ParseInstanceGetter(const Function& func); 520 SequenceNode* ParseInstanceGetter(const Function& func);
521 SequenceNode* ParseInstanceSetter(const Function& func); 521 SequenceNode* ParseInstanceSetter(const Function& func);
522 SequenceNode* ParseStaticFinalGetter(const Function& func); 522 SequenceNode* ParseStaticFinalGetter(const Function& func);
523 SequenceNode* ParseStaticInitializer(); 523 SequenceNode* ParseStaticInitializer();
524 SequenceNode* ParseMethodExtractor(const Function& func); 524 SequenceNode* ParseMethodExtractor(const Function& func);
525 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, 525 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func,
526 Array* default_values); 526 Array* default_values);
527 SequenceNode* ParseInvokeFieldDispatcher(const Function& func, 527 SequenceNode* ParseInvokeFieldDispatcher(const Function& func,
528 Array* default_values); 528 Array* default_values);
529 SequenceNode* ParseImplicitClosure(const Function& func,
530 Array* default_values);
529 531
530 void BuildDispatcherScope(const Function& func, 532 void BuildDispatcherScope(const Function& func,
531 const ArgumentsDescriptor& desc, 533 const ArgumentsDescriptor& desc,
532 Array* default_values); 534 Array* default_values);
533 535
534 void ChainNewBlock(LocalScope* outer_scope); 536 void ChainNewBlock(LocalScope* outer_scope);
535 void OpenBlock(); 537 void OpenBlock();
536 void OpenLoopBlock(); 538 void OpenLoopBlock();
537 void OpenFunctionBlock(const Function& func); 539 void OpenFunctionBlock(const Function& func);
538 void OpenAsyncClosure(); 540 void OpenAsyncClosure();
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 860
859 // Indentation of parser trace. 861 // Indentation of parser trace.
860 intptr_t trace_indent_; 862 intptr_t trace_indent_;
861 863
862 DISALLOW_COPY_AND_ASSIGN(Parser); 864 DISALLOW_COPY_AND_ASSIGN(Parser);
863 }; 865 };
864 866
865 } // namespace dart 867 } // namespace dart
866 868
867 #endif // VM_PARSER_H_ 869 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698