| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 static bool invokePreFinalizer(void* object, Visitor& visitor) \ | 154 static bool invokePreFinalizer(void* object, Visitor& visitor) \ |
| 155 { \ | 155 { \ |
| 156 Class* self = reinterpret_cast<Class*>(object); \ | 156 Class* self = reinterpret_cast<Class*>(object); \ |
| 157 if (visitor.isAlive(self)) \ | 157 if (visitor.isAlive(self)) \ |
| 158 return false; \ | 158 return false; \ |
| 159 self->method(); \ | 159 self->method(); \ |
| 160 return true; \ | 160 return true; \ |
| 161 } \ | 161 } \ |
| 162 using UsingPreFinazlizerMacroNeedsTrailingSemiColon = char | 162 using UsingPreFinazlizerMacroNeedsTrailingSemiColon = char |
| 163 | 163 |
| 164 #if ENABLE(OILPAN) |
| 165 #define WILL_BE_USING_PRE_FINALIZER(Class, method) USING_PRE_FINALIZER(Class, me
thod) |
| 166 #else |
| 167 #define WILL_BE_USING_PRE_FINALIZER(Class, method) |
| 168 #endif |
| 169 |
| 164 // List of typed heaps. The list is used to generate the implementation | 170 // List of typed heaps. The list is used to generate the implementation |
| 165 // of typed heap related methods. | 171 // of typed heap related methods. |
| 166 // | 172 // |
| 167 // To create a new typed heap add a H(<ClassName>) to the | 173 // To create a new typed heap add a H(<ClassName>) to the |
| 168 // FOR_EACH_TYPED_HEAP macro below. | 174 // FOR_EACH_TYPED_HEAP macro below. |
| 169 #define FOR_EACH_TYPED_HEAP(H) \ | 175 #define FOR_EACH_TYPED_HEAP(H) \ |
| 170 H(Node) \ | 176 H(Node) \ |
| 171 H(RenderObject) \ | 177 H(RenderObject) \ |
| 172 H(CSSValue) | 178 H(CSSValue) |
| 173 | 179 |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 m_locked = false; | 725 m_locked = false; |
| 720 } | 726 } |
| 721 | 727 |
| 722 MutexBase& m_mutex; | 728 MutexBase& m_mutex; |
| 723 bool m_locked; | 729 bool m_locked; |
| 724 }; | 730 }; |
| 725 | 731 |
| 726 } // namespace blink | 732 } // namespace blink |
| 727 | 733 |
| 728 #endif // ThreadState_h | 734 #endif // ThreadState_h |
| OLD | NEW |