| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 : List<T, ZoneListAllocationPolicy>(capacity) { } | 189 : List<T, ZoneListAllocationPolicy>(capacity) { } |
| 190 | 190 |
| 191 // Construct a new ZoneList by copying the elements of the given ZoneList. | 191 // Construct a new ZoneList by copying the elements of the given ZoneList. |
| 192 explicit ZoneList(const ZoneList<T>& other) | 192 explicit ZoneList(const ZoneList<T>& other) |
| 193 : List<T, ZoneListAllocationPolicy>(other.length()) { | 193 : List<T, ZoneListAllocationPolicy>(other.length()) { |
| 194 AddAll(other); | 194 AddAll(other); |
| 195 } | 195 } |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 | 198 |
| 199 // Introduce a convenience type for zone lists of map handles. | |
| 200 typedef ZoneList<Handle<Map> > ZoneMapList; | |
| 201 | |
| 202 | |
| 203 // ZoneScopes keep track of the current parsing and compilation | 199 // ZoneScopes keep track of the current parsing and compilation |
| 204 // nesting and cleans up generated ASTs in the Zone when exiting the | 200 // nesting and cleans up generated ASTs in the Zone when exiting the |
| 205 // outer-most scope. | 201 // outer-most scope. |
| 206 class ZoneScope BASE_EMBEDDED { | 202 class ZoneScope BASE_EMBEDDED { |
| 207 public: | 203 public: |
| 208 INLINE(ZoneScope(Isolate* isolate, ZoneScopeMode mode)); | 204 INLINE(ZoneScope(Isolate* isolate, ZoneScopeMode mode)); |
| 209 | 205 |
| 210 virtual ~ZoneScope(); | 206 virtual ~ZoneScope(); |
| 211 | 207 |
| 212 inline bool ShouldDeleteOnExit(); | 208 inline bool ShouldDeleteOnExit(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 233 public: | 229 public: |
| 234 ZoneSplayTree() | 230 ZoneSplayTree() |
| 235 : SplayTree<Config, ZoneListAllocationPolicy>() {} | 231 : SplayTree<Config, ZoneListAllocationPolicy>() {} |
| 236 ~ZoneSplayTree(); | 232 ~ZoneSplayTree(); |
| 237 }; | 233 }; |
| 238 | 234 |
| 239 | 235 |
| 240 } } // namespace v8::internal | 236 } } // namespace v8::internal |
| 241 | 237 |
| 242 #endif // V8_ZONE_H_ | 238 #endif // V8_ZONE_H_ |
| OLD | NEW |