OLD | NEW |
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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 bootstrapper_(NULL), | 1522 bootstrapper_(NULL), |
1523 runtime_profiler_(NULL), | 1523 runtime_profiler_(NULL), |
1524 compilation_cache_(NULL), | 1524 compilation_cache_(NULL), |
1525 counters_(NULL), | 1525 counters_(NULL), |
1526 code_range_(NULL), | 1526 code_range_(NULL), |
1527 debugger_initialized_(false), | 1527 debugger_initialized_(false), |
1528 logger_(NULL), | 1528 logger_(NULL), |
1529 stats_table_(NULL), | 1529 stats_table_(NULL), |
1530 stub_cache_(NULL), | 1530 stub_cache_(NULL), |
1531 deoptimizer_data_(NULL), | 1531 deoptimizer_data_(NULL), |
1532 materialized_object_store_(NULL), | |
1533 capture_stack_trace_for_uncaught_exceptions_(false), | 1532 capture_stack_trace_for_uncaught_exceptions_(false), |
1534 stack_trace_for_uncaught_exceptions_frame_limit_(0), | 1533 stack_trace_for_uncaught_exceptions_frame_limit_(0), |
1535 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), | 1534 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), |
1536 memory_allocator_(NULL), | 1535 memory_allocator_(NULL), |
1537 keyed_lookup_cache_(NULL), | 1536 keyed_lookup_cache_(NULL), |
1538 context_slot_cache_(NULL), | 1537 context_slot_cache_(NULL), |
1539 descriptor_lookup_cache_(NULL), | 1538 descriptor_lookup_cache_(NULL), |
1540 handle_scope_implementer_(NULL), | 1539 handle_scope_implementer_(NULL), |
1541 unicode_cache_(NULL), | 1540 unicode_cache_(NULL), |
1542 runtime_zone_(this), | 1541 runtime_zone_(this), |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 delete context_slot_cache_; | 1770 delete context_slot_cache_; |
1772 context_slot_cache_ = NULL; | 1771 context_slot_cache_ = NULL; |
1773 delete keyed_lookup_cache_; | 1772 delete keyed_lookup_cache_; |
1774 keyed_lookup_cache_ = NULL; | 1773 keyed_lookup_cache_ = NULL; |
1775 | 1774 |
1776 delete stub_cache_; | 1775 delete stub_cache_; |
1777 stub_cache_ = NULL; | 1776 stub_cache_ = NULL; |
1778 delete stats_table_; | 1777 delete stats_table_; |
1779 stats_table_ = NULL; | 1778 stats_table_ = NULL; |
1780 | 1779 |
1781 delete materialized_object_store_; | |
1782 materialized_object_store_ = NULL; | |
1783 | |
1784 delete logger_; | 1780 delete logger_; |
1785 logger_ = NULL; | 1781 logger_ = NULL; |
1786 | 1782 |
1787 delete counters_; | 1783 delete counters_; |
1788 counters_ = NULL; | 1784 counters_ = NULL; |
1789 | 1785 |
1790 delete handle_scope_implementer_; | 1786 delete handle_scope_implementer_; |
1791 handle_scope_implementer_ = NULL; | 1787 handle_scope_implementer_ = NULL; |
1792 | 1788 |
1793 delete compilation_cache_; | 1789 delete compilation_cache_; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 context_slot_cache_ = new ContextSlotCache(); | 1940 context_slot_cache_ = new ContextSlotCache(); |
1945 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 1941 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
1946 unicode_cache_ = new UnicodeCache(); | 1942 unicode_cache_ = new UnicodeCache(); |
1947 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); | 1943 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); |
1948 write_iterator_ = new ConsStringIteratorOp(); | 1944 write_iterator_ = new ConsStringIteratorOp(); |
1949 global_handles_ = new GlobalHandles(this); | 1945 global_handles_ = new GlobalHandles(this); |
1950 eternal_handles_ = new EternalHandles(); | 1946 eternal_handles_ = new EternalHandles(); |
1951 bootstrapper_ = new Bootstrapper(this); | 1947 bootstrapper_ = new Bootstrapper(this); |
1952 handle_scope_implementer_ = new HandleScopeImplementer(this); | 1948 handle_scope_implementer_ = new HandleScopeImplementer(this); |
1953 stub_cache_ = new StubCache(this); | 1949 stub_cache_ = new StubCache(this); |
1954 materialized_object_store_ = new MaterializedObjectStore(this); | |
1955 regexp_stack_ = new RegExpStack(); | 1950 regexp_stack_ = new RegExpStack(); |
1956 regexp_stack_->isolate_ = this; | 1951 regexp_stack_->isolate_ = this; |
1957 date_cache_ = new DateCache(); | 1952 date_cache_ = new DateCache(); |
1958 code_stub_interface_descriptors_ = | 1953 code_stub_interface_descriptors_ = |
1959 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; | 1954 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; |
1960 call_descriptors_ = | 1955 call_descriptors_ = |
1961 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; | 1956 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; |
1962 cpu_profiler_ = new CpuProfiler(this); | 1957 cpu_profiler_ = new CpuProfiler(this); |
1963 heap_profiler_ = new HeapProfiler(heap()); | 1958 heap_profiler_ = new HeapProfiler(heap()); |
1964 | 1959 |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2315 | 2310 |
2316 #ifdef DEBUG | 2311 #ifdef DEBUG |
2317 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2312 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2318 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2313 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2319 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2314 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2320 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2315 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2321 #undef ISOLATE_FIELD_OFFSET | 2316 #undef ISOLATE_FIELD_OFFSET |
2322 #endif | 2317 #endif |
2323 | 2318 |
2324 } } // namespace v8::internal | 2319 } } // namespace v8::internal |
OLD | NEW |