OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1628 descriptor_lookup_cache_(NULL), | 1628 descriptor_lookup_cache_(NULL), |
1629 handle_scope_implementer_(NULL), | 1629 handle_scope_implementer_(NULL), |
1630 unicode_cache_(NULL), | 1630 unicode_cache_(NULL), |
1631 runtime_zone_(this), | 1631 runtime_zone_(this), |
1632 inner_pointer_to_code_cache_(NULL), | 1632 inner_pointer_to_code_cache_(NULL), |
1633 global_handles_(NULL), | 1633 global_handles_(NULL), |
1634 eternal_handles_(NULL), | 1634 eternal_handles_(NULL), |
1635 thread_manager_(NULL), | 1635 thread_manager_(NULL), |
1636 has_installed_extensions_(false), | 1636 has_installed_extensions_(false), |
1637 string_tracker_(NULL), | 1637 string_tracker_(NULL), |
| 1638 cons_string_hashing_buffer_(nullptr), |
1638 regexp_stack_(NULL), | 1639 regexp_stack_(NULL), |
1639 date_cache_(NULL), | 1640 date_cache_(NULL), |
1640 call_descriptor_data_(NULL), | 1641 call_descriptor_data_(NULL), |
1641 // TODO(bmeurer) Initialized lazily because it depends on flags; can | 1642 // TODO(bmeurer) Initialized lazily because it depends on flags; can |
1642 // be fixed once the default isolate cleanup is done. | 1643 // be fixed once the default isolate cleanup is done. |
1643 random_number_generator_(NULL), | 1644 random_number_generator_(NULL), |
1644 serializer_enabled_(enable_serializer), | 1645 serializer_enabled_(enable_serializer), |
1645 has_fatal_error_(false), | 1646 has_fatal_error_(false), |
1646 initialized_from_snapshot_(false), | 1647 initialized_from_snapshot_(false), |
1647 cpu_profiler_(NULL), | 1648 cpu_profiler_(NULL), |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1874 | 1875 |
1875 delete memory_allocator_; | 1876 delete memory_allocator_; |
1876 memory_allocator_ = NULL; | 1877 memory_allocator_ = NULL; |
1877 delete code_range_; | 1878 delete code_range_; |
1878 code_range_ = NULL; | 1879 code_range_ = NULL; |
1879 delete global_handles_; | 1880 delete global_handles_; |
1880 global_handles_ = NULL; | 1881 global_handles_ = NULL; |
1881 delete eternal_handles_; | 1882 delete eternal_handles_; |
1882 eternal_handles_ = NULL; | 1883 eternal_handles_ = NULL; |
1883 | 1884 |
| 1885 delete[] cons_string_hashing_buffer_; |
| 1886 cons_string_hashing_buffer_ = nullptr; |
| 1887 |
1884 delete string_stream_debug_object_cache_; | 1888 delete string_stream_debug_object_cache_; |
1885 string_stream_debug_object_cache_ = NULL; | 1889 string_stream_debug_object_cache_ = NULL; |
1886 | 1890 |
1887 delete external_reference_table_; | 1891 delete external_reference_table_; |
1888 external_reference_table_ = NULL; | 1892 external_reference_table_ = NULL; |
1889 | 1893 |
1890 delete random_number_generator_; | 1894 delete random_number_generator_; |
1891 random_number_generator_ = NULL; | 1895 random_number_generator_ = NULL; |
1892 | 1896 |
1893 delete debug_; | 1897 delete debug_; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1989 context_slot_cache_ = new ContextSlotCache(); | 1993 context_slot_cache_ = new ContextSlotCache(); |
1990 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 1994 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
1991 unicode_cache_ = new UnicodeCache(); | 1995 unicode_cache_ = new UnicodeCache(); |
1992 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); | 1996 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); |
1993 global_handles_ = new GlobalHandles(this); | 1997 global_handles_ = new GlobalHandles(this); |
1994 eternal_handles_ = new EternalHandles(); | 1998 eternal_handles_ = new EternalHandles(); |
1995 bootstrapper_ = new Bootstrapper(this); | 1999 bootstrapper_ = new Bootstrapper(this); |
1996 handle_scope_implementer_ = new HandleScopeImplementer(this); | 2000 handle_scope_implementer_ = new HandleScopeImplementer(this); |
1997 stub_cache_ = new StubCache(this); | 2001 stub_cache_ = new StubCache(this); |
1998 materialized_object_store_ = new MaterializedObjectStore(this); | 2002 materialized_object_store_ = new MaterializedObjectStore(this); |
| 2003 cons_string_hashing_buffer_ = new uint16_t[String::kMaxHashCalcLength]; |
1999 regexp_stack_ = new RegExpStack(); | 2004 regexp_stack_ = new RegExpStack(); |
2000 regexp_stack_->isolate_ = this; | 2005 regexp_stack_->isolate_ = this; |
2001 date_cache_ = new DateCache(); | 2006 date_cache_ = new DateCache(); |
2002 call_descriptor_data_ = | 2007 call_descriptor_data_ = |
2003 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; | 2008 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; |
2004 cpu_profiler_ = new CpuProfiler(this); | 2009 cpu_profiler_ = new CpuProfiler(this); |
2005 heap_profiler_ = new HeapProfiler(heap()); | 2010 heap_profiler_ = new HeapProfiler(heap()); |
2006 | 2011 |
2007 // Enable logging before setting up the heap | 2012 // Enable logging before setting up the heap |
2008 logger_->SetUp(this); | 2013 logger_->SetUp(this); |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2549 if (prev_ && prev_->Intercept(flag)) return true; | 2554 if (prev_ && prev_->Intercept(flag)) return true; |
2550 // Then check whether this scope intercepts. | 2555 // Then check whether this scope intercepts. |
2551 if ((flag & intercept_mask_)) { | 2556 if ((flag & intercept_mask_)) { |
2552 intercepted_flags_ |= flag; | 2557 intercepted_flags_ |= flag; |
2553 return true; | 2558 return true; |
2554 } | 2559 } |
2555 return false; | 2560 return false; |
2556 } | 2561 } |
2557 | 2562 |
2558 } } // namespace v8::internal | 2563 } } // namespace v8::internal |
OLD | NEW |