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

Unified Diff: runtime/vm/profiler.h

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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 | « runtime/vm/precompiler.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.h
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h
index dcea1d4205dad835d52e892c588326c9041eb595..be4f0498a21597892dd3f5af43f8a9eed5201c60 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -423,7 +423,7 @@ class CodeDescriptor : public ZoneAllocated {
public:
explicit CodeDescriptor(const Code& code);
- uword Entry() const;
+ uword Start() const;
uword Size() const;
@@ -439,8 +439,8 @@ class CodeDescriptor : public ZoneAllocated {
}
bool Contains(uword pc) const {
- uword end = Entry() + Size();
- return (pc >= Entry()) && (pc < end);
+ uword end = Start() + Size();
+ return (pc >= Start()) && (pc < end);
}
static int Compare(CodeDescriptor* const* a,
@@ -448,12 +448,12 @@ class CodeDescriptor : public ZoneAllocated {
ASSERT(a != NULL);
ASSERT(b != NULL);
- uword a_entry = (*a)->Entry();
- uword b_entry = (*b)->Entry();
+ uword a_start = (*a)->Start();
+ uword b_start = (*b)->Start();
- if (a_entry < b_entry) {
+ if (a_start < b_start) {
return -1;
- } else if (a_entry > b_entry) {
+ } else if (a_start > b_start) {
return 1;
} else {
return 0;
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698