Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 3419a6ea0323e99a26ae882eb6e9a6130cdb4b1d..4f56394ef31e988f773b2408b747e5588cfcc8fb 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2514,15 +2514,15 @@ class NoTrackDoubleFieldsForSerializerScope { |
public: |
explicit NoTrackDoubleFieldsForSerializerScope(Isolate* isolate) |
: isolate_(isolate), flag_(FLAG_track_double_fields) { |
- if (Serializer::enabled()) { |
+ if (Serializer::enabled(isolate)) { |
// Disable tracking double fields because heap numbers treated as |
// immutable by the serializer. |
FLAG_track_double_fields = false; |
} |
- USE(isolate_); |
} |
+ |
~NoTrackDoubleFieldsForSerializerScope() { |
- if (Serializer::enabled()) { |
+ if (Serializer::enabled(isolate_)) { |
FLAG_track_double_fields = flag_; |
} |
} |
@@ -2605,7 +2605,7 @@ Genesis::Genesis(Isolate* isolate, |
// We can't (de-)serialize typed arrays currently, but we are lucky: The state |
// of the random number generator needs no initialization during snapshot |
// creation time and we don't need trigonometric functions then. |
- if (!Serializer::enabled()) { |
+ if (!Serializer::enabled(isolate)) { |
// Initially seed the per-context random number generator using the |
// per-isolate random number generator. |
const int num_elems = 2; |