Fix "[runtime] Unify and simplify how frames are marked" for embedded constant pools.
Avoid hard-coding fp offset to marker in StandardFrame::IterateCompiledFrame. R=danno@chromium.org, michael_dawson@ca.ibm.com BUG= Review URL: https://codereview.chromium.org/1775193002 Cr-Commit-Position: refs/heads/master@{#34623}
This commit is contained in:
parent
209eb337b1
commit
40a9b8d170
@ -668,7 +668,8 @@ void StandardFrame::IterateCompiledFrame(ObjectVisitor* v) const {
|
||||
|
||||
// Determine the fixed header and spill slot area size.
|
||||
int frame_header_size = StandardFrameConstants::kFixedFrameSizeFromFp;
|
||||
Object* marker = Memory::Object_at(fp() - kPointerSize);
|
||||
Object* marker =
|
||||
Memory::Object_at(fp() + CommonFrameConstants::kContextOrFrameTypeOffset);
|
||||
if (marker->IsSmi()) {
|
||||
StackFrame::Type candidate =
|
||||
static_cast<StackFrame::Type>(Smi::cast(marker)->value());
|
||||
|
Loading…
Reference in New Issue
Block a user