OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |