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

Side by Side Diff: Source/heap/Visitor.h

Issue 192473003: Move CSSRuleList to the garbage collected heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove outdated comment on CSSRule.h Created 6 years, 9 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 { 360 {
361 return isAlive(member.get()); 361 return isAlive(member.get());
362 } 362 }
363 363
364 #ifndef NDEBUG 364 #ifndef NDEBUG
365 void checkGCInfo(const void*, const GCInfo*); 365 void checkGCInfo(const void*, const GCInfo*);
366 #endif 366 #endif
367 367
368 // Macro to declare methods needed for each typed heap. 368 // Macro to declare methods needed for each typed heap.
369 #define DECLARE_VISITOR_METHODS(Type) \ 369 #define DECLARE_VISITOR_METHODS(Type) \
370 DEBUG_ONLY(void checkGCInfo(const Type*, const GCInfo*);) \ 370 DEBUG_ONLY(void checkGCInfo(const Type*, const GCInfo*);) \
371 virtual void mark(const Type*, TraceCallback) = 0; \ 371 virtual void mark(const Type*, TraceCallback) = 0; \
372 virtual bool isMarked(const Type*) = 0; 372 virtual bool isMarked(const Type*) = 0;
373 373
374 FOR_EACH_TYPED_HEAP(DECLARE_VISITOR_METHODS) 374 FOR_EACH_TYPED_HEAP(DECLARE_VISITOR_METHODS)
375 #undef DECLARE_VISITOR_METHODS 375 #undef DECLARE_VISITOR_METHODS
376 376
377 private: 377 private:
378 template<typename T> 378 template<typename T>
379 static void handleWeakCell(Visitor* self, void* obj) 379 static void handleWeakCell(Visitor* self, void* obj)
380 { 380 {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 struct GCInfoTrait { 644 struct GCInfoTrait {
645 static const GCInfo* get() 645 static const GCInfo* get()
646 { 646 {
647 return GCInfoAtBase<typename GetGarbageCollectedBase<T>::type>::get(); 647 return GCInfoAtBase<typename GetGarbageCollectedBase<T>::type>::get();
648 } 648 }
649 }; 649 };
650 650
651 } 651 }
652 652
653 #endif 653 #endif
OLDNEW
« Source/core/dom/StyleEngine.h ('K') | « Source/core/xml/XSLStyleSheet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698