| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bootstrapper.h" | 5 #include "bootstrapper.h" |
| 6 | 6 |
| 7 #include "accessors.h" | 7 #include "accessors.h" |
| 8 #include "isolate-inl.h" | 8 #include "isolate-inl.h" |
| 9 #include "natives.h" | 9 #include "natives.h" |
| 10 #include "snapshot.h" | 10 #include "snapshot.h" |
| (...skipping 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2505 | 2505 |
| 2506 class NoTrackDoubleFieldsForSerializerScope { | 2506 class NoTrackDoubleFieldsForSerializerScope { |
| 2507 public: | 2507 public: |
| 2508 explicit NoTrackDoubleFieldsForSerializerScope(Isolate* isolate) | 2508 explicit NoTrackDoubleFieldsForSerializerScope(Isolate* isolate) |
| 2509 : isolate_(isolate), flag_(FLAG_track_double_fields) { | 2509 : isolate_(isolate), flag_(FLAG_track_double_fields) { |
| 2510 if (Serializer::enabled()) { | 2510 if (Serializer::enabled()) { |
| 2511 // Disable tracking double fields because heap numbers treated as | 2511 // Disable tracking double fields because heap numbers treated as |
| 2512 // immutable by the serializer. | 2512 // immutable by the serializer. |
| 2513 FLAG_track_double_fields = false; | 2513 FLAG_track_double_fields = false; |
| 2514 } | 2514 } |
| 2515 USE(isolate_); |
| 2515 } | 2516 } |
| 2516 ~NoTrackDoubleFieldsForSerializerScope() { | 2517 ~NoTrackDoubleFieldsForSerializerScope() { |
| 2517 if (Serializer::enabled()) { | 2518 if (Serializer::enabled()) { |
| 2518 FLAG_track_double_fields = flag_; | 2519 FLAG_track_double_fields = flag_; |
| 2519 } | 2520 } |
| 2520 } | 2521 } |
| 2521 | 2522 |
| 2522 private: | 2523 private: |
| 2523 Isolate* isolate_; | 2524 Isolate* isolate_; |
| 2524 bool flag_; | 2525 bool flag_; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2685 return from + sizeof(NestingCounterType); | 2686 return from + sizeof(NestingCounterType); |
| 2686 } | 2687 } |
| 2687 | 2688 |
| 2688 | 2689 |
| 2689 // Called when the top-level V8 mutex is destroyed. | 2690 // Called when the top-level V8 mutex is destroyed. |
| 2690 void Bootstrapper::FreeThreadResources() { | 2691 void Bootstrapper::FreeThreadResources() { |
| 2691 ASSERT(!IsActive()); | 2692 ASSERT(!IsActive()); |
| 2692 } | 2693 } |
| 2693 | 2694 |
| 2694 } } // namespace v8::internal | 2695 } } // namespace v8::internal |
| OLD | NEW |