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

Unified Diff: src/isolate.cc

Issue 2840018: [Isolates] Moved more compilation-related globals (builtins, runtime, &c.)... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | src/liveedit.h » ('j') | src/runtime.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
===================================================================
--- src/isolate.cc (revision 4955)
+++ src/isolate.cc (working copy)
@@ -29,7 +29,9 @@
#include "v8.h"
+#include "ast.h"
#include "bootstrapper.h"
+#include "codegen.h"
#include "compilation-cache.h"
#include "debug.h"
#include "heap-profiler.h"
@@ -249,6 +251,7 @@
global_handles_(NULL),
context_switcher_(NULL),
thread_manager_(NULL),
+ ast_sentinels_(NULL),
string_tracker_(NULL) {
memset(isolate_addresses_, 0,
sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1));
@@ -295,7 +298,7 @@
v8::Locker locker;
v8::Locker::StopPreemption();
}
- Builtins::TearDown();
+ builtins_.TearDown();
bootstrapper_->TearDown();
// Remove the external reference to the preallocated stack memory.
@@ -311,6 +314,8 @@
delete scanner_character_classes_;
scanner_character_classes_ = NULL;
+ delete ast_sentinels_;
+ ast_sentinels_ = NULL;
delete descriptor_lookup_cache_;
descriptor_lookup_cache_ = NULL;
delete context_slot_cache_;
@@ -404,6 +409,7 @@
cpu_features_ = new CpuFeatures();
handle_scope_implementer_ = new HandleScopeImplementer();
stub_cache_ = new StubCache();
+ ast_sentinels_ = new AstSentinels();
#ifdef ENABLE_DEBUGGER_SUPPORT
debugger_ = new Debugger();
@@ -466,7 +472,7 @@
}
bootstrapper_->Initialize(create_heap_objects);
- Builtins::Setup(create_heap_objects);
+ builtins_.Setup(create_heap_objects);
InitializeThreadLocal();
« no previous file with comments | « src/isolate.h ('k') | src/liveedit.h » ('j') | src/runtime.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698