| 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 30 matching lines...) Expand all Loading... |
| 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 // Allocates an uninitialized fixed array. It must be filled by the caller. | 48 // Allocates an uninitialized fixed array. It must be filled by the caller. |
| 49 Handle<FixedArray> NewUninitializedFixedArray(int size); | 49 Handle<FixedArray> NewUninitializedFixedArray(int size); |
| 50 | 50 |
| 51 // Allocates a fixed array for name-value pairs of boilerplate properties and |
| 52 // calculates the number of properties we need to store in the backing store. |
| 53 Handle<BoilerplateDescription> NewBoilerplateDescription(int boilerplate, |
| 54 int all_properties, |
| 55 bool has_seen_proto); |
| 56 |
| 51 // Allocate a new uninitialized fixed double array. | 57 // Allocate a new uninitialized fixed double array. |
| 52 // The function returns a pre-allocated empty fixed array for capacity = 0, | 58 // The function returns a pre-allocated empty fixed array for capacity = 0, |
| 53 // so the return type must be the general fixed array class. | 59 // so the return type must be the general fixed array class. |
| 54 Handle<FixedArrayBase> NewFixedDoubleArray( | 60 Handle<FixedArrayBase> NewFixedDoubleArray( |
| 55 int size, | 61 int size, |
| 56 PretenureFlag pretenure = NOT_TENURED); | 62 PretenureFlag pretenure = NOT_TENURED); |
| 57 | 63 |
| 58 // Allocate a new fixed double array with hole values. | 64 // Allocate a new fixed double array with hole values. |
| 59 Handle<FixedArrayBase> NewFixedDoubleArrayWithHoles( | 65 Handle<FixedArrayBase> NewFixedDoubleArrayWithHoles( |
| 60 int size, | 66 int size, |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 817 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 812 FunctionMode function_mode); | 818 FunctionMode function_mode); |
| 813 | 819 |
| 814 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 820 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 815 }; | 821 }; |
| 816 | 822 |
| 817 } // namespace internal | 823 } // namespace internal |
| 818 } // namespace v8 | 824 } // namespace v8 |
| 819 | 825 |
| 820 #endif // V8_FACTORY_H_ | 826 #endif // V8_FACTORY_H_ |
| OLD | NEW |