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

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

Issue 1037183003: Add the implicit return in the correct sequence node (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 | « no previous file | 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 529 SequenceNode* ParseImplicitClosure(const Function& func,
530 Array* default_values); 530 Array* default_values);
531 531
532 void BuildDispatcherScope(const Function& func, 532 void BuildDispatcherScope(const Function& func,
533 const ArgumentsDescriptor& desc, 533 const ArgumentsDescriptor& desc,
534 Array* default_values); 534 Array* default_values);
535 535
536 void EnsureHasReturnStatement(SequenceNode* seq, intptr_t return_pos);
536 void ChainNewBlock(LocalScope* outer_scope); 537 void ChainNewBlock(LocalScope* outer_scope);
537 void OpenBlock(); 538 void OpenBlock();
538 void OpenLoopBlock(); 539 void OpenLoopBlock();
539 void OpenFunctionBlock(const Function& func); 540 void OpenFunctionBlock(const Function& func);
540 void OpenAsyncClosure(); 541 void OpenAsyncClosure();
541 RawFunction* OpenAsyncFunction(intptr_t formal_param_pos); 542 RawFunction* OpenAsyncFunction(intptr_t formal_param_pos);
542 RawFunction* OpenSyncGeneratorFunction(intptr_t func_pos); 543 RawFunction* OpenSyncGeneratorFunction(intptr_t func_pos);
543 SequenceNode* CloseSyncGenFunction(const Function& closure, 544 SequenceNode* CloseSyncGenFunction(const Function& closure,
544 SequenceNode* closure_node); 545 SequenceNode* closure_node);
545 void AddSyncGenClosureParameters(ParamList* params); 546 void AddSyncGenClosureParameters(ParamList* params);
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 861
861 // Indentation of parser trace. 862 // Indentation of parser trace.
862 intptr_t trace_indent_; 863 intptr_t trace_indent_;
863 864
864 DISALLOW_COPY_AND_ASSIGN(Parser); 865 DISALLOW_COPY_AND_ASSIGN(Parser);
865 }; 866 };
866 867
867 } // namespace dart 868 } // namespace dart
868 869
869 #endif // VM_PARSER_H_ 870 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698