| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |