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

Side by Side Diff: src/heap/mark-compact.cc

Issue 960493003: Remove JITCodeEvent::CODE_REMOVED (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 10 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/heap/mark-compact.h ('k') | src/heap/spaces.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698