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

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

Issue 2587673004: Include source in kernel. (Closed)
Patch Set: Fixed some rebase errors 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/vm/kernel_binary.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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void ReadProcedure(const dart::Library& library, 77 void ReadProcedure(const dart::Library& library,
78 const dart::Class& owner, 78 const dart::Class& owner,
79 Procedure* procedure, 79 Procedure* procedure,
80 Class* kernel_klass = NULL); 80 Class* kernel_klass = NULL);
81 81
82 // If klass's script is not the script at the uri index, return a PatchClass 82 // If klass's script is not the script at the uri index, return a PatchClass
83 // for klass whose script corresponds to the uri index. 83 // for klass whose script corresponds to the uri index.
84 // Otherwise return klass. 84 // Otherwise return klass.
85 const Object& ClassForScriptAt(const dart::Class& klass, 85 const Object& ClassForScriptAt(const dart::Class& klass,
86 intptr_t source_uri_index); 86 intptr_t source_uri_index);
87 Script& ScriptAt(intptr_t source_uri_index); 87 Script& ScriptAt(intptr_t source_uri_index, String* import_uri = NULL);
88 88
89 void GenerateFieldAccessors(const dart::Class& klass, 89 void GenerateFieldAccessors(const dart::Class& klass,
90 const dart::Field& field, 90 const dart::Field& field,
91 Field* kernel_field); 91 Field* kernel_field);
92 92
93 void SetupFieldAccessorFunction(const dart::Class& klass, 93 void SetupFieldAccessorFunction(const dart::Class& klass,
94 const dart::Function& function); 94 const dart::Function& function);
95 95
96 dart::Library& LookupLibrary(Library* library); 96 dart::Library& LookupLibrary(Library* library);
97 dart::Class& LookupClass(Class* klass); 97 dart::Class& LookupClass(Class* klass);
(...skipping 12 matching lines...) Expand all
110 110
111 Mapping<Library, dart::Library> libraries_; 111 Mapping<Library, dart::Library> libraries_;
112 Mapping<Class, dart::Class> classes_; 112 Mapping<Class, dart::Class> classes_;
113 }; 113 };
114 114
115 } // namespace kernel 115 } // namespace kernel
116 } // namespace dart 116 } // namespace dart
117 117
118 #endif // !defined(DART_PRECOMPILED_RUNTIME) 118 #endif // !defined(DART_PRECOMPILED_RUNTIME)
119 #endif // RUNTIME_VM_KERNEL_READER_H_ 119 #endif // RUNTIME_VM_KERNEL_READER_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698