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

Side by Side Diff: src/factory.h

Issue 240393003: Allocate filler objects in the factory. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | 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 "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); 262 Handle<PropertyCell> NewPropertyCell(Handle<Object> value);
263 263
264 // Allocate a tenured AllocationSite. It's payload is null. 264 // Allocate a tenured AllocationSite. It's payload is null.
265 Handle<AllocationSite> NewAllocationSite(); 265 Handle<AllocationSite> NewAllocationSite();
266 266
267 Handle<Map> NewMap( 267 Handle<Map> NewMap(
268 InstanceType type, 268 InstanceType type,
269 int instance_size, 269 int instance_size,
270 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 270 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
271 271
272 Handle<HeapObject> NewFillerObject(int size,
273 bool double_align,
274 AllocationSpace space);
275
272 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 276 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
273 277
274 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 278 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
275 279
276 // This method expects a COW array in new space, and creates a copy 280 // This method expects a COW array in new space, and creates a copy
277 // of it in old space. 281 // of it in old space.
278 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); 282 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array);
279 283
280 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, 284 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array,
281 int new_length, 285 int new_length,
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 // the string representation of the number. Otherwise return undefined. 663 // the string representation of the number. Otherwise return undefined.
660 Handle<Object> GetNumberStringCache(Handle<Object> number); 664 Handle<Object> GetNumberStringCache(Handle<Object> number);
661 665
662 // Update the cache with a new number-string pair. 666 // Update the cache with a new number-string pair.
663 void SetNumberStringCache(Handle<Object> number, Handle<String> string); 667 void SetNumberStringCache(Handle<Object> number, Handle<String> string);
664 }; 668 };
665 669
666 } } // namespace v8::internal 670 } } // namespace v8::internal
667 671
668 #endif // V8_FACTORY_H_ 672 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698