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

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

Issue 11040021: Fix slot recording of code target patches. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ulan Degenbaev. Created 8 years, 2 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/ic-inl.h ('k') | src/mark-compact.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 // 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // pointers to evacuated objects. 567 // pointers to evacuated objects.
568 if (page->owner()->identity() == OLD_DATA_SPACE) { 568 if (page->owner()->identity() == OLD_DATA_SPACE) {
569 evacuation_candidates_.RemoveElement(page); 569 evacuation_candidates_.RemoveElement(page);
570 } else { 570 } else {
571 page->SetFlag(Page::RESCAN_ON_EVACUATION); 571 page->SetFlag(Page::RESCAN_ON_EVACUATION);
572 } 572 }
573 } 573 }
574 574
575 void RecordRelocSlot(RelocInfo* rinfo, Object* target); 575 void RecordRelocSlot(RelocInfo* rinfo, Object* target);
576 void RecordCodeEntrySlot(Address slot, Code* target); 576 void RecordCodeEntrySlot(Address slot, Code* target);
577 void RecordCodeTargetPatch(Address pc, Code* target);
577 578
578 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); 579 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object));
579 580
580 void MigrateObject(Address dst, 581 void MigrateObject(Address dst,
581 Address src, 582 Address src,
582 int size, 583 int size,
583 AllocationSpace to_old_space); 584 AllocationSpace to_old_space);
584 585
585 bool TryPromoteObject(HeapObject* object, int object_size); 586 bool TryPromoteObject(HeapObject* object, int object_size);
586 587
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 795
795 friend class Heap; 796 friend class Heap;
796 }; 797 };
797 798
798 799
799 const char* AllocationSpaceName(AllocationSpace space); 800 const char* AllocationSpaceName(AllocationSpace space);
800 801
801 } } // namespace v8::internal 802 } } // namespace v8::internal
802 803
803 #endif // V8_MARK_COMPACT_H_ 804 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/ic-inl.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698