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

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

Issue 1162403003: Oilpan: Remove checkMarkingAllowed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/platform/heap/MarkingVisitorImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 { } 400 { }
401 401
402 virtual void registerWeakCellWithCallback(void**, WeakCallback) = 0; 402 virtual void registerWeakCellWithCallback(void**, WeakCallback) = 0;
403 #if ENABLE(GC_PROFILING) 403 #if ENABLE(GC_PROFILING)
404 virtual void recordObjectGraphEdge(const void*) = 0; 404 virtual void recordObjectGraphEdge(const void*) = 0;
405 405
406 void* m_hostObject; 406 void* m_hostObject;
407 String m_hostName; 407 String m_hostName;
408 #endif 408 #endif
409 409
410 #if ENABLE(ASSERT)
411 virtual void checkMarkingAllowed() { }
412 #endif
413
414 private: 410 private:
415 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c ast<Visitor*>(helper); } 411 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c ast<Visitor*>(helper); }
416 412
417 bool m_isGlobalMarkingVisitor; 413 bool m_isGlobalMarkingVisitor;
418 }; 414 };
419 415
420 #if ENABLE(GC_PROFILING) 416 #if ENABLE(GC_PROFILING)
421 template<typename T> 417 template<typename T>
422 struct TypenameStringTrait { 418 struct TypenameStringTrait {
423 static const String& get() 419 static const String& get()
424 { 420 {
425 DEFINE_STATIC_LOCAL(String, typenameString, (WTF::extractTypeNameFromFun ctionName(WTF::extractNameFunction<T>()))); 421 DEFINE_STATIC_LOCAL(String, typenameString, (WTF::extractTypeNameFromFun ctionName(WTF::extractNameFunction<T>())));
426 return typenameString; 422 return typenameString;
427 } 423 }
428 }; 424 };
429 #endif 425 #endif
430 426
431 } // namespace blink 427 } // namespace blink
432 428
433 #endif // Visitor_h 429 #endif // Visitor_h
OLDNEW
« no previous file with comments | « Source/platform/heap/MarkingVisitorImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698