OLD | NEW |
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 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 288 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
289 int length, ExternalArrayType array_type, bool initialize, | 289 int length, ExternalArrayType array_type, bool initialize, |
290 PretenureFlag pretenure = NOT_TENURED); | 290 PretenureFlag pretenure = NOT_TENURED); |
291 | 291 |
292 Handle<Cell> NewCell(Handle<Object> value); | 292 Handle<Cell> NewCell(Handle<Object> value); |
293 | 293 |
294 Handle<PropertyCell> NewPropertyCell(); | 294 Handle<PropertyCell> NewPropertyCell(); |
295 | 295 |
296 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); | 296 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); |
297 | 297 |
298 Handle<TransitionArray> NewTransitionArray(int capacity); | |
299 | |
300 // Allocate a tenured AllocationSite. It's payload is null. | 298 // Allocate a tenured AllocationSite. It's payload is null. |
301 Handle<AllocationSite> NewAllocationSite(); | 299 Handle<AllocationSite> NewAllocationSite(); |
302 | 300 |
303 Handle<Map> NewMap( | 301 Handle<Map> NewMap( |
304 InstanceType type, | 302 InstanceType type, |
305 int instance_size, | 303 int instance_size, |
306 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); | 304 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); |
307 | 305 |
308 Handle<HeapObject> NewFillerObject(int size, | 306 Handle<HeapObject> NewFillerObject(int size, |
309 bool double_align, | 307 bool double_align, |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 703 |
706 Handle<JSFunction> NewFunction(Handle<Map> map, | 704 Handle<JSFunction> NewFunction(Handle<Map> map, |
707 Handle<String> name, | 705 Handle<String> name, |
708 MaybeHandle<Code> maybe_code); | 706 MaybeHandle<Code> maybe_code); |
709 }; | 707 }; |
710 | 708 |
711 } // namespace internal | 709 } // namespace internal |
712 } // namespace v8 | 710 } // namespace v8 |
713 | 711 |
714 #endif // V8_FACTORY_H_ | 712 #endif // V8_FACTORY_H_ |
OLD | NEW |