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

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

Issue 387533003: Remove AddCode and RemoveCode GDB JIT entry hooks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: One miro fix. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/gdb-jit.cc ('k') | src/stub-cache.h » ('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/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compilation-cache.h" 9 #include "src/compilation-cache.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 4296 matching lines...) Expand 10 before | Expand all | Expand 10 after
4307 PrintF("[code-flushing is now %s]\n", enable ? "on" : "off"); 4307 PrintF("[code-flushing is now %s]\n", enable ? "on" : "off");
4308 } 4308 }
4309 } 4309 }
4310 4310
4311 4311
4312 // TODO(1466) ReportDeleteIfNeeded is not called currently. 4312 // TODO(1466) ReportDeleteIfNeeded is not called currently.
4313 // Our profiling tools do not expect intersections between 4313 // Our profiling tools do not expect intersections between
4314 // code objects. We should either reenable it or change our tools. 4314 // code objects. We should either reenable it or change our tools.
4315 void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj, 4315 void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj,
4316 Isolate* isolate) { 4316 Isolate* isolate) {
4317 #ifdef ENABLE_GDB_JIT_INTERFACE
4318 if (obj->IsCode()) {
4319 GDBJITInterface::RemoveCode(reinterpret_cast<Code*>(obj));
4320 }
4321 #endif
4322 if (obj->IsCode()) { 4317 if (obj->IsCode()) {
4323 PROFILE(isolate, CodeDeleteEvent(obj->address())); 4318 PROFILE(isolate, CodeDeleteEvent(obj->address()));
4324 } 4319 }
4325 } 4320 }
4326 4321
4327 4322
4328 Isolate* MarkCompactCollector::isolate() const { 4323 Isolate* MarkCompactCollector::isolate() const {
4329 return heap_->isolate(); 4324 return heap_->isolate();
4330 } 4325 }
4331 4326
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
4505 while (buffer != NULL) { 4500 while (buffer != NULL) {
4506 SlotsBuffer* next_buffer = buffer->next(); 4501 SlotsBuffer* next_buffer = buffer->next();
4507 DeallocateBuffer(buffer); 4502 DeallocateBuffer(buffer);
4508 buffer = next_buffer; 4503 buffer = next_buffer;
4509 } 4504 }
4510 *buffer_address = NULL; 4505 *buffer_address = NULL;
4511 } 4506 }
4512 4507
4513 4508
4514 } } // namespace v8::internal 4509 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698