OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/heap/scavenger.h" | 5 #include "src/heap/scavenger.h" |
6 | 6 |
7 #include "src/contexts.h" | 7 #include "src/contexts.h" |
8 #include "src/cpu-profiler.h" | |
9 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
10 #include "src/heap/objects-visiting-inl.h" | 9 #include "src/heap/objects-visiting-inl.h" |
11 #include "src/heap/scavenger-inl.h" | 10 #include "src/heap/scavenger-inl.h" |
12 #include "src/isolate.h" | 11 #include "src/isolate.h" |
13 #include "src/log.h" | 12 #include "src/log.h" |
| 13 #include "src/profiler/cpu-profiler.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 enum LoggingAndProfiling { | 18 enum LoggingAndProfiling { |
19 LOGGING_AND_PROFILING_ENABLED, | 19 LOGGING_AND_PROFILING_ENABLED, |
20 LOGGING_AND_PROFILING_DISABLED | 20 LOGGING_AND_PROFILING_DISABLED |
21 }; | 21 }; |
22 | 22 |
23 | 23 |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 487 |
488 void ScavengeVisitor::ScavengePointer(Object** p) { | 488 void ScavengeVisitor::ScavengePointer(Object** p) { |
489 Object* object = *p; | 489 Object* object = *p; |
490 if (!heap_->InNewSpace(object)) return; | 490 if (!heap_->InNewSpace(object)) return; |
491 Scavenger::ScavengeObject(reinterpret_cast<HeapObject**>(p), | 491 Scavenger::ScavengeObject(reinterpret_cast<HeapObject**>(p), |
492 reinterpret_cast<HeapObject*>(object)); | 492 reinterpret_cast<HeapObject*>(object)); |
493 } | 493 } |
494 | 494 |
495 } // namespace internal | 495 } // namespace internal |
496 } // namespace v8 | 496 } // namespace v8 |
OLD | NEW |