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

Unified Diff: runtime/vm/object.h

Issue 1830473002: Speedup function profile by using a hash table instead of a linear scan (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index f95b4e82103e6fd35cd86f43aae409dc362f70d2..534436cb4a38d441b90b73c315680dd3bac9ab3f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2249,6 +2249,8 @@ class Function : public Object {
return OFFSET_OF(RawFunction, entry_point_);
}
+ virtual intptr_t Hash() const;
+
// Returns true if there is at least one debugger breakpoint
// set in this function.
bool HasBreakpoint() const;
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/profiler_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698