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

Side by Side Diff: src/zone.h

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: 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
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.cc ('k') | src/zone-inl.h » ('j') | 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 Isolate* isolate_; 126 Isolate* isolate_;
127 }; 127 };
128 128
129 129
130 // ZoneObject is an abstraction that helps define classes of objects 130 // ZoneObject is an abstraction that helps define classes of objects
131 // allocated in the Zone. Use it as a base class; see ast.h. 131 // allocated in the Zone. Use it as a base class; see ast.h.
132 class ZoneObject { 132 class ZoneObject {
133 public: 133 public:
134 // Allocate a new ZoneObject of 'size' bytes in the Zone. 134 // Allocate a new ZoneObject of 'size' bytes in the Zone.
135 inline void* operator new(size_t size); 135 inline void* operator new(size_t size);
136 inline void* operator new(size_t size, Zone* zone);
137 136
138 // Ideally, the delete operator should be private instead of 137 // Ideally, the delete operator should be private instead of
139 // public, but unfortunately the compiler sometimes synthesizes 138 // public, but unfortunately the compiler sometimes synthesizes
140 // (unused) destructors for classes derived from ZoneObject, which 139 // (unused) destructors for classes derived from ZoneObject, which
141 // require the operator to be visible. MSVC requires the delete 140 // require the operator to be visible. MSVC requires the delete
142 // operator to be public. 141 // operator to be public.
143 142
144 // ZoneObjects should never be deleted individually; use 143 // ZoneObjects should never be deleted individually; use
145 // Zone::DeleteAll() to delete all zone objects in one go. 144 // Zone::DeleteAll() to delete all zone objects in one go.
146 void operator delete(void*, size_t) { UNREACHABLE(); } 145 void operator delete(void*, size_t) { UNREACHABLE(); }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 public: 226 public:
228 ZoneSplayTree() 227 ZoneSplayTree()
229 : SplayTree<Config, ZoneListAllocationPolicy>() {} 228 : SplayTree<Config, ZoneListAllocationPolicy>() {}
230 ~ZoneSplayTree(); 229 ~ZoneSplayTree();
231 }; 230 };
232 231
233 232
234 } } // namespace v8::internal 233 } } // namespace v8::internal
235 234
236 #endif // V8_ZONE_H_ 235 #endif // V8_ZONE_H_
OLDNEW
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.cc ('k') | src/zone-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698