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:
mbrandy 2016-03-09 06:36:24 -08:00 committed by Commit bot
parent 209eb337b1
commit 40a9b8d170

View File

@ -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());