Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index f99c852eaf0a23ff24ad698694c60603cb4d0a02..6e2a237c789c3a07b660c05daaa43c61b04bc2b6 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2505,7 +2505,8 @@ void Genesis::MakeFunctionInstancePrototypeWritable() { |
class NoTrackDoubleFieldsForSerializerScope { |
public: |
- NoTrackDoubleFieldsForSerializerScope() : flag_(FLAG_track_double_fields) { |
+ explicit NoTrackDoubleFieldsForSerializerScope(Isolate* isolate) |
+ : isolate_(isolate), flag_(FLAG_track_double_fields) { |
if (Serializer::enabled()) { |
// Disable tracking double fields because heap numbers treated as |
// immutable by the serializer. |
@@ -2519,6 +2520,7 @@ class NoTrackDoubleFieldsForSerializerScope { |
} |
private: |
+ Isolate* isolate_; |
bool flag_; |
}; |
@@ -2529,7 +2531,7 @@ Genesis::Genesis(Isolate* isolate, |
v8::ExtensionConfiguration* extensions) |
: isolate_(isolate), |
active_(isolate->bootstrapper()) { |
- NoTrackDoubleFieldsForSerializerScope disable_double_tracking_for_serializer; |
+ NoTrackDoubleFieldsForSerializerScope disable_scope(isolate); |
result_ = Handle<Context>::null(); |
// If V8 cannot be initialized, just return. |
if (!V8::Initialize(NULL)) return; |