Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: src/bootstrapper.cc

Issue 250873003: Fix compilation with clang 5.1 on OS X. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assembler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698