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

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

Issue 956583003: Save exception and stack trace variables in async catch clauses and use them (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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
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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 RawClass* CheckCaseExpressions(const GrowableArray<LiteralNode*>& values); 595 RawClass* CheckCaseExpressions(const GrowableArray<LiteralNode*>& values);
596 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value, 596 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value,
597 GrowableArray<LiteralNode*>* case_expr_values, 597 GrowableArray<LiteralNode*>* case_expr_values,
598 SourceLabel* case_label); 598 SourceLabel* case_label);
599 AstNode* ParseSwitchStatement(String* label_name); 599 AstNode* ParseSwitchStatement(String* label_name);
600 600
601 // try/catch/finally parsing. 601 // try/catch/finally parsing.
602 void AddCatchParamsToScope(CatchParamDesc* exception_param, 602 void AddCatchParamsToScope(CatchParamDesc* exception_param,
603 CatchParamDesc* stack_trace_param, 603 CatchParamDesc* stack_trace_param,
604 LocalScope* scope); 604 LocalScope* scope);
605 void AddSavedExceptionAndStacktraceToScope(LocalVariable* exception_var,
606 LocalVariable* stack_trace_var,
607 LocalScope* scope);
605 // Parse all the catch clause of a try. 608 // Parse all the catch clause of a try.
606 SequenceNode* ParseCatchClauses(intptr_t handler_pos, 609 SequenceNode* ParseCatchClauses(intptr_t handler_pos,
607 LocalVariable* exception_var, 610 LocalVariable* exception_var,
608 LocalVariable* stack_trace_var, 611 LocalVariable* stack_trace_var,
609 const GrowableObjectArray& handler_types, 612 const GrowableObjectArray& handler_types,
610 bool* needs_stack_trace); 613 bool* needs_stack_trace);
611 // Parse finally block and create an AST for it. 614 // Parse finally block and create an AST for it.
612 SequenceNode* ParseFinallyBlock(); 615 SequenceNode* ParseFinallyBlock();
613 // Adds try block to the list of try blocks seen so far. 616 // Adds try block to the list of try blocks seen so far.
614 void PushTryBlock(Block* try_block); 617 void PushTryBlock(Block* try_block);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 844
842 // Indentation of parser trace. 845 // Indentation of parser trace.
843 intptr_t trace_indent_; 846 intptr_t trace_indent_;
844 847
845 DISALLOW_COPY_AND_ASSIGN(Parser); 848 DISALLOW_COPY_AND_ASSIGN(Parser);
846 }; 849 };
847 850
848 } // namespace dart 851 } // namespace dart
849 852
850 #endif // VM_PARSER_H_ 853 #endif // VM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698