OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2559 class NoTrackDoubleFieldsForSerializerScope { | 2559 class NoTrackDoubleFieldsForSerializerScope { |
2560 public: | 2560 public: |
2561 NoTrackDoubleFieldsForSerializerScope() : flag_(FLAG_track_double_fields) { | 2561 NoTrackDoubleFieldsForSerializerScope() : flag_(FLAG_track_double_fields) { |
2562 if (Serializer::enabled()) { | 2562 if (Serializer::enabled()) { |
2563 // Disable tracking double fields because heap numbers treated as | 2563 // Disable tracking double fields because heap numbers treated as |
2564 // immutable by the serializer. | 2564 // immutable by the serializer. |
2565 FLAG_track_double_fields = false; | 2565 FLAG_track_double_fields = false; |
2566 } | 2566 } |
2567 } | 2567 } |
2568 ~NoTrackDoubleFieldsForSerializerScope() { | 2568 ~NoTrackDoubleFieldsForSerializerScope() { |
2569 FLAG_track_double_fields = flag_; | 2569 if (Serializer::enabled()) { |
| 2570 FLAG_track_double_fields = flag_; |
| 2571 } |
2570 } | 2572 } |
2571 | 2573 |
2572 private: | 2574 private: |
2573 bool flag_; | 2575 bool flag_; |
2574 }; | 2576 }; |
2575 | 2577 |
2576 | 2578 |
2577 Genesis::Genesis(Isolate* isolate, | 2579 Genesis::Genesis(Isolate* isolate, |
2578 Handle<Object> global_object, | 2580 Handle<Object> global_object, |
2579 v8::Handle<v8::ObjectTemplate> global_template, | 2581 v8::Handle<v8::ObjectTemplate> global_template, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2731 return from + sizeof(NestingCounterType); | 2733 return from + sizeof(NestingCounterType); |
2732 } | 2734 } |
2733 | 2735 |
2734 | 2736 |
2735 // Called when the top-level V8 mutex is destroyed. | 2737 // Called when the top-level V8 mutex is destroyed. |
2736 void Bootstrapper::FreeThreadResources() { | 2738 void Bootstrapper::FreeThreadResources() { |
2737 ASSERT(!IsActive()); | 2739 ASSERT(!IsActive()); |
2738 } | 2740 } |
2739 | 2741 |
2740 } } // namespace v8::internal | 2742 } } // namespace v8::internal |
OLD | NEW |