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 24 matching lines...) Expand all Loading... |
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/Allocator.h" | 38 #include "wtf/Allocator.h" |
39 #include "wtf/Assertions.h" | 39 #include "wtf/Assertions.h" |
40 #include "wtf/Atomics.h" | 40 #include "wtf/Atomics.h" |
41 #include "wtf/Deque.h" | 41 #include "wtf/Deque.h" |
42 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
43 #include "wtf/HashMap.h" | 43 #include "wtf/HashMap.h" |
44 #include "wtf/HashTraits.h" | 44 #include "wtf/HashTraits.h" |
45 #include "wtf/InstanceCounter.h" | |
46 #include "wtf/TypeTraits.h" | 45 #include "wtf/TypeTraits.h" |
47 | 46 |
48 namespace blink { | 47 namespace blink { |
49 | 48 |
50 template<typename T> class GarbageCollected; | 49 template<typename T> class GarbageCollected; |
51 class HeapObjectHeader; | 50 class HeapObjectHeader; |
52 class InlinedGlobalMarkingVisitor; | 51 class InlinedGlobalMarkingVisitor; |
53 template<typename T> class TraceTrait; | 52 template<typename T> class TraceTrait; |
54 template<typename T> class TraceEagerlyTrait; | 53 template<typename T> class TraceEagerlyTrait; |
55 class ThreadState; | 54 class ThreadState; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 public: | 392 public: |
394 VisitorScope(ThreadState*, BlinkGC::GCType); | 393 VisitorScope(ThreadState*, BlinkGC::GCType); |
395 ~VisitorScope(); | 394 ~VisitorScope(); |
396 Visitor* visitor() const { return m_visitor.get(); } | 395 Visitor* visitor() const { return m_visitor.get(); } |
397 | 396 |
398 private: | 397 private: |
399 ThreadState* m_state; | 398 ThreadState* m_state; |
400 OwnPtr<Visitor> m_visitor; | 399 OwnPtr<Visitor> m_visitor; |
401 }; | 400 }; |
402 | 401 |
403 #if ENABLE(DETAILED_MEMORY_INFRA) | |
404 template<typename T> | |
405 struct TypenameStringTrait { | |
406 STATIC_ONLY(TypenameStringTrait); | |
407 static const String get() | |
408 { | |
409 return WTF::extractTypeNameFromFunctionName(WTF::extractNameFunction<T>(
)); | |
410 } | |
411 }; | |
412 #endif | |
413 | |
414 } // namespace blink | 402 } // namespace blink |
415 | 403 |
416 #endif // Visitor_h | 404 #endif // Visitor_h |
OLD | NEW |