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

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

Issue 10824032: Enables V8 integration with the Intel VTune performance analysis tool. This allows the VTune profi… (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 #ifdef DEBUG 682 #ifdef DEBUG
683 ASSERT(state_ == IDLE); 683 ASSERT(state_ == IDLE);
684 state_ = PREPARE_GC; 684 state_ = PREPARE_GC;
685 #endif 685 #endif
686 686
687 ASSERT(!FLAG_never_compact || !FLAG_always_compact); 687 ASSERT(!FLAG_never_compact || !FLAG_always_compact);
688 688
689 #ifdef ENABLE_GDB_JIT_INTERFACE 689 #ifdef ENABLE_GDB_JIT_INTERFACE
690 if (FLAG_gdbjit) { 690 if (FLAG_gdbjit) {
691 // If GDBJIT interface is active disable compaction. 691 // If GDBJIT interface is active disable compaction.
692 compacting_collection_ = false; 692 compacting_ = false;
693 } 693 }
694 #endif 694 #endif
695 // For now, set compacting to false when vtune is running.
696 // Ideally we want to communicate the code movement.
697 if (VTUNERUNNING)
698 compacting_ = false;
danno 2012/08/02 12:38:11 Can you extend siggi's SetJitCodeEventHandler API
695 699
696 // Clear marking bits if incremental marking is aborted. 700 // Clear marking bits if incremental marking is aborted.
697 if (was_marked_incrementally_ && abort_incremental_marking_) { 701 if (was_marked_incrementally_ && abort_incremental_marking_) {
698 heap()->incremental_marking()->Abort(); 702 heap()->incremental_marking()->Abort();
699 ClearMarkbits(); 703 ClearMarkbits();
700 AbortCompaction(); 704 AbortCompaction();
701 was_marked_incrementally_ = false; 705 was_marked_incrementally_ = false;
702 } 706 }
703 707
704 // Don't start compaction if we are in the middle of incremental 708 // Don't start compaction if we are in the middle of incremental
(...skipping 3574 matching lines...) Expand 10 before | Expand all | Expand 10 after
4279 while (buffer != NULL) { 4283 while (buffer != NULL) {
4280 SlotsBuffer* next_buffer = buffer->next(); 4284 SlotsBuffer* next_buffer = buffer->next();
4281 DeallocateBuffer(buffer); 4285 DeallocateBuffer(buffer);
4282 buffer = next_buffer; 4286 buffer = next_buffer;
4283 } 4287 }
4284 *buffer_address = NULL; 4288 *buffer_address = NULL;
4285 } 4289 }
4286 4290
4287 4291
4288 } } // namespace v8::internal 4292 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698