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

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: returns handles, added tests 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
« no previous file with comments | « 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 context_exit_happened_(false), 1786 context_exit_happened_(false),
1786 initialized_from_snapshot_(false), 1787 initialized_from_snapshot_(false),
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 2046
2046 delete string_tracker_; 2047 delete string_tracker_;
2047 string_tracker_ = NULL; 2048 string_tracker_ = NULL;
2048 2049
2049 delete memory_allocator_; 2050 delete memory_allocator_;
2050 memory_allocator_ = NULL; 2051 memory_allocator_ = NULL;
2051 delete code_range_; 2052 delete code_range_;
2052 code_range_ = NULL; 2053 code_range_ = NULL;
2053 delete global_handles_; 2054 delete global_handles_;
2054 global_handles_ = NULL; 2055 global_handles_ = NULL;
2056 delete eternal_handles_;
2057 eternal_handles_ = NULL;
2055 2058
2056 delete string_stream_debug_object_cache_; 2059 delete string_stream_debug_object_cache_;
2057 string_stream_debug_object_cache_ = NULL; 2060 string_stream_debug_object_cache_ = NULL;
2058 2061
2059 delete external_reference_table_; 2062 delete external_reference_table_;
2060 external_reference_table_ = NULL; 2063 external_reference_table_ = NULL;
2061 2064
2062 delete callback_table_; 2065 delete callback_table_;
2063 callback_table_ = NULL; 2066 callback_table_ = NULL;
2064 2067
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 string_tracker_->isolate_ = this; 2179 string_tracker_->isolate_ = this;
2177 compilation_cache_ = new CompilationCache(this); 2180 compilation_cache_ = new CompilationCache(this);
2178 transcendental_cache_ = new TranscendentalCache(); 2181 transcendental_cache_ = new TranscendentalCache();
2179 keyed_lookup_cache_ = new KeyedLookupCache(); 2182 keyed_lookup_cache_ = new KeyedLookupCache();
2180 context_slot_cache_ = new ContextSlotCache(); 2183 context_slot_cache_ = new ContextSlotCache();
2181 descriptor_lookup_cache_ = new DescriptorLookupCache(); 2184 descriptor_lookup_cache_ = new DescriptorLookupCache();
2182 unicode_cache_ = new UnicodeCache(); 2185 unicode_cache_ = new UnicodeCache();
2183 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); 2186 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this);
2184 write_iterator_ = new ConsStringIteratorOp(); 2187 write_iterator_ = new ConsStringIteratorOp();
2185 global_handles_ = new GlobalHandles(this); 2188 global_handles_ = new GlobalHandles(this);
2189 eternal_handles_ = new EternalHandles();
2186 bootstrapper_ = new Bootstrapper(this); 2190 bootstrapper_ = new Bootstrapper(this);
2187 handle_scope_implementer_ = new HandleScopeImplementer(this); 2191 handle_scope_implementer_ = new HandleScopeImplementer(this);
2188 stub_cache_ = new StubCache(this); 2192 stub_cache_ = new StubCache(this);
2189 regexp_stack_ = new RegExpStack(); 2193 regexp_stack_ = new RegExpStack();
2190 regexp_stack_->isolate_ = this; 2194 regexp_stack_->isolate_ = this;
2191 date_cache_ = new DateCache(); 2195 date_cache_ = new DateCache();
2192 code_stub_interface_descriptors_ = 2196 code_stub_interface_descriptors_ =
2193 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; 2197 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS];
2194 cpu_profiler_ = new CpuProfiler(this); 2198 cpu_profiler_ = new CpuProfiler(this);
2195 heap_profiler_ = new HeapProfiler(heap()); 2199 heap_profiler_ = new HeapProfiler(heap());
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
2522 2526
2523 #ifdef DEBUG 2527 #ifdef DEBUG
2524 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2528 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2525 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2529 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2526 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2530 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2527 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2531 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2528 #undef ISOLATE_FIELD_OFFSET 2532 #undef ISOLATE_FIELD_OFFSET
2529 #endif 2533 #endif
2530 2534
2531 } } // namespace v8::internal 2535 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698