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

Side by Side Diff: src/isolate.cc

Issue 21133006: introduce eternal handles (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« include/v8.h ('K') | « src/isolate.h ('k') | src/objects.h » ('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 // 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
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),
1777 context_switcher_(NULL), 1778 context_switcher_(NULL),
1778 thread_manager_(NULL), 1779 thread_manager_(NULL),
1779 fp_stubs_generated_(false), 1780 fp_stubs_generated_(false),
1780 has_installed_extensions_(false), 1781 has_installed_extensions_(false),
1781 string_tracker_(NULL), 1782 string_tracker_(NULL),
1782 regexp_stack_(NULL), 1783 regexp_stack_(NULL),
1783 date_cache_(NULL), 1784 date_cache_(NULL),
1784 code_stub_interface_descriptors_(NULL), 1785 code_stub_interface_descriptors_(NULL),
1785 initialized_from_snapshot_(false), 1786 initialized_from_snapshot_(false),
1786 cpu_profiler_(NULL), 1787 cpu_profiler_(NULL),
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 2045
2045 delete string_tracker_; 2046 delete string_tracker_;
2046 string_tracker_ = NULL; 2047 string_tracker_ = NULL;
2047 2048
2048 delete memory_allocator_; 2049 delete memory_allocator_;
2049 memory_allocator_ = NULL; 2050 memory_allocator_ = NULL;
2050 delete code_range_; 2051 delete code_range_;
2051 code_range_ = NULL; 2052 code_range_ = NULL;
2052 delete global_handles_; 2053 delete global_handles_;
2053 global_handles_ = NULL; 2054 global_handles_ = NULL;
2055 delete eternal_handles_;
2056 eternal_handles_ = NULL;
2054 2057
2055 delete string_stream_debug_object_cache_; 2058 delete string_stream_debug_object_cache_;
2056 string_stream_debug_object_cache_ = NULL; 2059 string_stream_debug_object_cache_ = NULL;
2057 2060
2058 delete external_reference_table_; 2061 delete external_reference_table_;
2059 external_reference_table_ = NULL; 2062 external_reference_table_ = NULL;
2060 2063
2061 delete callback_table_; 2064 delete callback_table_;
2062 callback_table_ = NULL; 2065 callback_table_ = NULL;
2063 2066
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2175 string_tracker_->isolate_ = this; 2178 string_tracker_->isolate_ = this;
2176 compilation_cache_ = new CompilationCache(this); 2179 compilation_cache_ = new CompilationCache(this);
2177 transcendental_cache_ = new TranscendentalCache(); 2180 transcendental_cache_ = new TranscendentalCache();
2178 keyed_lookup_cache_ = new KeyedLookupCache(); 2181 keyed_lookup_cache_ = new KeyedLookupCache();
2179 context_slot_cache_ = new ContextSlotCache(); 2182 context_slot_cache_ = new ContextSlotCache();
2180 descriptor_lookup_cache_ = new DescriptorLookupCache(); 2183 descriptor_lookup_cache_ = new DescriptorLookupCache();
2181 unicode_cache_ = new UnicodeCache(); 2184 unicode_cache_ = new UnicodeCache();
2182 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); 2185 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this);
2183 write_iterator_ = new ConsStringIteratorOp(); 2186 write_iterator_ = new ConsStringIteratorOp();
2184 global_handles_ = new GlobalHandles(this); 2187 global_handles_ = new GlobalHandles(this);
2188 eternal_handles_ = new EternalHandles();
2185 bootstrapper_ = new Bootstrapper(this); 2189 bootstrapper_ = new Bootstrapper(this);
2186 handle_scope_implementer_ = new HandleScopeImplementer(this); 2190 handle_scope_implementer_ = new HandleScopeImplementer(this);
2187 stub_cache_ = new StubCache(this); 2191 stub_cache_ = new StubCache(this);
2188 regexp_stack_ = new RegExpStack(); 2192 regexp_stack_ = new RegExpStack();
2189 regexp_stack_->isolate_ = this; 2193 regexp_stack_->isolate_ = this;
2190 date_cache_ = new DateCache(); 2194 date_cache_ = new DateCache();
2191 code_stub_interface_descriptors_ = 2195 code_stub_interface_descriptors_ =
2192 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; 2196 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS];
2193 cpu_profiler_ = new CpuProfiler(this); 2197 cpu_profiler_ = new CpuProfiler(this);
2194 heap_profiler_ = new HeapProfiler(heap()); 2198 heap_profiler_ = new HeapProfiler(heap());
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 2525
2522 #ifdef DEBUG 2526 #ifdef DEBUG
2523 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2527 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2524 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2528 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2525 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2529 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2526 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2530 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2527 #undef ISOLATE_FIELD_OFFSET 2531 #undef ISOLATE_FIELD_OFFSET
2528 #endif 2532 #endif
2529 2533
2530 } } // namespace v8::internal 2534 } } // namespace v8::internal
OLDNEW
« include/v8.h ('K') | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698