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 "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 Loading... |
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_)), | |
1976 inner_pointer_to_code_cache_(NULL), | 1975 inner_pointer_to_code_cache_(NULL), |
1977 global_handles_(NULL), | 1976 global_handles_(NULL), |
1978 eternal_handles_(NULL), | 1977 eternal_handles_(NULL), |
1979 thread_manager_(NULL), | 1978 thread_manager_(NULL), |
1980 has_installed_extensions_(false), | 1979 has_installed_extensions_(false), |
1981 regexp_stack_(NULL), | 1980 regexp_stack_(NULL), |
1982 date_cache_(NULL), | 1981 date_cache_(NULL), |
1983 call_descriptor_data_(NULL), | 1982 call_descriptor_data_(NULL), |
1984 // TODO(bmeurer) Initialized lazily because it depends on flags; can | 1983 // TODO(bmeurer) Initialized lazily because it depends on flags; can |
1985 // be fixed once the default isolate cleanup is done. | 1984 // be fixed once the default isolate cleanup is done. |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 | 2237 |
2239 delete random_number_generator_; | 2238 delete random_number_generator_; |
2240 random_number_generator_ = NULL; | 2239 random_number_generator_ = NULL; |
2241 | 2240 |
2242 delete debug_; | 2241 delete debug_; |
2243 debug_ = NULL; | 2242 debug_ = NULL; |
2244 | 2243 |
2245 delete cancelable_task_manager_; | 2244 delete cancelable_task_manager_; |
2246 cancelable_task_manager_ = nullptr; | 2245 cancelable_task_manager_ = nullptr; |
2247 | 2246 |
2248 delete runtime_zone_; | |
2249 runtime_zone_ = nullptr; | |
2250 | |
2251 delete allocator_; | 2247 delete allocator_; |
2252 allocator_ = nullptr; | 2248 allocator_ = nullptr; |
2253 | 2249 |
2254 #if USE_SIMULATOR | 2250 #if USE_SIMULATOR |
2255 Simulator::TearDown(simulator_i_cache_, simulator_redirection_); | 2251 Simulator::TearDown(simulator_i_cache_, simulator_redirection_); |
2256 simulator_i_cache_ = nullptr; | 2252 simulator_i_cache_ = nullptr; |
2257 simulator_redirection_ = nullptr; | 2253 simulator_redirection_ = nullptr; |
2258 #endif | 2254 #endif |
2259 } | 2255 } |
2260 | 2256 |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3214 // Then check whether this scope intercepts. | 3210 // Then check whether this scope intercepts. |
3215 if ((flag & intercept_mask_)) { | 3211 if ((flag & intercept_mask_)) { |
3216 intercepted_flags_ |= flag; | 3212 intercepted_flags_ |= flag; |
3217 return true; | 3213 return true; |
3218 } | 3214 } |
3219 return false; | 3215 return false; |
3220 } | 3216 } |
3221 | 3217 |
3222 } // namespace internal | 3218 } // namespace internal |
3223 } // namespace v8 | 3219 } // namespace v8 |
OLD | NEW |