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

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

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 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/log-utils.cc ('k') | src/mips/code-stubs-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3237 matching lines...) Expand 10 before | Expand all | Expand 10 after
3248 } 3248 }
3249 3249
3250 3250
3251 void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj, 3251 void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj,
3252 Isolate* isolate) { 3252 Isolate* isolate) {
3253 #ifdef ENABLE_GDB_JIT_INTERFACE 3253 #ifdef ENABLE_GDB_JIT_INTERFACE
3254 if (obj->IsCode()) { 3254 if (obj->IsCode()) {
3255 GDBJITInterface::RemoveCode(reinterpret_cast<Code*>(obj)); 3255 GDBJITInterface::RemoveCode(reinterpret_cast<Code*>(obj));
3256 } 3256 }
3257 #endif 3257 #endif
3258 #ifdef ENABLE_LOGGING_AND_PROFILING
3259 if (obj->IsCode()) { 3258 if (obj->IsCode()) {
3260 PROFILE(isolate, CodeDeleteEvent(obj->address())); 3259 PROFILE(isolate, CodeDeleteEvent(obj->address()));
3261 } 3260 }
3262 #endif
3263 } 3261 }
3264 3262
3265 3263
3266 int MarkCompactCollector::SizeOfMarkedObject(HeapObject* obj) { 3264 int MarkCompactCollector::SizeOfMarkedObject(HeapObject* obj) {
3267 MapWord map_word = obj->map_word(); 3265 MapWord map_word = obj->map_word();
3268 map_word.ClearMark(); 3266 map_word.ClearMark();
3269 return obj->SizeFromMap(map_word.ToMap()); 3267 return obj->SizeFromMap(map_word.ToMap());
3270 } 3268 }
3271 3269
3272 3270
3273 void MarkCompactCollector::Initialize() { 3271 void MarkCompactCollector::Initialize() {
3274 StaticPointersToNewGenUpdatingVisitor::Initialize(); 3272 StaticPointersToNewGenUpdatingVisitor::Initialize();
3275 StaticMarkingVisitor::Initialize(); 3273 StaticMarkingVisitor::Initialize();
3276 } 3274 }
3277 3275
3278 3276
3279 } } // namespace v8::internal 3277 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log-utils.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698