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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 27 matching lines...) Expand all Loading... |
38 // so the return type must be the general fixed array class. | 38 // so the return type must be the general fixed array class. |
39 Handle<FixedArrayBase> NewFixedDoubleArray( | 39 Handle<FixedArrayBase> NewFixedDoubleArray( |
40 int size, | 40 int size, |
41 PretenureFlag pretenure = NOT_TENURED); | 41 PretenureFlag pretenure = NOT_TENURED); |
42 | 42 |
43 // Allocate a new fixed double array with hole values. | 43 // Allocate a new fixed double array with hole values. |
44 Handle<FixedArrayBase> NewFixedDoubleArrayWithHoles( | 44 Handle<FixedArrayBase> NewFixedDoubleArrayWithHoles( |
45 int size, | 45 int size, |
46 PretenureFlag pretenure = NOT_TENURED); | 46 PretenureFlag pretenure = NOT_TENURED); |
47 | 47 |
| 48 Handle<WeakFixedArray> NewWeakFixedArray(int size); |
| 49 |
48 Handle<ConstantPoolArray> NewConstantPoolArray( | 50 Handle<ConstantPoolArray> NewConstantPoolArray( |
49 const ConstantPoolArray::NumberOfEntries& small); | 51 const ConstantPoolArray::NumberOfEntries& small); |
50 | 52 |
51 Handle<ConstantPoolArray> NewExtendedConstantPoolArray( | 53 Handle<ConstantPoolArray> NewExtendedConstantPoolArray( |
52 const ConstantPoolArray::NumberOfEntries& small, | 54 const ConstantPoolArray::NumberOfEntries& small, |
53 const ConstantPoolArray::NumberOfEntries& extended); | 55 const ConstantPoolArray::NumberOfEntries& extended); |
54 | 56 |
55 Handle<OrderedHashSet> NewOrderedHashSet(); | 57 Handle<OrderedHashSet> NewOrderedHashSet(); |
56 Handle<OrderedHashMap> NewOrderedHashMap(); | 58 Handle<OrderedHashMap> NewOrderedHashMap(); |
57 | 59 |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 728 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
727 // size, but keeping the original prototype. The receiver must have at least | 729 // size, but keeping the original prototype. The receiver must have at least |
728 // the size of the new object. The object is reinitialized and behaves as an | 730 // the size of the new object. The object is reinitialized and behaves as an |
729 // object that has been freshly allocated. | 731 // object that has been freshly allocated. |
730 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 732 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
731 }; | 733 }; |
732 | 734 |
733 } } // namespace v8::internal | 735 } } // namespace v8::internal |
734 | 736 |
735 #endif // V8_FACTORY_H_ | 737 #endif // V8_FACTORY_H_ |
OLD | NEW |