Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: src/isolate.cc

Issue 9910029: MIPS: Fix NaN value inconsistency with snapshots (alternate implementation). (Closed)
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/runtime.h » ('j') | src/runtime.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | src/runtime.h » ('j') | src/runtime.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698