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 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 descriptor_lookup_cache_(NULL), | 1767 descriptor_lookup_cache_(NULL), |
1768 handle_scope_implementer_(NULL), | 1768 handle_scope_implementer_(NULL), |
1769 unicode_cache_(NULL), | 1769 unicode_cache_(NULL), |
1770 runtime_zone_(this), | 1770 runtime_zone_(this), |
1771 in_use_list_(0), | 1771 in_use_list_(0), |
1772 free_list_(0), | 1772 free_list_(0), |
1773 preallocated_storage_preallocated_(false), | 1773 preallocated_storage_preallocated_(false), |
1774 inner_pointer_to_code_cache_(NULL), | 1774 inner_pointer_to_code_cache_(NULL), |
1775 write_iterator_(NULL), | 1775 write_iterator_(NULL), |
1776 global_handles_(NULL), | 1776 global_handles_(NULL), |
1777 eternal_handles_(NULL), | |
1778 context_switcher_(NULL), | 1777 context_switcher_(NULL), |
1779 thread_manager_(NULL), | 1778 thread_manager_(NULL), |
1780 fp_stubs_generated_(false), | 1779 fp_stubs_generated_(false), |
1781 has_installed_extensions_(false), | 1780 has_installed_extensions_(false), |
1782 string_tracker_(NULL), | 1781 string_tracker_(NULL), |
1783 regexp_stack_(NULL), | 1782 regexp_stack_(NULL), |
1784 date_cache_(NULL), | 1783 date_cache_(NULL), |
1785 code_stub_interface_descriptors_(NULL), | 1784 code_stub_interface_descriptors_(NULL), |
1786 context_exit_happened_(false), | 1785 context_exit_happened_(false), |
1787 initialized_from_snapshot_(false), | 1786 initialized_from_snapshot_(false), |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2046 | 2045 |
2047 delete string_tracker_; | 2046 delete string_tracker_; |
2048 string_tracker_ = NULL; | 2047 string_tracker_ = NULL; |
2049 | 2048 |
2050 delete memory_allocator_; | 2049 delete memory_allocator_; |
2051 memory_allocator_ = NULL; | 2050 memory_allocator_ = NULL; |
2052 delete code_range_; | 2051 delete code_range_; |
2053 code_range_ = NULL; | 2052 code_range_ = NULL; |
2054 delete global_handles_; | 2053 delete global_handles_; |
2055 global_handles_ = NULL; | 2054 global_handles_ = NULL; |
2056 delete eternal_handles_; | |
2057 eternal_handles_ = NULL; | |
2058 | 2055 |
2059 delete string_stream_debug_object_cache_; | 2056 delete string_stream_debug_object_cache_; |
2060 string_stream_debug_object_cache_ = NULL; | 2057 string_stream_debug_object_cache_ = NULL; |
2061 | 2058 |
2062 delete external_reference_table_; | 2059 delete external_reference_table_; |
2063 external_reference_table_ = NULL; | 2060 external_reference_table_ = NULL; |
2064 | 2061 |
2065 delete callback_table_; | 2062 delete callback_table_; |
2066 callback_table_ = NULL; | 2063 callback_table_ = NULL; |
2067 | 2064 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2179 string_tracker_->isolate_ = this; | 2176 string_tracker_->isolate_ = this; |
2180 compilation_cache_ = new CompilationCache(this); | 2177 compilation_cache_ = new CompilationCache(this); |
2181 transcendental_cache_ = new TranscendentalCache(); | 2178 transcendental_cache_ = new TranscendentalCache(); |
2182 keyed_lookup_cache_ = new KeyedLookupCache(); | 2179 keyed_lookup_cache_ = new KeyedLookupCache(); |
2183 context_slot_cache_ = new ContextSlotCache(); | 2180 context_slot_cache_ = new ContextSlotCache(); |
2184 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 2181 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
2185 unicode_cache_ = new UnicodeCache(); | 2182 unicode_cache_ = new UnicodeCache(); |
2186 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); | 2183 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); |
2187 write_iterator_ = new ConsStringIteratorOp(); | 2184 write_iterator_ = new ConsStringIteratorOp(); |
2188 global_handles_ = new GlobalHandles(this); | 2185 global_handles_ = new GlobalHandles(this); |
2189 eternal_handles_ = new EternalHandles(); | |
2190 bootstrapper_ = new Bootstrapper(this); | 2186 bootstrapper_ = new Bootstrapper(this); |
2191 handle_scope_implementer_ = new HandleScopeImplementer(this); | 2187 handle_scope_implementer_ = new HandleScopeImplementer(this); |
2192 stub_cache_ = new StubCache(this); | 2188 stub_cache_ = new StubCache(this); |
2193 regexp_stack_ = new RegExpStack(); | 2189 regexp_stack_ = new RegExpStack(); |
2194 regexp_stack_->isolate_ = this; | 2190 regexp_stack_->isolate_ = this; |
2195 date_cache_ = new DateCache(); | 2191 date_cache_ = new DateCache(); |
2196 code_stub_interface_descriptors_ = | 2192 code_stub_interface_descriptors_ = |
2197 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; | 2193 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; |
2198 cpu_profiler_ = new CpuProfiler(this); | 2194 cpu_profiler_ = new CpuProfiler(this); |
2199 heap_profiler_ = new HeapProfiler(heap()); | 2195 heap_profiler_ = new HeapProfiler(heap()); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2526 | 2522 |
2527 #ifdef DEBUG | 2523 #ifdef DEBUG |
2528 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2524 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2529 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2525 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2530 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2526 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2531 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2527 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2532 #undef ISOLATE_FIELD_OFFSET | 2528 #undef ISOLATE_FIELD_OFFSET |
2533 #endif | 2529 #endif |
2534 | 2530 |
2535 } } // namespace v8::internal | 2531 } } // namespace v8::internal |
OLD | NEW |