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

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

Issue 3003583002: [VM, Precompiler] PoC Obfuscator (Closed)
Patch Set: Fix bad refactoring in NewAtomicRename Created 3 years, 3 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
« no previous file with comments | « runtime/vm/object_store.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 RUNTIME_VM_PARSER_H_ 5 #ifndef RUNTIME_VM_PARSER_H_
6 #define RUNTIME_VM_PARSER_H_ 6 #define RUNTIME_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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 // Report warning message at given location in current script. 481 // Report warning message at given location in current script.
482 void ReportWarning(TokenPosition token_pos, const char* msg, ...) const 482 void ReportWarning(TokenPosition token_pos, const char* msg, ...) const
483 PRINTF_ATTRIBUTE(3, 4); 483 PRINTF_ATTRIBUTE(3, 4);
484 484
485 void CheckRecursiveInvocation(); 485 void CheckRecursiveInvocation();
486 486
487 const Instance& EvaluateConstExpr(TokenPosition expr_pos, AstNode* expr); 487 const Instance& EvaluateConstExpr(TokenPosition expr_pos, AstNode* expr);
488 StaticGetterNode* RunStaticFieldInitializer(const Field& field, 488 StaticGetterNode* RunStaticFieldInitializer(const Field& field,
489 TokenPosition field_ref_pos); 489 TokenPosition field_ref_pos);
490 RawObject* EvaluateConstConstructorCall(const Class& type_class, 490 RawObject* EvaluateConstConstructorCall(
491 const TypeArguments& type_arguments, 491 const Class& type_class,
492 const Function& constructor, 492 const TypeArguments& type_arguments,
493 ArgumentListNode* arguments); 493 const Function& constructor,
494 ArgumentListNode* arguments,
495 bool obfuscate_symbol_instances = true);
494 LiteralNode* FoldConstExpr(TokenPosition expr_pos, AstNode* expr); 496 LiteralNode* FoldConstExpr(TokenPosition expr_pos, AstNode* expr);
495 497
496 // Support for parsing of scripts. 498 // Support for parsing of scripts.
497 void ParseTopLevel(); 499 void ParseTopLevel();
498 void ParseEnumDeclaration(const GrowableObjectArray& pending_classes, 500 void ParseEnumDeclaration(const GrowableObjectArray& pending_classes,
499 const Object& tl_owner, 501 const Object& tl_owner,
500 TokenPosition metadata_pos); 502 TokenPosition metadata_pos);
501 void ParseEnumDefinition(const Class& cls); 503 void ParseEnumDefinition(const Class& cls);
502 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, 504 void ParseClassDeclaration(const GrowableObjectArray& pending_classes,
503 const Object& tl_owner, 505 const Object& tl_owner,
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 1029
1028 intptr_t recursion_counter_; 1030 intptr_t recursion_counter_;
1029 friend class RecursionChecker; 1031 friend class RecursionChecker;
1030 1032
1031 DISALLOW_COPY_AND_ASSIGN(Parser); 1033 DISALLOW_COPY_AND_ASSIGN(Parser);
1032 }; 1034 };
1033 1035
1034 } // namespace dart 1036 } // namespace dart
1035 1037
1036 #endif // RUNTIME_VM_PARSER_H_ 1038 #endif // RUNTIME_VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698