OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Allocate a new fixed array with non-existing entries (the hole). | 52 // Allocate a new fixed array with non-existing entries (the hole). |
53 Handle<FixedArray> NewFixedArrayWithHoles( | 53 Handle<FixedArray> NewFixedArrayWithHoles( |
54 int size, | 54 int size, |
55 PretenureFlag pretenure = NOT_TENURED); | 55 PretenureFlag pretenure = NOT_TENURED); |
56 | 56 |
57 // Allocate a new uninitialized fixed double array. | 57 // Allocate a new uninitialized fixed double array. |
58 Handle<FixedDoubleArray> NewFixedDoubleArray( | 58 Handle<FixedDoubleArray> NewFixedDoubleArray( |
59 int size, | 59 int size, |
60 PretenureFlag pretenure = NOT_TENURED); | 60 PretenureFlag pretenure = NOT_TENURED); |
61 | 61 |
| 62 Handle<ConstantPoolArray> NewConstantPoolArray( |
| 63 int number_of_int64_entries, |
| 64 int number_of_ptr_entries, |
| 65 int number_of_int32_entries); |
| 66 |
62 Handle<SeededNumberDictionary> NewSeededNumberDictionary( | 67 Handle<SeededNumberDictionary> NewSeededNumberDictionary( |
63 int at_least_space_for); | 68 int at_least_space_for); |
64 | 69 |
65 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary( | 70 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary( |
66 int at_least_space_for); | 71 int at_least_space_for); |
67 | 72 |
68 Handle<NameDictionary> NewNameDictionary(int at_least_space_for); | 73 Handle<NameDictionary> NewNameDictionary(int at_least_space_for); |
69 | 74 |
70 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for); | 75 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for); |
71 | 76 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 ElementsKind elements_kind); | 268 ElementsKind elements_kind); |
264 | 269 |
265 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 270 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
266 | 271 |
267 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, | 272 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, |
268 int new_length); | 273 int new_length); |
269 | 274 |
270 Handle<FixedDoubleArray> CopyFixedDoubleArray( | 275 Handle<FixedDoubleArray> CopyFixedDoubleArray( |
271 Handle<FixedDoubleArray> array); | 276 Handle<FixedDoubleArray> array); |
272 | 277 |
| 278 Handle<ConstantPoolArray> CopyConstantPoolArray( |
| 279 Handle<ConstantPoolArray> array); |
| 280 |
273 // Numbers (e.g. literals) are pretenured by the parser. | 281 // Numbers (e.g. literals) are pretenured by the parser. |
274 Handle<Object> NewNumber(double value, | 282 Handle<Object> NewNumber(double value, |
275 PretenureFlag pretenure = NOT_TENURED); | 283 PretenureFlag pretenure = NOT_TENURED); |
276 | 284 |
277 Handle<Object> NewNumberFromInt(int32_t value, | 285 Handle<Object> NewNumberFromInt(int32_t value, |
278 PretenureFlag pretenure = NOT_TENURED); | 286 PretenureFlag pretenure = NOT_TENURED); |
279 Handle<Object> NewNumberFromUint(uint32_t value, | 287 Handle<Object> NewNumberFromUint(uint32_t value, |
280 PretenureFlag pretenure = NOT_TENURED); | 288 PretenureFlag pretenure = NOT_TENURED); |
281 inline Handle<Object> NewNumberFromSize(size_t value, | 289 inline Handle<Object> NewNumberFromSize(size_t value, |
282 PretenureFlag pretenure = NOT_TENURED); | 290 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 } | 669 } |
662 | 670 |
663 private: | 671 private: |
664 Isolate* isolate_; | 672 Isolate* isolate_; |
665 }; | 673 }; |
666 | 674 |
667 | 675 |
668 } } // namespace v8::internal | 676 } } // namespace v8::internal |
669 | 677 |
670 #endif // V8_FACTORY_H_ | 678 #endif // V8_FACTORY_H_ |
OLD | NEW |