| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 625cc56727d72e9ad3f418fe5dce575c560613f9..418f882631928c38a7f757cb7ca432495a2e6e11 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1873,6 +1873,13 @@ bool Isolate::Init(Deserializer* des) {
|
| // Deserializing may put strange things in the root array's copy of the
|
| // stack guard.
|
| heap_.SetStackLimits();
|
| +#ifdef __mips__
|
| + // Reset NaN value which is incorrect for MIPS when snapshot is generated
|
| + // on simulator.
|
| + if(des != NULL) {
|
| + heap_.nan_value()->set_value(OS::nan_value());
|
| + }
|
| +#endif
|
|
|
| deoptimizer_data_ = new DeoptimizerData;
|
| runtime_profiler_ = new RuntimeProfiler(this);
|
|
|