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

Side by Side Diff: src/isolate.cc

Issue 9910029: MIPS: Fix NaN value inconsistency with snapshots (alternate implementation). (Closed)
Patch Set: Created 8 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/runtime.h » ('j') | src/runtime.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 stub_cache_->Initialize(); 1866 stub_cache_->Initialize();
1867 1867
1868 // Finish initialization of ThreadLocal after deserialization is done. 1868 // Finish initialization of ThreadLocal after deserialization is done.
1869 clear_pending_exception(); 1869 clear_pending_exception();
1870 clear_pending_message(); 1870 clear_pending_message();
1871 clear_scheduled_exception(); 1871 clear_scheduled_exception();
1872 1872
1873 // Deserializing may put strange things in the root array's copy of the 1873 // Deserializing may put strange things in the root array's copy of the
1874 // stack guard. 1874 // stack guard.
1875 heap_.SetStackLimits(); 1875 heap_.SetStackLimits();
1876 #ifdef __mips__
1877 // Reset NaN value which is incorrect for MIPS when snapshot is generated
1878 // on simulator.
1879 if(des != NULL) {
1880 heap_.nan_value()->set_value(OS::nan_value());
1881 }
1882 #endif
1876 1883
1877 deoptimizer_data_ = new DeoptimizerData; 1884 deoptimizer_data_ = new DeoptimizerData;
1878 runtime_profiler_ = new RuntimeProfiler(this); 1885 runtime_profiler_ = new RuntimeProfiler(this);
1879 runtime_profiler_->SetUp(); 1886 runtime_profiler_->SetUp();
1880 1887
1881 // If we are deserializing, log non-function code objects and compiled 1888 // If we are deserializing, log non-function code objects and compiled
1882 // functions found in the snapshot. 1889 // functions found in the snapshot.
1883 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { 1890 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) {
1884 HandleScope scope; 1891 HandleScope scope;
1885 LOG(this, LogCodeObjects()); 1892 LOG(this, LogCodeObjects());
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 1980
1974 #ifdef DEBUG 1981 #ifdef DEBUG
1975 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1982 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1976 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 1983 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
1977 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1984 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1978 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1985 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1979 #undef ISOLATE_FIELD_OFFSET 1986 #undef ISOLATE_FIELD_OFFSET
1980 #endif 1987 #endif
1981 1988
1982 } } // namespace v8::internal 1989 } } // namespace v8::internal
OLDNEW
« 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