| 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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1895 | 1895 |
| 1896 // Quiet the heap NaN if needed on target platform. | 1896 // Quiet the heap NaN if needed on target platform. |
| 1897 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); | 1897 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); |
| 1898 | 1898 |
| 1899 deoptimizer_data_ = new DeoptimizerData; | 1899 deoptimizer_data_ = new DeoptimizerData; |
| 1900 runtime_profiler_ = new RuntimeProfiler(this); | 1900 runtime_profiler_ = new RuntimeProfiler(this); |
| 1901 runtime_profiler_->SetUp(); | 1901 runtime_profiler_->SetUp(); |
| 1902 | 1902 |
| 1903 // If we are deserializing, log non-function code objects and compiled | 1903 // If we are deserializing, log non-function code objects and compiled |
| 1904 // functions found in the snapshot. | 1904 // functions found in the snapshot. |
| 1905 if (create_heap_objects && | 1905 if (create_heap_objects && (FLAG_log_code || FLAG_ll_prof)) { |
| 1906 (FLAG_log_code || FLAG_ll_prof || logger_->is_logging_code_events())) { | |
| 1907 HandleScope scope; | 1906 HandleScope scope; |
| 1908 LOG(this, LogCodeObjects()); | 1907 LOG(this, LogCodeObjects()); |
| 1909 LOG(this, LogCompiledFunctions()); | 1908 LOG(this, LogCompiledFunctions()); |
| 1910 } | 1909 } |
| 1911 | 1910 |
| 1912 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, state_)), | 1911 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, state_)), |
| 1913 Internals::kIsolateStateOffset); | 1912 Internals::kIsolateStateOffset); |
| 1914 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), | 1913 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), |
| 1915 Internals::kIsolateEmbedderDataOffset); | 1914 Internals::kIsolateEmbedderDataOffset); |
| 1916 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), | 1915 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2034 | 2033 |
| 2035 #ifdef DEBUG | 2034 #ifdef DEBUG |
| 2036 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2035 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2037 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2036 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2038 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2037 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2039 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2038 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2040 #undef ISOLATE_FIELD_OFFSET | 2039 #undef ISOLATE_FIELD_OFFSET |
| 2041 #endif | 2040 #endif |
| 2042 | 2041 |
| 2043 } } // namespace v8::internal | 2042 } } // namespace v8::internal |
| OLD | NEW |