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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 public: | 393 public: |
394 VisitorScope(ThreadState*, BlinkGC::GCType); | 394 VisitorScope(ThreadState*, BlinkGC::GCType); |
395 ~VisitorScope(); | 395 ~VisitorScope(); |
396 Visitor* visitor() const { return m_visitor.get(); } | 396 Visitor* visitor() const { return m_visitor.get(); } |
397 | 397 |
398 private: | 398 private: |
399 ThreadState* m_state; | 399 ThreadState* m_state; |
400 OwnPtr<Visitor> m_visitor; | 400 OwnPtr<Visitor> m_visitor; |
401 }; | 401 }; |
402 | 402 |
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 | 403 } // namespace blink |
415 | 404 |
416 #endif // Visitor_h | 405 #endif // Visitor_h |
OLD | NEW |