OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef V8_SPACES_INL_H_ | 5 #ifndef V8_SPACES_INL_H_ |
6 #define V8_SPACES_INL_H_ | 6 #define V8_SPACES_INL_H_ |
7 | 7 |
8 #include "heap-profiler.h" | 8 #include "src/heap-profiler.h" |
9 #include "isolate.h" | 9 #include "src/isolate.h" |
10 #include "spaces.h" | 10 #include "src/spaces.h" |
11 #include "v8memory.h" | 11 #include "src/v8memory.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 | 16 |
17 // ----------------------------------------------------------------------------- | 17 // ----------------------------------------------------------------------------- |
18 // Bitmap | 18 // Bitmap |
19 | 19 |
20 void Bitmap::Clear(MemoryChunk* chunk) { | 20 void Bitmap::Clear(MemoryChunk* chunk) { |
21 Bitmap* bitmap = chunk->markbits(); | 21 Bitmap* bitmap = chunk->markbits(); |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 Map* map = object->map(); | 318 Map* map = object->map(); |
319 Heap* heap = object->GetHeap(); | 319 Heap* heap = object->GetHeap(); |
320 return map == heap->raw_unchecked_free_space_map() | 320 return map == heap->raw_unchecked_free_space_map() |
321 || map == heap->raw_unchecked_one_pointer_filler_map() | 321 || map == heap->raw_unchecked_one_pointer_filler_map() |
322 || map == heap->raw_unchecked_two_pointer_filler_map(); | 322 || map == heap->raw_unchecked_two_pointer_filler_map(); |
323 } | 323 } |
324 | 324 |
325 } } // namespace v8::internal | 325 } } // namespace v8::internal |
326 | 326 |
327 #endif // V8_SPACES_INL_H_ | 327 #endif // V8_SPACES_INL_H_ |
OLD | NEW |