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 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 // Finish initialization of ThreadLocal after deserialization is done. | 1876 // Finish initialization of ThreadLocal after deserialization is done. |
1877 clear_pending_exception(); | 1877 clear_pending_exception(); |
1878 clear_pending_message(); | 1878 clear_pending_message(); |
1879 clear_scheduled_exception(); | 1879 clear_scheduled_exception(); |
1880 | 1880 |
1881 // Deserializing may put strange things in the root array's copy of the | 1881 // Deserializing may put strange things in the root array's copy of the |
1882 // stack guard. | 1882 // stack guard. |
1883 heap_.SetStackLimits(); | 1883 heap_.SetStackLimits(); |
1884 | 1884 |
1885 // Quiet the heap NaN if needed on target platform. | 1885 // Quiet the heap NaN if needed on target platform. |
1886 if (create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); | 1886 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); |
1887 | 1887 |
1888 deoptimizer_data_ = new DeoptimizerData; | 1888 deoptimizer_data_ = new DeoptimizerData; |
1889 runtime_profiler_ = new RuntimeProfiler(this); | 1889 runtime_profiler_ = new RuntimeProfiler(this); |
1890 runtime_profiler_->SetUp(); | 1890 runtime_profiler_->SetUp(); |
1891 | 1891 |
1892 // If we are deserializing, log non-function code objects and compiled | 1892 // If we are deserializing, log non-function code objects and compiled |
1893 // functions found in the snapshot. | 1893 // functions found in the snapshot. |
1894 if (create_heap_objects && (FLAG_log_code || FLAG_ll_prof)) { | 1894 if (create_heap_objects && (FLAG_log_code || FLAG_ll_prof)) { |
1895 HandleScope scope; | 1895 HandleScope scope; |
1896 LOG(this, LogCodeObjects()); | 1896 LOG(this, LogCodeObjects()); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 | 1991 |
1992 #ifdef DEBUG | 1992 #ifdef DEBUG |
1993 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 1993 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
1994 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 1994 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
1995 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1995 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
1996 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1996 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
1997 #undef ISOLATE_FIELD_OFFSET | 1997 #undef ISOLATE_FIELD_OFFSET |
1998 #endif | 1998 #endif |
1999 | 1999 |
2000 } } // namespace v8::internal | 2000 } } // namespace v8::internal |
OLD | NEW |