| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 handle_scope_implementer_(NULL), | 245 handle_scope_implementer_(NULL), |
| 246 scanner_character_classes_(NULL), | 246 scanner_character_classes_(NULL), |
| 247 in_use_list_(0), | 247 in_use_list_(0), |
| 248 free_list_(0), | 248 free_list_(0), |
| 249 preallocated_storage_preallocated_(false), | 249 preallocated_storage_preallocated_(false), |
| 250 write_input_buffer_(NULL), | 250 write_input_buffer_(NULL), |
| 251 global_handles_(NULL), | 251 global_handles_(NULL), |
| 252 context_switcher_(NULL), | 252 context_switcher_(NULL), |
| 253 thread_manager_(NULL), | 253 thread_manager_(NULL), |
| 254 ast_sentinels_(NULL), | 254 ast_sentinels_(NULL), |
| 255 inline_runtime_functions_table_(NULL), |
| 255 string_tracker_(NULL) { | 256 string_tracker_(NULL) { |
| 256 memset(isolate_addresses_, 0, | 257 memset(isolate_addresses_, 0, |
| 257 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); | 258 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); |
| 258 | 259 |
| 259 heap_.isolate_ = this; | 260 heap_.isolate_ = this; |
| 260 stack_guard_.isolate_ = this; | 261 stack_guard_.isolate_ = this; |
| 261 | 262 |
| 262 #ifdef DEBUG | 263 #ifdef DEBUG |
| 263 // heap_histograms_ initializes itself. | 264 // heap_histograms_ initializes itself. |
| 264 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); | 265 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 PreallocatedMemoryThreadStop(); | 308 PreallocatedMemoryThreadStop(); |
| 308 | 309 |
| 309 HeapProfiler::TearDown(); | 310 HeapProfiler::TearDown(); |
| 310 CpuProfiler::TearDown(); | 311 CpuProfiler::TearDown(); |
| 311 heap_.TearDown(); | 312 heap_.TearDown(); |
| 312 logger_->TearDown(); | 313 logger_->TearDown(); |
| 313 } | 314 } |
| 314 delete scanner_character_classes_; | 315 delete scanner_character_classes_; |
| 315 scanner_character_classes_ = NULL; | 316 scanner_character_classes_ = NULL; |
| 316 | 317 |
| 318 delete inline_runtime_functions_table_; |
| 319 inline_runtime_functions_table_ = NULL; |
| 320 |
| 317 delete ast_sentinels_; | 321 delete ast_sentinels_; |
| 318 ast_sentinels_ = NULL; | 322 ast_sentinels_ = NULL; |
| 319 delete descriptor_lookup_cache_; | 323 delete descriptor_lookup_cache_; |
| 320 descriptor_lookup_cache_ = NULL; | 324 descriptor_lookup_cache_ = NULL; |
| 321 delete context_slot_cache_; | 325 delete context_slot_cache_; |
| 322 context_slot_cache_ = NULL; | 326 context_slot_cache_ = NULL; |
| 323 delete keyed_lookup_cache_; | 327 delete keyed_lookup_cache_; |
| 324 keyed_lookup_cache_ = NULL; | 328 keyed_lookup_cache_ = NULL; |
| 325 | 329 |
| 326 delete transcendental_cache_; | 330 delete transcendental_cache_; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 context_slot_cache_ = new ContextSlotCache(); | 407 context_slot_cache_ = new ContextSlotCache(); |
| 404 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 408 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
| 405 scanner_character_classes_ = new ScannerCharacterClasses(); | 409 scanner_character_classes_ = new ScannerCharacterClasses(); |
| 406 write_input_buffer_ = new StringInputBuffer(); | 410 write_input_buffer_ = new StringInputBuffer(); |
| 407 global_handles_ = new GlobalHandles(); | 411 global_handles_ = new GlobalHandles(); |
| 408 bootstrapper_ = new Bootstrapper(); | 412 bootstrapper_ = new Bootstrapper(); |
| 409 cpu_features_ = new CpuFeatures(); | 413 cpu_features_ = new CpuFeatures(); |
| 410 handle_scope_implementer_ = new HandleScopeImplementer(); | 414 handle_scope_implementer_ = new HandleScopeImplementer(); |
| 411 stub_cache_ = new StubCache(); | 415 stub_cache_ = new StubCache(); |
| 412 ast_sentinels_ = new AstSentinels(); | 416 ast_sentinels_ = new AstSentinels(); |
| 417 inline_runtime_functions_table_ = new InlineRuntimeFunctionsTable(); |
| 413 | 418 |
| 414 #ifdef ENABLE_DEBUGGER_SUPPORT | 419 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 415 debugger_ = new Debugger(); | 420 debugger_ = new Debugger(); |
| 416 debugger_->isolate_ = this; | 421 debugger_->isolate_ = this; |
| 417 #endif | 422 #endif |
| 418 | 423 |
| 419 state_ = PREINITIALIZED; | 424 state_ = PREINITIALIZED; |
| 420 return true; | 425 return true; |
| 421 } | 426 } |
| 422 | 427 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 LOG(LogCodeObjects()); | 526 LOG(LogCodeObjects()); |
| 522 LOG(LogCompiledFunctions()); | 527 LOG(LogCompiledFunctions()); |
| 523 } | 528 } |
| 524 | 529 |
| 525 state_ = INITIALIZED; | 530 state_ = INITIALIZED; |
| 526 return true; | 531 return true; |
| 527 } | 532 } |
| 528 | 533 |
| 529 | 534 |
| 530 } } // namespace v8::internal | 535 } } // namespace v8::internal |
| OLD | NEW |