OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 explicit ZoneList(const ZoneList<T>& other) | 185 explicit ZoneList(const ZoneList<T>& other) |
186 : List<T, ZoneListAllocationPolicy>(other.length()) { | 186 : List<T, ZoneListAllocationPolicy>(other.length()) { |
187 AddAll(other); | 187 AddAll(other); |
188 } | 188 } |
189 }; | 189 }; |
190 | 190 |
191 | 191 |
192 // Introduce a convenience type for zone lists of map handles. | 192 // Introduce a convenience type for zone lists of map handles. |
193 typedef ZoneList<Handle<Map> > ZoneMapList; | 193 typedef ZoneList<Handle<Map> > ZoneMapList; |
194 | 194 |
| 195 // Introduce a convenience type for zone lists of code handles. |
| 196 typedef ZoneList<Handle<Code> > ZoneCodeList; |
195 | 197 |
196 // ZoneScopes keep track of the current parsing and compilation | 198 // ZoneScopes keep track of the current parsing and compilation |
197 // nesting and cleans up generated ASTs in the Zone when exiting the | 199 // nesting and cleans up generated ASTs in the Zone when exiting the |
198 // outer-most scope. | 200 // outer-most scope. |
199 class ZoneScope BASE_EMBEDDED { | 201 class ZoneScope BASE_EMBEDDED { |
200 public: | 202 public: |
201 // TODO(isolates): pass isolate pointer here. | 203 // TODO(isolates): pass isolate pointer here. |
202 inline explicit ZoneScope(ZoneScopeMode mode); | 204 inline explicit ZoneScope(ZoneScopeMode mode); |
203 | 205 |
204 virtual ~ZoneScope(); | 206 virtual ~ZoneScope(); |
(...skipping 22 matching lines...) Expand all Loading... |
227 public: | 229 public: |
228 ZoneSplayTree() | 230 ZoneSplayTree() |
229 : SplayTree<Config, ZoneListAllocationPolicy>() {} | 231 : SplayTree<Config, ZoneListAllocationPolicy>() {} |
230 ~ZoneSplayTree(); | 232 ~ZoneSplayTree(); |
231 }; | 233 }; |
232 | 234 |
233 | 235 |
234 } } // namespace v8::internal | 236 } } // namespace v8::internal |
235 | 237 |
236 #endif // V8_ZONE_H_ | 238 #endif // V8_ZONE_H_ |
OLD | NEW |