OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Inlined implementation of ResizeAdd, shared by inlined and | 141 // Inlined implementation of ResizeAdd, shared by inlined and |
142 // non-inlined versions of ResizeAdd. | 142 // non-inlined versions of ResizeAdd. |
143 void ResizeAddInternal(const T& element); | 143 void ResizeAddInternal(const T& element); |
144 | 144 |
145 // Resize the list. | 145 // Resize the list. |
146 void Resize(int new_capacity); | 146 void Resize(int new_capacity); |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(List); | 148 DISALLOW_COPY_AND_ASSIGN(List); |
149 }; | 149 }; |
150 | 150 |
151 class FrameElement; | |
152 | |
153 // Add() is inlined, ResizeAdd() called by Add() is inlined except for | |
154 // Lists of FrameElements, and ResizeAddInternal() is inlined in ResizeAdd(). | |
155 template <> | |
156 void List<FrameElement, | |
157 FreeStoreAllocationPolicy>::ResizeAdd(const FrameElement& element); | |
158 | |
159 } } // namespace v8::internal | 151 } } // namespace v8::internal |
160 | 152 |
161 #endif // V8_LIST_H_ | 153 #endif // V8_LIST_H_ |
OLD | NEW |