| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/base/atomicops.h" | 7 #include "src/base/atomicops.h" |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
| (...skipping 4219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4230 delete code_flusher_; | 4230 delete code_flusher_; |
| 4231 code_flusher_ = NULL; | 4231 code_flusher_ = NULL; |
| 4232 } | 4232 } |
| 4233 | 4233 |
| 4234 if (FLAG_trace_code_flushing) { | 4234 if (FLAG_trace_code_flushing) { |
| 4235 PrintF("[code-flushing is now %s]\n", enable ? "on" : "off"); | 4235 PrintF("[code-flushing is now %s]\n", enable ? "on" : "off"); |
| 4236 } | 4236 } |
| 4237 } | 4237 } |
| 4238 | 4238 |
| 4239 | 4239 |
| 4240 // TODO(1466) ReportDeleteIfNeeded is not called currently. | |
| 4241 // Our profiling tools do not expect intersections between | |
| 4242 // code objects. We should either reenable it or change our tools. | |
| 4243 void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj, | |
| 4244 Isolate* isolate) { | |
| 4245 if (obj->IsCode()) { | |
| 4246 PROFILE(isolate, CodeDeleteEvent(obj->address())); | |
| 4247 } | |
| 4248 } | |
| 4249 | |
| 4250 | |
| 4251 Isolate* MarkCompactCollector::isolate() const { return heap_->isolate(); } | 4240 Isolate* MarkCompactCollector::isolate() const { return heap_->isolate(); } |
| 4252 | 4241 |
| 4253 | 4242 |
| 4254 void MarkCompactCollector::Initialize() { | 4243 void MarkCompactCollector::Initialize() { |
| 4255 MarkCompactMarkingVisitor::Initialize(); | 4244 MarkCompactMarkingVisitor::Initialize(); |
| 4256 IncrementalMarking::Initialize(); | 4245 IncrementalMarking::Initialize(); |
| 4257 } | 4246 } |
| 4258 | 4247 |
| 4259 | 4248 |
| 4260 bool SlotsBuffer::IsTypedSlot(ObjectSlot slot) { | 4249 bool SlotsBuffer::IsTypedSlot(ObjectSlot slot) { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4415 SlotsBuffer* buffer = *buffer_address; | 4404 SlotsBuffer* buffer = *buffer_address; |
| 4416 while (buffer != NULL) { | 4405 while (buffer != NULL) { |
| 4417 SlotsBuffer* next_buffer = buffer->next(); | 4406 SlotsBuffer* next_buffer = buffer->next(); |
| 4418 DeallocateBuffer(buffer); | 4407 DeallocateBuffer(buffer); |
| 4419 buffer = next_buffer; | 4408 buffer = next_buffer; |
| 4420 } | 4409 } |
| 4421 *buffer_address = NULL; | 4410 *buffer_address = NULL; |
| 4422 } | 4411 } |
| 4423 } | 4412 } |
| 4424 } // namespace v8::internal | 4413 } // namespace v8::internal |
| OLD | NEW |