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 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1847 runtime_profiler_->SetUp(); | 1847 runtime_profiler_->SetUp(); |
1848 | 1848 |
1849 // If we are deserializing, log non-function code objects and compiled | 1849 // If we are deserializing, log non-function code objects and compiled |
1850 // functions found in the snapshot. | 1850 // functions found in the snapshot. |
1851 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { | 1851 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { |
1852 HandleScope scope; | 1852 HandleScope scope; |
1853 LOG(this, LogCodeObjects()); | 1853 LOG(this, LogCodeObjects()); |
1854 LOG(this, LogCompiledFunctions()); | 1854 LOG(this, LogCompiledFunctions()); |
1855 } | 1855 } |
1856 | 1856 |
1857 CHECK(OFFSET_OF(Isolate, state_) == Internals::kIsolateStateOffset); | |
1858 CHECK(OFFSET_OF(Isolate, heap_.roots_) == Internals::kIsolateRootsOffset); | |
1859 | |
1860 state_ = INITIALIZED; | 1857 state_ = INITIALIZED; |
1861 time_millis_at_init_ = OS::TimeCurrentMillis(); | 1858 time_millis_at_init_ = OS::TimeCurrentMillis(); |
1862 return true; | 1859 return true; |
1863 } | 1860 } |
1864 | 1861 |
1865 | 1862 |
1866 // Initialized lazily to allow early | 1863 // Initialized lazily to allow early |
1867 // v8::V8::SetAddHistogramSampleFunction calls. | 1864 // v8::V8::SetAddHistogramSampleFunction calls. |
1868 StatsTable* Isolate::stats_table() { | 1865 StatsTable* Isolate::stats_table() { |
1869 if (stats_table_ == NULL) { | 1866 if (stats_table_ == NULL) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 | 1941 |
1945 #ifdef DEBUG | 1942 #ifdef DEBUG |
1946 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 1943 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
1947 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 1944 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
1948 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1945 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
1949 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1946 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
1950 #undef ISOLATE_FIELD_OFFSET | 1947 #undef ISOLATE_FIELD_OFFSET |
1951 #endif | 1948 #endif |
1952 | 1949 |
1953 } } // namespace v8::internal | 1950 } } // namespace v8::internal |
OLD | NEW |