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

Unified Diff: runtime/vm/profiler.cc

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . 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
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index b8827c58e7f1109068c6035ea041db8114e01ae2..96a99e53d59da92bb8d34814b4e2e8d0d70a6991 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -203,14 +203,14 @@ class ReturnAddressLocator : public ValueObject {
// Returns offset into code object.
intptr_t RelativePC() {
- ASSERT(pc() >= code_.EntryPoint());
- return static_cast<intptr_t>(pc() - code_.EntryPoint());
+ ASSERT(pc() >= code_.PayloadStart());
+ return static_cast<intptr_t>(pc() - code_.PayloadStart());
}
uint8_t* CodePointer(intptr_t offset) {
const intptr_t size = code_.Size();
ASSERT(offset < size);
- uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code_.EntryPoint());
+ uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code_.PayloadStart());
code_pointer += offset;
return code_pointer;
}
@@ -1262,7 +1262,8 @@ CodeDescriptor::CodeDescriptor(const Code& code) : code_(code) {
uword CodeDescriptor::Entry() const {
- return code_.EntryPoint();
+ // BOGUS?
Florian Schneider 2016/08/10 02:32:14 Left-over?
rmacnak 2016/08/11 00:17:49 Renamed as Start
+ return code_.PayloadStart();
}

Powered by Google App Engine
This is Rietveld 408576698