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 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 | 1827 |
1828 // If we are deserializing, log non-function code objects and compiled | 1828 // If we are deserializing, log non-function code objects and compiled |
1829 // functions found in the snapshot. | 1829 // functions found in the snapshot. |
1830 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { | 1830 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { |
1831 HandleScope scope; | 1831 HandleScope scope; |
1832 LOG(this, LogCodeObjects()); | 1832 LOG(this, LogCodeObjects()); |
1833 LOG(this, LogCompiledFunctions()); | 1833 LOG(this, LogCompiledFunctions()); |
1834 } | 1834 } |
1835 | 1835 |
1836 state_ = INITIALIZED; | 1836 state_ = INITIALIZED; |
| 1837 time_millis_at_init_ = OS::TimeCurrentMillis(); |
1837 return true; | 1838 return true; |
1838 } | 1839 } |
1839 | 1840 |
1840 | 1841 |
1841 // Initialized lazily to allow early | 1842 // Initialized lazily to allow early |
1842 // v8::V8::SetAddHistogramSampleFunction calls. | 1843 // v8::V8::SetAddHistogramSampleFunction calls. |
1843 StatsTable* Isolate::stats_table() { | 1844 StatsTable* Isolate::stats_table() { |
1844 if (stats_table_ == NULL) { | 1845 if (stats_table_ == NULL) { |
1845 stats_table_ = new StatsTable; | 1846 stats_table_ = new StatsTable; |
1846 } | 1847 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 | 1920 |
1920 #ifdef DEBUG | 1921 #ifdef DEBUG |
1921 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 1922 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
1922 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 1923 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
1923 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1924 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
1924 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1925 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
1925 #undef ISOLATE_FIELD_OFFSET | 1926 #undef ISOLATE_FIELD_OFFSET |
1926 #endif | 1927 #endif |
1927 | 1928 |
1928 } } // namespace v8::internal | 1929 } } // namespace v8::internal |
OLD | NEW |