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

Side by Side Diff: src/isolate.cc

Issue 2360403003: Revert of Replaced different means of zone pooling/reusing by one zone segment pool (Closed)
Patch Set: Created 4 years, 3 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') | src/runtime/runtime-regexp.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 "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 stack_trace_for_uncaught_exceptions_frame_limit_(0), 1965 stack_trace_for_uncaught_exceptions_frame_limit_(0),
1966 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), 1966 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview),
1967 keyed_lookup_cache_(NULL), 1967 keyed_lookup_cache_(NULL),
1968 context_slot_cache_(NULL), 1968 context_slot_cache_(NULL),
1969 descriptor_lookup_cache_(NULL), 1969 descriptor_lookup_cache_(NULL),
1970 handle_scope_implementer_(NULL), 1970 handle_scope_implementer_(NULL),
1971 unicode_cache_(NULL), 1971 unicode_cache_(NULL),
1972 allocator_(FLAG_trace_gc_object_stats 1972 allocator_(FLAG_trace_gc_object_stats
1973 ? new VerboseAccountingAllocator(&heap_, 256 * KB) 1973 ? new VerboseAccountingAllocator(&heap_, 256 * KB)
1974 : new AccountingAllocator()), 1974 : new AccountingAllocator()),
1975 runtime_zone_(new Zone(allocator_)),
1975 inner_pointer_to_code_cache_(NULL), 1976 inner_pointer_to_code_cache_(NULL),
1976 global_handles_(NULL), 1977 global_handles_(NULL),
1977 eternal_handles_(NULL), 1978 eternal_handles_(NULL),
1978 thread_manager_(NULL), 1979 thread_manager_(NULL),
1979 has_installed_extensions_(false), 1980 has_installed_extensions_(false),
1980 regexp_stack_(NULL), 1981 regexp_stack_(NULL),
1981 date_cache_(NULL), 1982 date_cache_(NULL),
1982 call_descriptor_data_(NULL), 1983 call_descriptor_data_(NULL),
1983 // TODO(bmeurer) Initialized lazily because it depends on flags; can 1984 // TODO(bmeurer) Initialized lazily because it depends on flags; can
1984 // be fixed once the default isolate cleanup is done. 1985 // be fixed once the default isolate cleanup is done.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 2238
2238 delete random_number_generator_; 2239 delete random_number_generator_;
2239 random_number_generator_ = NULL; 2240 random_number_generator_ = NULL;
2240 2241
2241 delete debug_; 2242 delete debug_;
2242 debug_ = NULL; 2243 debug_ = NULL;
2243 2244
2244 delete cancelable_task_manager_; 2245 delete cancelable_task_manager_;
2245 cancelable_task_manager_ = nullptr; 2246 cancelable_task_manager_ = nullptr;
2246 2247
2248 delete runtime_zone_;
2249 runtime_zone_ = nullptr;
2250
2247 delete allocator_; 2251 delete allocator_;
2248 allocator_ = nullptr; 2252 allocator_ = nullptr;
2249 2253
2250 #if USE_SIMULATOR 2254 #if USE_SIMULATOR
2251 Simulator::TearDown(simulator_i_cache_, simulator_redirection_); 2255 Simulator::TearDown(simulator_i_cache_, simulator_redirection_);
2252 simulator_i_cache_ = nullptr; 2256 simulator_i_cache_ = nullptr;
2253 simulator_redirection_ = nullptr; 2257 simulator_redirection_ = nullptr;
2254 #endif 2258 #endif
2255 } 2259 }
2256 2260
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
3210 // Then check whether this scope intercepts. 3214 // Then check whether this scope intercepts.
3211 if ((flag & intercept_mask_)) { 3215 if ((flag & intercept_mask_)) {
3212 intercepted_flags_ |= flag; 3216 intercepted_flags_ |= flag;
3213 return true; 3217 return true;
3214 } 3218 }
3215 return false; 3219 return false;
3216 } 3220 }
3217 3221
3218 } // namespace internal 3222 } // namespace internal
3219 } // namespace v8 3223 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/runtime/runtime-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698