Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: src/zone.h

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: new strategy Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/ic.cc ('K') | « src/x64/stub-cache-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« src/ic.cc ('K') | « src/x64/stub-cache-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698