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

Unified Diff: runtime/vm/kernel_reader.h

Issue 2777963002: VM [KERNEL] Fix performance issue in KernelReader (Closed)
Patch Set: VM [KERNEL] Fix performance issue in KernelReader Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/kernel_reader.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_reader.h
diff --git a/runtime/vm/kernel_reader.h b/runtime/vm/kernel_reader.h
index 5912c3694d2e9dd3b4e37a2837ee8ebb103644d9..e2c42cb3c685d95890911660ba09e2812c9f1508 100644
--- a/runtime/vm/kernel_reader.h
+++ b/runtime/vm/kernel_reader.h
@@ -76,7 +76,9 @@ class KernelReader {
void ReadProcedure(const dart::Library& library,
const dart::Class& owner,
Procedure* procedure,
- Class* kernel_klass = NULL);
+ Class* kernel_klass);
+
+ RawArray* MakeFunctionsArray();
// If klass's script is not the script at the uri index, return a PatchClass
// for klass whose script corresponds to the uri index.
@@ -109,6 +111,9 @@ class KernelReader {
Mapping<CanonicalName, dart::Library> libraries_;
Mapping<CanonicalName, dart::Class> classes_;
+
+ GrowableArray<const dart::Function*> functions_;
+ GrowableArray<const dart::Field*> fields_;
};
} // namespace kernel
« no previous file with comments | « no previous file | runtime/vm/kernel_reader.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698