| 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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 // in release builds. | 771 // in release builds. |
| 772 // | 772 // |
| 773 // ASan adds extra stack usage, so disable the assert when it is | 773 // ASan adds extra stack usage, so disable the assert when it is |
| 774 // enabled so as to avoid testing against a much lower & too low, | 774 // enabled so as to avoid testing against a much lower & too low, |
| 775 // stack depth threshold. | 775 // stack depth threshold. |
| 776 // | 776 // |
| 777 // FIXME: visitor->isMarked(t) exception is to allow empty trace() | 777 // FIXME: visitor->isMarked(t) exception is to allow empty trace() |
| 778 // calls from HashTable weak processing. Remove the condition once | 778 // calls from HashTable weak processing. Remove the condition once |
| 779 // it is refactored. | 779 // it is refactored. |
| 780 #if !defined(ADDRESS_SANITIZER) | 780 #if !defined(ADDRESS_SANITIZER) |
| 781 ASSERT(visitor->canTraceEagerly() || visitor->isMarked(t)); | 781 ASSERT(Visitor::canTraceEagerly() || visitor->isMarked(t)); |
| 782 #endif | 782 #endif |
| 783 if (LIKELY(Visitor::canTraceEagerly())) { | 783 if (LIKELY(Visitor::canTraceEagerly())) { |
| 784 if (visitor->ensureMarked(t)) { | 784 if (visitor->ensureMarked(t)) { |
| 785 TraceTrait<T>::trace(visitor, const_cast<T*>(t)); | 785 TraceTrait<T>::trace(visitor, const_cast<T*>(t)); |
| 786 } | 786 } |
| 787 return; | 787 return; |
| 788 } | 788 } |
| 789 } | 789 } |
| 790 visitor->mark(const_cast<T*>(t), &TraceTrait<T>::trace); | 790 visitor->mark(const_cast<T*>(t), &TraceTrait<T>::trace); |
| 791 } | 791 } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 { | 1049 { |
| 1050 DEFINE_STATIC_LOCAL(String, typenameString, (WTF::extractTypeNameFromFun
ctionName(WTF::extractNameFunction<T>()))); | 1050 DEFINE_STATIC_LOCAL(String, typenameString, (WTF::extractTypeNameFromFun
ctionName(WTF::extractNameFunction<T>()))); |
| 1051 return typenameString; | 1051 return typenameString; |
| 1052 } | 1052 } |
| 1053 }; | 1053 }; |
| 1054 #endif | 1054 #endif |
| 1055 | 1055 |
| 1056 } // namespace blink | 1056 } // namespace blink |
| 1057 | 1057 |
| 1058 #endif // Visitor_h | 1058 #endif // Visitor_h |
| OLD | NEW |