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 // TODO(mythria): Remove this define after this flag is turned on globally | 5 // TODO(mythria): Remove this define after this flag is turned on globally |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "src/heap/slots-buffer.h" | 8 #include "src/heap/slots-buffer.h" |
9 #include "test/cctest/cctest.h" | 9 #include "test/cctest/cctest.h" |
| 10 #include "test/cctest/heap/utils-inl.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 TEST(SlotsBufferObjectSlotsRemoval) { | 15 TEST(SlotsBufferObjectSlotsRemoval) { |
15 CcTest::InitializeVM(); | 16 CcTest::InitializeVM(); |
16 v8::HandleScope scope(CcTest::isolate()); | 17 v8::HandleScope scope(CcTest::isolate()); |
17 Isolate* isolate = CcTest::i_isolate(); | 18 Isolate* isolate = CcTest::i_isolate(); |
18 Heap* heap = isolate->heap(); | 19 Heap* heap = isolate->heap(); |
19 Factory* factory = isolate->factory(); | 20 Factory* factory = isolate->factory(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 mark_bit = Marking::MarkBitFrom(*new_space_object); | 127 mark_bit = Marking::MarkBitFrom(*new_space_object); |
127 Marking::MarkWhite(mark_bit); | 128 Marking::MarkWhite(mark_bit); |
128 mark_bit = Marking::MarkBitFrom(*old_space_object_non_evacuation); | 129 mark_bit = Marking::MarkBitFrom(*old_space_object_non_evacuation); |
129 Marking::MarkWhite(mark_bit); | 130 Marking::MarkWhite(mark_bit); |
130 | 131 |
131 delete buffer; | 132 delete buffer; |
132 } | 133 } |
133 | 134 |
134 } // namespace internal | 135 } // namespace internal |
135 } // namespace v8 | 136 } // namespace v8 |
OLD | NEW |