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

Unified Diff: src/isolate.h

Issue 296853007: Make serializer non-static. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/incremental-marking.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 3a675106439881b854363a2275ecac145383cd77..b7bf97ebbafbf59aaed86c7dc5596af63e297022 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -963,10 +963,16 @@ class Isolate {
THREAD_LOCAL_TOP_ACCESSOR(LookupResult*, top_lookup_result)
+ void enable_serializer() { serializer_enabled_ = true; }
+
+ bool serializer_enabled() { return serializer_enabled_; }
Sven Panne 2014/05/22 08:04:15 const
Yang 2014/05/22 08:46:06 Done.
+
bool IsDead() { return has_fatal_error_; }
void SignalFatalError() { has_fatal_error_ = true; }
- bool use_crankshaft() const { return use_crankshaft_; }
+ bool use_crankshaft() const {
+ return use_crankshaft_ && !serializer_enabled_;
Sven Panne 2014/05/22 08:04:15 Hmmm, why do we need this additional term?
Yang 2014/05/22 08:46:06 My mistake. Some point during refactoring I though
+ }
bool initialized_from_snapshot() { return initialized_from_snapshot_; }
@@ -1232,6 +1238,9 @@ class Isolate {
CallInterfaceDescriptor* call_descriptors_;
RandomNumberGenerator* random_number_generator_;
+ // Whether the isolate has been created for snapshotting.
+ bool serializer_enabled_;
+
// True if fatal error has been signaled for this isolate.
bool has_fatal_error_;
« no previous file with comments | « src/incremental-marking.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698