| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| index 0b3534e86f09c89c06e389f70423c10252793a18..b08da6ca5bc2231cb1bf1aaf62ecde91463856a5 100644
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -11,6 +11,7 @@
|
| #include "src/deoptimizer.h"
|
| #include "src/frames-inl.h"
|
| #include "src/full-codegen/full-codegen.h"
|
| +#include "src/register-configuration.h"
|
| #include "src/safepoint-table.h"
|
| #include "src/scopeinfo.h"
|
| #include "src/string-stream.h"
|
| @@ -643,8 +644,9 @@ void StandardFrame::IterateCompiledFrame(ObjectVisitor* v) const {
|
| if (safepoint_entry.has_doubles()) {
|
| // Number of doubles not known at snapshot time.
|
| DCHECK(!isolate()->serializer_enabled());
|
| - parameters_base += DoubleRegister::NumAllocatableRegisters() *
|
| - kDoubleSize / kPointerSize;
|
| + parameters_base += RegisterConfiguration::ArchDefault()
|
| + ->num_allocatable_double_registers() *
|
| + kDoubleSize / kPointerSize;
|
| }
|
|
|
| // Visit the registers that contain pointers if any.
|
|
|