OLD | NEW |
---|---|
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 23 matching lines...) Expand all Loading... | |
34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
35 #include "platform/heap/GarbageCollected.h" | 35 #include "platform/heap/GarbageCollected.h" |
36 #include "platform/heap/StackFrameDepth.h" | 36 #include "platform/heap/StackFrameDepth.h" |
37 #include "platform/heap/ThreadState.h" | 37 #include "platform/heap/ThreadState.h" |
38 #include "wtf/Assertions.h" | 38 #include "wtf/Assertions.h" |
39 #include "wtf/Atomics.h" | 39 #include "wtf/Atomics.h" |
40 #include "wtf/Deque.h" | 40 #include "wtf/Deque.h" |
41 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
42 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
43 #include "wtf/HashTraits.h" | 43 #include "wtf/HashTraits.h" |
44 #include "wtf/MainThread.h" | |
44 #include "wtf/TypeTraits.h" | 45 #include "wtf/TypeTraits.h" |
45 #if ENABLE(GC_PROFILING) | 46 #if ENABLE(GC_PROFILING) |
46 #include "wtf/InstanceCounter.h" | 47 #include "wtf/InstanceCounter.h" |
47 #include "wtf/text/WTFString.h" | 48 #include "wtf/text/WTFString.h" |
48 #endif | 49 #endif |
49 | 50 |
50 namespace blink { | 51 namespace blink { |
51 | 52 |
52 template<typename T> class GarbageCollected; | 53 template<typename T> class GarbageCollected; |
53 class HeapObjectHeader; | 54 class HeapObjectHeader; |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
383 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c ast<Visitor*>(helper); } | 384 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c ast<Visitor*>(helper); } |
384 | 385 |
385 const MarkingMode m_markingMode; | 386 const MarkingMode m_markingMode; |
386 bool m_isGlobalMarkingVisitor; | 387 bool m_isGlobalMarkingVisitor; |
387 }; | 388 }; |
388 | 389 |
389 template<typename T> | 390 template<typename T> |
390 struct TypenameStringTrait { | 391 struct TypenameStringTrait { |
391 static const String& get() | 392 static const String& get() |
392 { | 393 { |
394 ASSERT(isMainThread()); | |
haraken
2015/08/12 12:33:41
It is not guaranteed that get() is called only by
| |
393 DEFINE_STATIC_LOCAL(String, typenameString, (WTF::extractTypeNameFromFun ctionName(WTF::extractNameFunction<T>()))); | 395 DEFINE_STATIC_LOCAL(String, typenameString, (WTF::extractTypeNameFromFun ctionName(WTF::extractNameFunction<T>()))); |
394 return typenameString; | 396 return typenameString; |
395 } | 397 } |
396 }; | 398 }; |
397 | 399 |
398 } // namespace blink | 400 } // namespace blink |
399 | 401 |
400 #endif // Visitor_h | 402 #endif // Visitor_h |
OLD | NEW |