Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: src/isolate.cc

Issue 2817018: [Isolates] StatsTable moved to Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 : state_(UNINITIALIZED), 223 : state_(UNINITIALIZED),
224 stack_trace_nesting_level_(0), 224 stack_trace_nesting_level_(0),
225 incomplete_message_(NULL), 225 incomplete_message_(NULL),
226 preallocated_memory_thread_(NULL), 226 preallocated_memory_thread_(NULL),
227 preallocated_message_space_(NULL), 227 preallocated_message_space_(NULL),
228 bootstrapper_(NULL), 228 bootstrapper_(NULL),
229 compilation_cache_(new CompilationCache()), 229 compilation_cache_(new CompilationCache()),
230 cpu_features_(NULL), 230 cpu_features_(NULL),
231 code_range_(new CodeRange()), 231 code_range_(new CodeRange()),
232 break_access_(OS::CreateMutex()), 232 break_access_(OS::CreateMutex()),
233 stats_table_(new StatsTable()),
233 stub_cache_(NULL), 234 stub_cache_(NULL),
234 transcendental_cache_(new TranscendentalCache()), 235 transcendental_cache_(new TranscendentalCache()),
235 memory_allocator_(new MemoryAllocator()), 236 memory_allocator_(new MemoryAllocator()),
236 keyed_lookup_cache_(new KeyedLookupCache()), 237 keyed_lookup_cache_(new KeyedLookupCache()),
237 context_slot_cache_(new ContextSlotCache()), 238 context_slot_cache_(new ContextSlotCache()),
238 descriptor_lookup_cache_(new DescriptorLookupCache()), 239 descriptor_lookup_cache_(new DescriptorLookupCache()),
239 handle_scope_implementer_(NULL), 240 handle_scope_implementer_(NULL),
240 scanner_character_classes_(new ScannerCharacterClasses()) { 241 scanner_character_classes_(new ScannerCharacterClasses()) {
241 memset(isolate_addresses_, 0, 242 memset(isolate_addresses_, 0,
242 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); 243 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1));
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 descriptor_lookup_cache_ = NULL; 306 descriptor_lookup_cache_ = NULL;
306 delete context_slot_cache_; 307 delete context_slot_cache_;
307 context_slot_cache_ = NULL; 308 context_slot_cache_ = NULL;
308 delete keyed_lookup_cache_; 309 delete keyed_lookup_cache_;
309 keyed_lookup_cache_ = NULL; 310 keyed_lookup_cache_ = NULL;
310 311
311 delete transcendental_cache_; 312 delete transcendental_cache_;
312 transcendental_cache_ = NULL; 313 transcendental_cache_ = NULL;
313 delete stub_cache_; 314 delete stub_cache_;
314 stub_cache_ = NULL; 315 stub_cache_ = NULL;
316 delete stats_table_;
317 stats_table_ = NULL;
318
315 delete cpu_features_; 319 delete cpu_features_;
316 cpu_features_ = NULL; 320 cpu_features_ = NULL;
317 delete compilation_cache_; 321 delete compilation_cache_;
318 compilation_cache_ = NULL; 322 compilation_cache_ = NULL;
319 delete bootstrapper_; 323 delete bootstrapper_;
320 bootstrapper_ = NULL; 324 bootstrapper_ = NULL;
321 325
322 delete memory_allocator_; 326 delete memory_allocator_;
323 memory_allocator_ = NULL; 327 memory_allocator_ = NULL;
324 delete code_range_; 328 delete code_range_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 LOG(LogCodeObjects()); 463 LOG(LogCodeObjects());
460 LOG(LogCompiledFunctions()); 464 LOG(LogCompiledFunctions());
461 } 465 }
462 466
463 state_ = INITIALIZED; 467 state_ = INITIALIZED;
464 return true; 468 return true;
465 } 469 }
466 470
467 471
468 } } // namespace v8::internal 472 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698