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

Side by Side Diff: src/zone.h

Issue 7655017: Improve memory usage of receiver type feedback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ReceiverTypeList -> SmallMapList Created 9 years, 4 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/ast.h ('K') | « src/type-info.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« src/ast.h ('K') | « src/type-info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698