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

Side by Side Diff: src/isolate.cc

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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') | src/lithium.h » ('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 22 matching lines...) Expand all
33 #include "bootstrapper.h" 33 #include "bootstrapper.h"
34 #include "codegen.h" 34 #include "codegen.h"
35 #include "compilation-cache.h" 35 #include "compilation-cache.h"
36 #include "debug.h" 36 #include "debug.h"
37 #include "deoptimizer.h" 37 #include "deoptimizer.h"
38 #include "heap-profiler.h" 38 #include "heap-profiler.h"
39 #include "hydrogen.h" 39 #include "hydrogen.h"
40 #include "isolate.h" 40 #include "isolate.h"
41 #include "lithium-allocator.h" 41 #include "lithium-allocator.h"
42 #include "log.h" 42 #include "log.h"
43 #include "oprofile-agent.h"
44 #include "regexp-stack.h" 43 #include "regexp-stack.h"
45 #include "runtime-profiler.h" 44 #include "runtime-profiler.h"
46 #include "scanner.h" 45 #include "scanner.h"
47 #include "scopeinfo.h" 46 #include "scopeinfo.h"
48 #include "serialize.h" 47 #include "serialize.h"
49 #include "simulator.h" 48 #include "simulator.h"
50 #include "spaces.h" 49 #include "spaces.h"
51 #include "stub-cache.h" 50 #include "stub-cache.h"
52 #include "version.h" 51 #include "version.h"
53 52
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 if (state_ == INITIALIZED) { 431 if (state_ == INITIALIZED) {
433 TRACE_ISOLATE(deinit); 432 TRACE_ISOLATE(deinit);
434 433
435 if (FLAG_time_hydrogen) HStatistics::Instance()->Print(); 434 if (FLAG_time_hydrogen) HStatistics::Instance()->Print();
436 435
437 // We must stop the logger before we tear down other components. 436 // We must stop the logger before we tear down other components.
438 logger_->EnsureTickerStopped(); 437 logger_->EnsureTickerStopped();
439 438
440 delete deoptimizer_data_; 439 delete deoptimizer_data_;
441 deoptimizer_data_ = NULL; 440 deoptimizer_data_ = NULL;
442 OProfileAgent::TearDown();
443 if (FLAG_preemption) { 441 if (FLAG_preemption) {
444 v8::Locker locker; 442 v8::Locker locker;
445 v8::Locker::StopPreemption(); 443 v8::Locker::StopPreemption();
446 } 444 }
447 builtins_.TearDown(); 445 builtins_.TearDown();
448 bootstrapper_->TearDown(); 446 bootstrapper_->TearDown();
449 447
450 // Remove the external reference to the preallocated stack memory. 448 // Remove the external reference to the preallocated stack memory.
451 delete preallocated_message_space_; 449 delete preallocated_message_space_;
452 preallocated_message_space_ = NULL; 450 preallocated_message_space_ = NULL;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 702
705 // Deserializing may put strange things in the root array's copy of the 703 // Deserializing may put strange things in the root array's copy of the
706 // stack guard. 704 // stack guard.
707 heap_.SetStackLimits(); 705 heap_.SetStackLimits();
708 706
709 // Setup the CPU support. Must be done after heap setup and after 707 // Setup the CPU support. Must be done after heap setup and after
710 // any deserialization because we have to have the initial heap 708 // any deserialization because we have to have the initial heap
711 // objects in place for creating the code object used for probing. 709 // objects in place for creating the code object used for probing.
712 CPU::Setup(); 710 CPU::Setup();
713 711
714 OProfileAgent::Initialize();
715 deoptimizer_data_ = new DeoptimizerData; 712 deoptimizer_data_ = new DeoptimizerData;
716 runtime_profiler_ = new RuntimeProfiler(this); 713 runtime_profiler_ = new RuntimeProfiler(this);
717 runtime_profiler_->Setup(); 714 runtime_profiler_->Setup();
718 715
719 // If we are deserializing, log non-function code objects and compiled 716 // If we are deserializing, log non-function code objects and compiled
720 // functions found in the snapshot. 717 // functions found in the snapshot.
721 if (des != NULL && FLAG_log_code) { 718 if (des != NULL && FLAG_log_code) {
722 HandleScope scope; 719 HandleScope scope;
723 LOG(LogCodeObjects()); 720 LOG(LogCodeObjects());
724 LOG(LogCompiledFunctions()); 721 LOG(LogCompiledFunctions());
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 // Reinit the current thread for the isolate it was running before this one. 795 // Reinit the current thread for the isolate it was running before this one.
799 SetIsolateThreadLocals(previous_isolate, previous_thread_data); 796 SetIsolateThreadLocals(previous_isolate, previous_thread_data);
800 } 797 }
801 798
802 799
803 void Isolate::ResetEagerOptimizingData() { 800 void Isolate::ResetEagerOptimizingData() {
804 compilation_cache_->ResetEagerOptimizingData(); 801 compilation_cache_->ResetEagerOptimizingData();
805 } 802 }
806 803
807 } } // namespace v8::internal 804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698