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

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

Issue 16780009: When canonicalize instances check if all fields are canonical. If a field is a non-canonical number… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 void EnsureSavedCurrentContext(); 622 void EnsureSavedCurrentContext();
623 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); 623 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs);
624 AstNode* InsertClosureCallNodes(AstNode* condition); 624 AstNode* InsertClosureCallNodes(AstNode* condition);
625 625
626 ConstructorCallNode* CreateConstructorCallNode( 626 ConstructorCallNode* CreateConstructorCallNode(
627 intptr_t token_pos, 627 intptr_t token_pos,
628 const AbstractTypeArguments& type_arguments, 628 const AbstractTypeArguments& type_arguments,
629 const Function& constructor, 629 const Function& constructor,
630 ArgumentListNode* arguments); 630 ArgumentListNode* arguments);
631 631
632 RawInstance* TryCanonicalize(const Instance& instance, intptr_t token_pos);
633
632 Isolate* isolate() const { return isolate_; } 634 Isolate* isolate() const { return isolate_; }
633 635
634 Isolate* isolate_; // Cached current isolate. 636 Isolate* isolate_; // Cached current isolate.
635 637
636 Script& script_; 638 Script& script_;
637 TokenStream::Iterator tokens_iterator_; 639 TokenStream::Iterator tokens_iterator_;
638 Token::Kind token_kind_; // Cached token kind for current token. 640 Token::Kind token_kind_; // Cached token kind for current token.
639 Block* current_block_; 641 Block* current_block_;
640 642
641 // is_top_level_ is true if parsing the "top level" of a compilation unit, 643 // is_top_level_ is true if parsing the "top level" of a compilation unit,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // code at all points in the try block where an exit from the block is 676 // code at all points in the try block where an exit from the block is
675 // done using 'return', 'break' or 'continue' statements. 677 // done using 'return', 'break' or 'continue' statements.
676 TryBlocks* try_blocks_list_; 678 TryBlocks* try_blocks_list_;
677 679
678 DISALLOW_COPY_AND_ASSIGN(Parser); 680 DISALLOW_COPY_AND_ASSIGN(Parser);
679 }; 681 };
680 682
681 } // namespace dart 683 } // namespace dart
682 684
683 #endif // VM_PARSER_H_ 685 #endif // VM_PARSER_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698