| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 stack_trace_for_uncaught_exceptions_frame_limit_(0), | 1483 stack_trace_for_uncaught_exceptions_frame_limit_(0), |
| 1484 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), | 1484 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), |
| 1485 memory_allocator_(NULL), | 1485 memory_allocator_(NULL), |
| 1486 keyed_lookup_cache_(NULL), | 1486 keyed_lookup_cache_(NULL), |
| 1487 context_slot_cache_(NULL), | 1487 context_slot_cache_(NULL), |
| 1488 descriptor_lookup_cache_(NULL), | 1488 descriptor_lookup_cache_(NULL), |
| 1489 handle_scope_implementer_(NULL), | 1489 handle_scope_implementer_(NULL), |
| 1490 unicode_cache_(NULL), | 1490 unicode_cache_(NULL), |
| 1491 runtime_zone_(this), | 1491 runtime_zone_(this), |
| 1492 inner_pointer_to_code_cache_(NULL), | 1492 inner_pointer_to_code_cache_(NULL), |
| 1493 write_iterator_(NULL), | |
| 1494 global_handles_(NULL), | 1493 global_handles_(NULL), |
| 1495 eternal_handles_(NULL), | 1494 eternal_handles_(NULL), |
| 1496 thread_manager_(NULL), | 1495 thread_manager_(NULL), |
| 1497 has_installed_extensions_(false), | 1496 has_installed_extensions_(false), |
| 1498 string_tracker_(NULL), | 1497 string_tracker_(NULL), |
| 1499 regexp_stack_(NULL), | 1498 regexp_stack_(NULL), |
| 1500 date_cache_(NULL), | 1499 date_cache_(NULL), |
| 1501 call_descriptor_data_(NULL), | 1500 call_descriptor_data_(NULL), |
| 1502 // TODO(bmeurer) Initialized lazily because it depends on flags; can | 1501 // TODO(bmeurer) Initialized lazily because it depends on flags; can |
| 1503 // be fixed once the default isolate cleanup is done. | 1502 // be fixed once the default isolate cleanup is done. |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1717 | 1716 |
| 1718 delete handle_scope_implementer_; | 1717 delete handle_scope_implementer_; |
| 1719 handle_scope_implementer_ = NULL; | 1718 handle_scope_implementer_ = NULL; |
| 1720 | 1719 |
| 1721 delete compilation_cache_; | 1720 delete compilation_cache_; |
| 1722 compilation_cache_ = NULL; | 1721 compilation_cache_ = NULL; |
| 1723 delete bootstrapper_; | 1722 delete bootstrapper_; |
| 1724 bootstrapper_ = NULL; | 1723 bootstrapper_ = NULL; |
| 1725 delete inner_pointer_to_code_cache_; | 1724 delete inner_pointer_to_code_cache_; |
| 1726 inner_pointer_to_code_cache_ = NULL; | 1725 inner_pointer_to_code_cache_ = NULL; |
| 1727 delete write_iterator_; | |
| 1728 write_iterator_ = NULL; | |
| 1729 | 1726 |
| 1730 delete thread_manager_; | 1727 delete thread_manager_; |
| 1731 thread_manager_ = NULL; | 1728 thread_manager_ = NULL; |
| 1732 | 1729 |
| 1733 delete string_tracker_; | 1730 delete string_tracker_; |
| 1734 string_tracker_ = NULL; | 1731 string_tracker_ = NULL; |
| 1735 | 1732 |
| 1736 delete memory_allocator_; | 1733 delete memory_allocator_; |
| 1737 memory_allocator_ = NULL; | 1734 memory_allocator_ = NULL; |
| 1738 delete code_range_; | 1735 delete code_range_; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1844 #undef ASSIGN_ELEMENT | 1841 #undef ASSIGN_ELEMENT |
| 1845 | 1842 |
| 1846 string_tracker_ = new StringTracker(); | 1843 string_tracker_ = new StringTracker(); |
| 1847 string_tracker_->isolate_ = this; | 1844 string_tracker_->isolate_ = this; |
| 1848 compilation_cache_ = new CompilationCache(this); | 1845 compilation_cache_ = new CompilationCache(this); |
| 1849 keyed_lookup_cache_ = new KeyedLookupCache(); | 1846 keyed_lookup_cache_ = new KeyedLookupCache(); |
| 1850 context_slot_cache_ = new ContextSlotCache(); | 1847 context_slot_cache_ = new ContextSlotCache(); |
| 1851 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 1848 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
| 1852 unicode_cache_ = new UnicodeCache(); | 1849 unicode_cache_ = new UnicodeCache(); |
| 1853 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); | 1850 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); |
| 1854 write_iterator_ = new ConsStringIteratorOp(); | |
| 1855 global_handles_ = new GlobalHandles(this); | 1851 global_handles_ = new GlobalHandles(this); |
| 1856 eternal_handles_ = new EternalHandles(); | 1852 eternal_handles_ = new EternalHandles(); |
| 1857 bootstrapper_ = new Bootstrapper(this); | 1853 bootstrapper_ = new Bootstrapper(this); |
| 1858 handle_scope_implementer_ = new HandleScopeImplementer(this); | 1854 handle_scope_implementer_ = new HandleScopeImplementer(this); |
| 1859 stub_cache_ = new StubCache(this); | 1855 stub_cache_ = new StubCache(this); |
| 1860 materialized_object_store_ = new MaterializedObjectStore(this); | 1856 materialized_object_store_ = new MaterializedObjectStore(this); |
| 1861 regexp_stack_ = new RegExpStack(); | 1857 regexp_stack_ = new RegExpStack(); |
| 1862 regexp_stack_->isolate_ = this; | 1858 regexp_stack_->isolate_ = this; |
| 1863 date_cache_ = new DateCache(); | 1859 date_cache_ = new DateCache(); |
| 1864 call_descriptor_data_ = | 1860 call_descriptor_data_ = |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2403 if (prev_ && prev_->Intercept(flag)) return true; | 2399 if (prev_ && prev_->Intercept(flag)) return true; |
| 2404 // Then check whether this scope intercepts. | 2400 // Then check whether this scope intercepts. |
| 2405 if ((flag & intercept_mask_)) { | 2401 if ((flag & intercept_mask_)) { |
| 2406 intercepted_flags_ |= flag; | 2402 intercepted_flags_ |= flag; |
| 2407 return true; | 2403 return true; |
| 2408 } | 2404 } |
| 2409 return false; | 2405 return false; |
| 2410 } | 2406 } |
| 2411 | 2407 |
| 2412 } } // namespace v8::internal | 2408 } } // namespace v8::internal |
| OLD | NEW |