Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/isolate.cc

Issue 1269343002: Retire StringTracker. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 keyed_lookup_cache_(NULL), 1753 keyed_lookup_cache_(NULL),
1754 context_slot_cache_(NULL), 1754 context_slot_cache_(NULL),
1755 descriptor_lookup_cache_(NULL), 1755 descriptor_lookup_cache_(NULL),
1756 handle_scope_implementer_(NULL), 1756 handle_scope_implementer_(NULL),
1757 unicode_cache_(NULL), 1757 unicode_cache_(NULL),
1758 inner_pointer_to_code_cache_(NULL), 1758 inner_pointer_to_code_cache_(NULL),
1759 global_handles_(NULL), 1759 global_handles_(NULL),
1760 eternal_handles_(NULL), 1760 eternal_handles_(NULL),
1761 thread_manager_(NULL), 1761 thread_manager_(NULL),
1762 has_installed_extensions_(false), 1762 has_installed_extensions_(false),
1763 string_tracker_(NULL),
1764 regexp_stack_(NULL), 1763 regexp_stack_(NULL),
1765 date_cache_(NULL), 1764 date_cache_(NULL),
1766 call_descriptor_data_(NULL), 1765 call_descriptor_data_(NULL),
1767 // TODO(bmeurer) Initialized lazily because it depends on flags; can 1766 // TODO(bmeurer) Initialized lazily because it depends on flags; can
1768 // be fixed once the default isolate cleanup is done. 1767 // be fixed once the default isolate cleanup is done.
1769 random_number_generator_(NULL), 1768 random_number_generator_(NULL),
1770 store_buffer_hash_set_1_address_(NULL), 1769 store_buffer_hash_set_1_address_(NULL),
1771 store_buffer_hash_set_2_address_(NULL), 1770 store_buffer_hash_set_2_address_(NULL),
1772 serializer_enabled_(enable_serializer), 1771 serializer_enabled_(enable_serializer),
1773 has_fatal_error_(false), 1772 has_fatal_error_(false),
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 delete compilation_cache_; 1987 delete compilation_cache_;
1989 compilation_cache_ = NULL; 1988 compilation_cache_ = NULL;
1990 delete bootstrapper_; 1989 delete bootstrapper_;
1991 bootstrapper_ = NULL; 1990 bootstrapper_ = NULL;
1992 delete inner_pointer_to_code_cache_; 1991 delete inner_pointer_to_code_cache_;
1993 inner_pointer_to_code_cache_ = NULL; 1992 inner_pointer_to_code_cache_ = NULL;
1994 1993
1995 delete thread_manager_; 1994 delete thread_manager_;
1996 thread_manager_ = NULL; 1995 thread_manager_ = NULL;
1997 1996
1998 delete string_tracker_;
1999 string_tracker_ = NULL;
2000
2001 delete memory_allocator_; 1997 delete memory_allocator_;
2002 memory_allocator_ = NULL; 1998 memory_allocator_ = NULL;
2003 delete code_range_; 1999 delete code_range_;
2004 code_range_ = NULL; 2000 code_range_ = NULL;
2005 delete global_handles_; 2001 delete global_handles_;
2006 global_handles_ = NULL; 2002 global_handles_ = NULL;
2007 delete eternal_handles_; 2003 delete eternal_handles_;
2008 eternal_handles_ = NULL; 2004 eternal_handles_ = NULL;
2009 2005
2010 delete string_stream_debug_object_cache_; 2006 delete string_stream_debug_object_cache_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 2093
2098 // Safe after setting Heap::isolate_, and initializing StackGuard 2094 // Safe after setting Heap::isolate_, and initializing StackGuard
2099 heap_.SetStackLimits(); 2095 heap_.SetStackLimits();
2100 2096
2101 #define ASSIGN_ELEMENT(CamelName, hacker_name) \ 2097 #define ASSIGN_ELEMENT(CamelName, hacker_name) \
2102 isolate_addresses_[Isolate::k##CamelName##Address] = \ 2098 isolate_addresses_[Isolate::k##CamelName##Address] = \
2103 reinterpret_cast<Address>(hacker_name##_address()); 2099 reinterpret_cast<Address>(hacker_name##_address());
2104 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT) 2100 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT)
2105 #undef ASSIGN_ELEMENT 2101 #undef ASSIGN_ELEMENT
2106 2102
2107 string_tracker_ = new StringTracker();
2108 string_tracker_->isolate_ = this;
2109 compilation_cache_ = new CompilationCache(this); 2103 compilation_cache_ = new CompilationCache(this);
2110 keyed_lookup_cache_ = new KeyedLookupCache(); 2104 keyed_lookup_cache_ = new KeyedLookupCache();
2111 context_slot_cache_ = new ContextSlotCache(); 2105 context_slot_cache_ = new ContextSlotCache();
2112 descriptor_lookup_cache_ = new DescriptorLookupCache(); 2106 descriptor_lookup_cache_ = new DescriptorLookupCache();
2113 unicode_cache_ = new UnicodeCache(); 2107 unicode_cache_ = new UnicodeCache();
2114 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); 2108 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this);
2115 global_handles_ = new GlobalHandles(this); 2109 global_handles_ = new GlobalHandles(this);
2116 eternal_handles_ = new EternalHandles(); 2110 eternal_handles_ = new EternalHandles();
2117 bootstrapper_ = new Bootstrapper(this); 2111 bootstrapper_ = new Bootstrapper(this);
2118 handle_scope_implementer_ = new HandleScopeImplementer(this); 2112 handle_scope_implementer_ = new HandleScopeImplementer(this);
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
2831 // Then check whether this scope intercepts. 2825 // Then check whether this scope intercepts.
2832 if ((flag & intercept_mask_)) { 2826 if ((flag & intercept_mask_)) {
2833 intercepted_flags_ |= flag; 2827 intercepted_flags_ |= flag;
2834 return true; 2828 return true;
2835 } 2829 }
2836 return false; 2830 return false;
2837 } 2831 }
2838 2832
2839 } // namespace internal 2833 } // namespace internal
2840 } // namespace v8 2834 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698