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

Unified Diff: runtime/vm/kernel_reader.h

Issue 2777963002: VM [KERNEL] Fix performance issue in KernelReader (Closed)
Patch Set: 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..520c61e1b7e401753548714f563d6e9ee0b9aa3a 100644
--- a/runtime/vm/kernel_reader.h
+++ b/runtime/vm/kernel_reader.h
@@ -76,7 +76,10 @@ class KernelReader {
void ReadProcedure(const dart::Library& library,
const dart::Class& owner,
Procedure* procedure,
- Class* kernel_klass = NULL);
+ Class* kernel_klass,
+ GrowableArray<const dart::Function*>* functions);
+
+ RawArray* MakeFunctionsArray(GrowableArray<const dart::Function*>* functions);
// If klass's script is not the script at the uri index, return a PatchClass
// for klass whose script corresponds to the uri index.
@@ -87,7 +90,8 @@ class KernelReader {
void GenerateFieldAccessors(const dart::Class& klass,
const dart::Field& field,
- Field* kernel_field);
+ Field* kernel_field,
+ GrowableArray<const dart::Function*>* functions);
void SetupFieldAccessorFunction(const dart::Class& klass,
const dart::Function& function);
« 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