| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 775db592f21ad741a0c89938e5808b6ea2d04f03..8cecfd1a49df50addd7ed0f473480a20d650e9e3 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2507,15 +2507,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_;
|
| }
|
| }
|
| @@ -2598,7 +2598,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;
|
|
|