| 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/feedback-vector.h" | 8 #include "src/feedback-vector.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 366 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
| 367 int length, ExternalArrayType array_type, bool initialize, | 367 int length, ExternalArrayType array_type, bool initialize, |
| 368 PretenureFlag pretenure = NOT_TENURED); | 368 PretenureFlag pretenure = NOT_TENURED); |
| 369 | 369 |
| 370 Handle<Cell> NewCell(Handle<Object> value); | 370 Handle<Cell> NewCell(Handle<Object> value); |
| 371 | 371 |
| 372 Handle<PropertyCell> NewPropertyCell(); | 372 Handle<PropertyCell> NewPropertyCell(); |
| 373 | 373 |
| 374 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); | 374 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); |
| 375 | 375 |
| 376 Handle<Cell> NewNoClosuresCell(Handle<Object> value); |
| 377 Handle<Cell> NewOneClosureCell(Handle<Object> value); |
| 378 Handle<Cell> NewManyClosuresCell(Handle<Object> value); |
| 379 |
| 376 Handle<TransitionArray> NewTransitionArray(int capacity); | 380 Handle<TransitionArray> NewTransitionArray(int capacity); |
| 377 | 381 |
| 378 // Allocate a tenured AllocationSite. It's payload is null. | 382 // Allocate a tenured AllocationSite. It's payload is null. |
| 379 Handle<AllocationSite> NewAllocationSite(); | 383 Handle<AllocationSite> NewAllocationSite(); |
| 380 | 384 |
| 381 Handle<Map> NewMap( | 385 Handle<Map> NewMap( |
| 382 InstanceType type, | 386 InstanceType type, |
| 383 int instance_size, | 387 int instance_size, |
| 384 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); | 388 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); |
| 385 | 389 |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 845 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 842 FunctionMode function_mode); | 846 FunctionMode function_mode); |
| 843 | 847 |
| 844 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 848 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 845 }; | 849 }; |
| 846 | 850 |
| 847 } // namespace internal | 851 } // namespace internal |
| 848 } // namespace v8 | 852 } // namespace v8 |
| 849 | 853 |
| 850 #endif // V8_FACTORY_H_ | 854 #endif // V8_FACTORY_H_ |
| OLD | NEW |