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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1645 context_switcher_(NULL), | 1645 context_switcher_(NULL), |
1646 thread_manager_(NULL), | 1646 thread_manager_(NULL), |
1647 fp_stubs_generated_(false), | 1647 fp_stubs_generated_(false), |
1648 has_installed_extensions_(false), | 1648 has_installed_extensions_(false), |
1649 string_tracker_(NULL), | 1649 string_tracker_(NULL), |
1650 regexp_stack_(NULL), | 1650 regexp_stack_(NULL), |
1651 date_cache_(NULL), | 1651 date_cache_(NULL), |
1652 code_stub_interface_descriptors_(NULL), | 1652 code_stub_interface_descriptors_(NULL), |
1653 context_exit_happened_(false), | 1653 context_exit_happened_(false), |
1654 deferred_handles_head_(NULL), | 1654 deferred_handles_head_(NULL), |
1655 optimizing_compiler_thread_(this) { | 1655 optimizing_compiler_thread_(this), |
| 1656 sweeper_thread_(NULL) { |
1656 TRACE_ISOLATE(constructor); | 1657 TRACE_ISOLATE(constructor); |
1657 | 1658 |
1658 memset(isolate_addresses_, 0, | 1659 memset(isolate_addresses_, 0, |
1659 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); | 1660 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); |
1660 | 1661 |
1661 heap_.isolate_ = this; | 1662 heap_.isolate_ = this; |
1662 stack_guard_.isolate_ = this; | 1663 stack_guard_.isolate_ = this; |
1663 | 1664 |
1664 // ThreadManager is initialized early to support locking an isolate | 1665 // ThreadManager is initialized early to support locking an isolate |
1665 // before it is entered. | 1666 // before it is entered. |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 | 2246 |
2246 #ifdef DEBUG | 2247 #ifdef DEBUG |
2247 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2248 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2248 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2249 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2249 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2250 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2250 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2251 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2251 #undef ISOLATE_FIELD_OFFSET | 2252 #undef ISOLATE_FIELD_OFFSET |
2252 #endif | 2253 #endif |
2253 | 2254 |
2254 } } // namespace v8::internal | 2255 } } // namespace v8::internal |
OLD | NEW |