| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 { | 100 { |
| 101 ASSERT_NOT_REACHED(); | 101 ASSERT_NOT_REACHED(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 static void registerWeakMembers(...) | 104 static void registerWeakMembers(...) |
| 105 { | 105 { |
| 106 ASSERT_NOT_REACHED(); | 106 ASSERT_NOT_REACHED(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 template<typename T, typename Traits> | 109 template<typename T, typename Traits> |
| 110 static void mark(...) | 110 static void trace(...) |
| 111 { | 111 { |
| 112 ASSERT_NOT_REACHED(); | 112 ASSERT_NOT_REACHED(); |
| 113 } | 113 } |
| 114 |
| 115 template<typename T> |
| 116 struct OtherType { |
| 117 typedef T* Type; |
| 118 }; |
| 119 |
| 120 template<typename T> |
| 121 static T& getOther(T* other) |
| 122 { |
| 123 return *other; |
| 124 } |
| 114 }; | 125 }; |
| 115 | 126 |
| 116 // The Windows compiler seems to be very eager to instantiate things it won't | 127 // The Windows compiler seems to be very eager to instantiate things it won't |
| 117 // need, so unless we have this class we get compile errors. | 128 // need, so unless we have this class we get compile errors. |
| 118 class DefaultAllocatorDummyVisitor { | 129 class DefaultAllocatorDummyVisitor { |
| 119 public: | 130 public: |
| 120 template<typename T> inline bool isAlive(T obj) | 131 template<typename T> inline bool isAlive(T obj) |
| 121 { | 132 { |
| 122 ASSERT_NOT_REACHED(); | 133 ASSERT_NOT_REACHED(); |
| 123 return false; | 134 return false; |
| 124 } | 135 } |
| 125 }; | 136 }; |
| 126 | 137 |
| 127 } // namespace WTF | 138 } // namespace WTF |
| 128 | 139 |
| 129 using WTF::DefaultAllocator; | 140 using WTF::DefaultAllocator; |
| 130 | 141 |
| 131 #endif // WTF_DefaultAllocator_h | 142 #endif // WTF_DefaultAllocator_h |
| OLD | NEW |