Chromium Code Reviews| 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/globals.h" | 8 #include "src/globals.h" |
| 9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 10 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 // NewFixedArray as a fallback. | 38 // NewFixedArray as a fallback. |
| 39 MUST_USE_RESULT | 39 MUST_USE_RESULT |
| 40 MaybeHandle<FixedArray> TryNewFixedArray( | 40 MaybeHandle<FixedArray> TryNewFixedArray( |
| 41 int size, PretenureFlag pretenure = NOT_TENURED); | 41 int size, PretenureFlag pretenure = NOT_TENURED); |
| 42 | 42 |
| 43 // Allocate a new fixed array with non-existing entries (the hole). | 43 // Allocate a new fixed array with non-existing entries (the hole). |
| 44 Handle<FixedArray> NewFixedArrayWithHoles( | 44 Handle<FixedArray> NewFixedArrayWithHoles( |
| 45 int size, | 45 int size, |
| 46 PretenureFlag pretenure = NOT_TENURED); | 46 PretenureFlag pretenure = NOT_TENURED); |
| 47 | 47 |
| 48 // Allocate a new fixed array with Smi entries. | |
| 49 Handle<FixedArray> NewFixedArrayWithSmis( | |
|
Toon Verwaest
2016/12/06 21:10:14
This doesn't seem like a very generic function; do
jochen (gone - plz use gerrit)
2016/12/07 15:57:00
done
| |
| 50 int size, int value, PretenureFlag pretenure = NOT_TENURED); | |
| 51 | |
| 48 // Allocates an uninitialized fixed array. It must be filled by the caller. | 52 // Allocates an uninitialized fixed array. It must be filled by the caller. |
| 49 Handle<FixedArray> NewUninitializedFixedArray(int size); | 53 Handle<FixedArray> NewUninitializedFixedArray(int size); |
| 50 | 54 |
| 51 // Allocate a new uninitialized fixed double array. | 55 // Allocate a new uninitialized fixed double array. |
| 52 // The function returns a pre-allocated empty fixed array for capacity = 0, | 56 // The function returns a pre-allocated empty fixed array for capacity = 0, |
| 53 // so the return type must be the general fixed array class. | 57 // so the return type must be the general fixed array class. |
| 54 Handle<FixedArrayBase> NewFixedDoubleArray( | 58 Handle<FixedArrayBase> NewFixedDoubleArray( |
| 55 int size, | 59 int size, |
| 56 PretenureFlag pretenure = NOT_TENURED); | 60 PretenureFlag pretenure = NOT_TENURED); |
| 57 | 61 |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 802 FunctionMode function_mode); | 806 FunctionMode function_mode); |
| 803 | 807 |
| 804 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 808 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 805 FunctionMode function_mode); | 809 FunctionMode function_mode); |
| 806 }; | 810 }; |
| 807 | 811 |
| 808 } // namespace internal | 812 } // namespace internal |
| 809 } // namespace v8 | 813 } // namespace v8 |
| 810 | 814 |
| 811 #endif // V8_FACTORY_H_ | 815 #endif // V8_FACTORY_H_ |
| OLD | NEW |