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

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

Issue 9159009: Robustify the clearing of the cache of map-related ICs on the map. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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 | « no previous file | 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 // from being flushed. 617 // from being flushed.
618 void PrepareThreadForCodeFlushing(Isolate* isolate, ThreadLocalTop* top); 618 void PrepareThreadForCodeFlushing(Isolate* isolate, ThreadLocalTop* top);
619 619
620 void PrepareForCodeFlushing(); 620 void PrepareForCodeFlushing();
621 621
622 // Marking operations for objects reachable from roots. 622 // Marking operations for objects reachable from roots.
623 void MarkLiveObjects(); 623 void MarkLiveObjects();
624 624
625 void AfterMarking(); 625 void AfterMarking();
626 626
627 // Marks the object black and pushes it on the marking stack.
628 // This is for non-incremental marking.
627 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); 629 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit));
628 630
631 // Marks the object black. This is for non-incremental marking.
629 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); 632 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit));
630 633
634 // Clears the cache of ICs related to this map.
635 INLINE(void ClearCacheOnMap(Map* map));
636
631 void ProcessNewlyMarkedObject(HeapObject* obj); 637 void ProcessNewlyMarkedObject(HeapObject* obj);
632 638
633 // Creates back pointers for all map transitions, stores them in 639 // Creates back pointers for all map transitions, stores them in
634 // the prototype field. The original prototype pointers are restored 640 // the prototype field. The original prototype pointers are restored
635 // in ClearNonLiveTransitions(). All JSObject maps 641 // in ClearNonLiveTransitions(). All JSObject maps
636 // connected by map transitions have the same prototype object, which 642 // connected by map transitions have the same prototype object, which
637 // is why we can use this field temporarily for back pointers. 643 // is why we can use this field temporarily for back pointers.
638 void CreateBackPointers(); 644 void CreateBackPointers();
639 645
640 // Mark a Map and its DescriptorArray together, skipping transitions. 646 // Mark a Map and its DescriptorArray together, skipping transitions.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 753
748 friend class Heap; 754 friend class Heap;
749 }; 755 };
750 756
751 757
752 const char* AllocationSpaceName(AllocationSpace space); 758 const char* AllocationSpaceName(AllocationSpace space);
753 759
754 } } // namespace v8::internal 760 } } // namespace v8::internal
755 761
756 #endif // V8_MARK_COMPACT_H_ 762 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698