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

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

Issue 2632253002: VM: [Kernel] Partial support for metadata annotations (Closed)
Patch Set: Address comments Created 3 years, 11 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/lib/mirrors.cc ('k') | runtime/vm/kernel_reader.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_KERNEL_READER_H_ 5 #ifndef RUNTIME_VM_KERNEL_READER_H_
6 #define RUNTIME_VM_KERNEL_READER_H_ 6 #define RUNTIME_VM_KERNEL_READER_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME) 8 #if !defined(DART_PRECOMPILED_RUNTIME)
9 #include <map> 9 #include <map>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 FunctionNode* kernel_function, 63 FunctionNode* kernel_function,
64 bool is_method, 64 bool is_method,
65 bool is_closure); 65 bool is_closure);
66 66
67 void ReadLibrary(Library* kernel_library); 67 void ReadLibrary(Library* kernel_library);
68 68
69 private: 69 private:
70 friend class BuildingTranslationHelper; 70 friend class BuildingTranslationHelper;
71 71
72 void ReadPreliminaryClass(dart::Class* klass, Class* kernel_klass); 72 void ReadPreliminaryClass(dart::Class* klass, Class* kernel_klass);
73 dart::Class& ReadClass(const dart::Library& library, Class* kernel_klass); 73 dart::Class& ReadClass(const dart::Library& library,
74 const dart::Class& toplevel_class,
75 Class* kernel_klass);
74 void ReadProcedure(const dart::Library& library, 76 void ReadProcedure(const dart::Library& library,
75 const dart::Class& owner, 77 const dart::Class& owner,
76 Procedure* procedure, 78 Procedure* procedure,
77 Class* kernel_klass = NULL); 79 Class* kernel_klass = NULL);
78 80
79 // If klass's script is not the script at the uri index, return a PatchClass 81 // If klass's script is not the script at the uri index, return a PatchClass
80 // for klass whose script corresponds to the uri index. 82 // for klass whose script corresponds to the uri index.
81 // Otherwise return klass. 83 // Otherwise return klass.
82 const Object& ClassForScriptAt(const dart::Class& klass, 84 const Object& ClassForScriptAt(const dart::Class& klass,
83 intptr_t source_uri_index); 85 intptr_t source_uri_index);
(...skipping 23 matching lines...) Expand all
107 109
108 Mapping<Library, dart::Library> libraries_; 110 Mapping<Library, dart::Library> libraries_;
109 Mapping<Class, dart::Class> classes_; 111 Mapping<Class, dart::Class> classes_;
110 }; 112 };
111 113
112 } // namespace kernel 114 } // namespace kernel
113 } // namespace dart 115 } // namespace dart
114 116
115 #endif // !defined(DART_PRECOMPILED_RUNTIME) 117 #endif // !defined(DART_PRECOMPILED_RUNTIME)
116 #endif // RUNTIME_VM_KERNEL_READER_H_ 118 #endif // RUNTIME_VM_KERNEL_READER_H_
OLDNEW
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/kernel_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698