| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 deoptimizer_data_(NULL), | 426 deoptimizer_data_(NULL), |
| 427 capture_stack_trace_for_uncaught_exceptions_(false), | 427 capture_stack_trace_for_uncaught_exceptions_(false), |
| 428 stack_trace_for_uncaught_exceptions_frame_limit_(0), | 428 stack_trace_for_uncaught_exceptions_frame_limit_(0), |
| 429 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), | 429 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), |
| 430 transcendental_cache_(NULL), | 430 transcendental_cache_(NULL), |
| 431 memory_allocator_(NULL), | 431 memory_allocator_(NULL), |
| 432 keyed_lookup_cache_(NULL), | 432 keyed_lookup_cache_(NULL), |
| 433 context_slot_cache_(NULL), | 433 context_slot_cache_(NULL), |
| 434 descriptor_lookup_cache_(NULL), | 434 descriptor_lookup_cache_(NULL), |
| 435 handle_scope_implementer_(NULL), | 435 handle_scope_implementer_(NULL), |
| 436 scanner_constants_(NULL), | 436 unicode_cache_(NULL), |
| 437 in_use_list_(0), | 437 in_use_list_(0), |
| 438 free_list_(0), | 438 free_list_(0), |
| 439 preallocated_storage_preallocated_(false), | 439 preallocated_storage_preallocated_(false), |
| 440 pc_to_code_cache_(NULL), | 440 pc_to_code_cache_(NULL), |
| 441 write_input_buffer_(NULL), | 441 write_input_buffer_(NULL), |
| 442 global_handles_(NULL), | 442 global_handles_(NULL), |
| 443 context_switcher_(NULL), | 443 context_switcher_(NULL), |
| 444 thread_manager_(NULL), | 444 thread_manager_(NULL), |
| 445 ast_sentinels_(NULL), | 445 ast_sentinels_(NULL), |
| 446 string_tracker_(NULL), | 446 string_tracker_(NULL), |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 561 |
| 562 | 562 |
| 563 Isolate::~Isolate() { | 563 Isolate::~Isolate() { |
| 564 TRACE_ISOLATE(destructor); | 564 TRACE_ISOLATE(destructor); |
| 565 | 565 |
| 566 #ifdef ENABLE_LOGGING_AND_PROFILING | 566 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 567 delete producer_heap_profile_; | 567 delete producer_heap_profile_; |
| 568 producer_heap_profile_ = NULL; | 568 producer_heap_profile_ = NULL; |
| 569 #endif | 569 #endif |
| 570 | 570 |
| 571 delete scanner_constants_; | 571 delete unicode_cache_; |
| 572 scanner_constants_ = NULL; | 572 unicode_cache_ = NULL; |
| 573 | 573 |
| 574 delete regexp_stack_; | 574 delete regexp_stack_; |
| 575 regexp_stack_ = NULL; | 575 regexp_stack_ = NULL; |
| 576 | 576 |
| 577 delete ast_sentinels_; | 577 delete ast_sentinels_; |
| 578 ast_sentinels_ = NULL; | 578 ast_sentinels_ = NULL; |
| 579 | 579 |
| 580 delete descriptor_lookup_cache_; | 580 delete descriptor_lookup_cache_; |
| 581 descriptor_lookup_cache_ = NULL; | 581 descriptor_lookup_cache_ = NULL; |
| 582 delete context_slot_cache_; | 582 delete context_slot_cache_; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 | 669 |
| 670 string_tracker_ = new StringTracker(); | 670 string_tracker_ = new StringTracker(); |
| 671 string_tracker_->isolate_ = this; | 671 string_tracker_->isolate_ = this; |
| 672 thread_manager_ = new ThreadManager(); | 672 thread_manager_ = new ThreadManager(); |
| 673 thread_manager_->isolate_ = this; | 673 thread_manager_->isolate_ = this; |
| 674 compilation_cache_ = new CompilationCache(this); | 674 compilation_cache_ = new CompilationCache(this); |
| 675 transcendental_cache_ = new TranscendentalCache(); | 675 transcendental_cache_ = new TranscendentalCache(); |
| 676 keyed_lookup_cache_ = new KeyedLookupCache(); | 676 keyed_lookup_cache_ = new KeyedLookupCache(); |
| 677 context_slot_cache_ = new ContextSlotCache(); | 677 context_slot_cache_ = new ContextSlotCache(); |
| 678 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 678 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
| 679 scanner_constants_ = new ScannerConstants(); | 679 unicode_cache_ = new UnicodeCache(); |
| 680 pc_to_code_cache_ = new PcToCodeCache(this); | 680 pc_to_code_cache_ = new PcToCodeCache(this); |
| 681 write_input_buffer_ = new StringInputBuffer(); | 681 write_input_buffer_ = new StringInputBuffer(); |
| 682 global_handles_ = new GlobalHandles(this); | 682 global_handles_ = new GlobalHandles(this); |
| 683 bootstrapper_ = new Bootstrapper(); | 683 bootstrapper_ = new Bootstrapper(); |
| 684 handle_scope_implementer_ = new HandleScopeImplementer(); | 684 handle_scope_implementer_ = new HandleScopeImplementer(); |
| 685 stub_cache_ = new StubCache(this); | 685 stub_cache_ = new StubCache(this); |
| 686 ast_sentinels_ = new AstSentinels(); | 686 ast_sentinels_ = new AstSentinels(); |
| 687 regexp_stack_ = new RegExpStack(); | 687 regexp_stack_ = new RegExpStack(); |
| 688 regexp_stack_->isolate_ = this; | 688 regexp_stack_->isolate_ = this; |
| 689 | 689 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 | 905 |
| 906 #ifdef DEBUG | 906 #ifdef DEBUG |
| 907 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 907 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 908 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 908 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 909 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 909 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 910 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 910 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 911 #undef ISOLATE_FIELD_OFFSET | 911 #undef ISOLATE_FIELD_OFFSET |
| 912 #endif | 912 #endif |
| 913 | 913 |
| 914 } } // namespace v8::internal | 914 } } // namespace v8::internal |
| OLD | NEW |