Chromium Code Reviews| 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_; |