Chromium Code Reviews| 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(); |
| } |