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

Side by Side Diff: src/factory.h

Issue 640303006: Weak Cells (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Skip cleared weak cells Created 6 years, 2 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 | « include/v8.h ('k') | src/factory.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 int length, 289 int length,
290 ExternalArrayType array_type, 290 ExternalArrayType array_type,
291 PretenureFlag pretenure = NOT_TENURED); 291 PretenureFlag pretenure = NOT_TENURED);
292 292
293 Handle<Cell> NewCell(Handle<Object> value); 293 Handle<Cell> NewCell(Handle<Object> value);
294 294
295 Handle<PropertyCell> NewPropertyCellWithHole(); 295 Handle<PropertyCell> NewPropertyCellWithHole();
296 296
297 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); 297 Handle<PropertyCell> NewPropertyCell(Handle<Object> value);
298 298
299 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value);
300
299 // Allocate a tenured AllocationSite. It's payload is null. 301 // Allocate a tenured AllocationSite. It's payload is null.
300 Handle<AllocationSite> NewAllocationSite(); 302 Handle<AllocationSite> NewAllocationSite();
301 303
302 Handle<Map> NewMap( 304 Handle<Map> NewMap(
303 InstanceType type, 305 InstanceType type,
304 int instance_size, 306 int instance_size,
305 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 307 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
306 308
307 Handle<HeapObject> NewFillerObject(int size, 309 Handle<HeapObject> NewFillerObject(int size,
308 bool double_align, 310 bool double_align,
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 // Reinitialize a JSProxy into an (empty) JS object of respective type and 715 // Reinitialize a JSProxy into an (empty) JS object of respective type and
714 // size, but keeping the original prototype. The receiver must have at least 716 // size, but keeping the original prototype. The receiver must have at least
715 // the size of the new object. The object is reinitialized and behaves as an 717 // the size of the new object. The object is reinitialized and behaves as an
716 // object that has been freshly allocated. 718 // object that has been freshly allocated.
717 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 719 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
718 }; 720 };
719 721
720 } } // namespace v8::internal 722 } } // namespace v8::internal
721 723
722 #endif // V8_FACTORY_H_ 724 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698