| 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 "isolate.h" | 8 #include "isolate.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 PretenureFlag pretenure = NOT_TENURED); | 25 PretenureFlag pretenure = NOT_TENURED); |
| 26 | 26 |
| 27 // Allocates an uninitialized fixed array. It must be filled by the caller. | 27 // Allocates an uninitialized fixed array. It must be filled by the caller. |
| 28 Handle<FixedArray> NewUninitializedFixedArray(int size); | 28 Handle<FixedArray> NewUninitializedFixedArray(int size); |
| 29 | 29 |
| 30 // Allocate a new uninitialized fixed double array. | 30 // Allocate a new uninitialized fixed double array. |
| 31 Handle<FixedDoubleArray> NewFixedDoubleArray( | 31 Handle<FixedDoubleArray> NewFixedDoubleArray( |
| 32 int size, | 32 int size, |
| 33 PretenureFlag pretenure = NOT_TENURED); | 33 PretenureFlag pretenure = NOT_TENURED); |
| 34 | 34 |
| 35 // Allocate a new fixed double array with hole values. |
| 36 Handle<FixedDoubleArray> NewFixedDoubleArrayWithHoles( |
| 37 int size, |
| 38 PretenureFlag pretenure = NOT_TENURED); |
| 39 |
| 35 Handle<ConstantPoolArray> NewConstantPoolArray( | 40 Handle<ConstantPoolArray> NewConstantPoolArray( |
| 36 int number_of_int64_entries, | 41 int number_of_int64_entries, |
| 37 int number_of_code_ptr_entries, | 42 int number_of_code_ptr_entries, |
| 38 int number_of_heap_ptr_entries, | 43 int number_of_heap_ptr_entries, |
| 39 int number_of_int32_entries); | 44 int number_of_int32_entries); |
| 40 | 45 |
| 41 Handle<SeededNumberDictionary> NewSeededNumberDictionary( | 46 Handle<SeededNumberDictionary> NewSeededNumberDictionary( |
| 42 int at_least_space_for); | 47 int at_least_space_for); |
| 43 | 48 |
| 44 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary( | 49 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary( |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 609 |
| 605 // Update the map cache in the native context with (keys, map) | 610 // Update the map cache in the native context with (keys, map) |
| 606 Handle<MapCache> AddToMapCache(Handle<Context> context, | 611 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 607 Handle<FixedArray> keys, | 612 Handle<FixedArray> keys, |
| 608 Handle<Map> map); | 613 Handle<Map> map); |
| 609 }; | 614 }; |
| 610 | 615 |
| 611 } } // namespace v8::internal | 616 } } // namespace v8::internal |
| 612 | 617 |
| 613 #endif // V8_FACTORY_H_ | 618 #endif // V8_FACTORY_H_ |
| OLD | NEW |