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 #include "src/messages.h" | 9 #include "src/messages.h" |
10 | 10 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // Allocate a new foreign object. The foreign is pretenured (allocated | 279 // Allocate a new foreign object. The foreign is pretenured (allocated |
280 // directly in the old generation). | 280 // directly in the old generation). |
281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
282 | 282 |
283 Handle<ByteArray> NewByteArray(int length, | 283 Handle<ByteArray> NewByteArray(int length, |
284 PretenureFlag pretenure = NOT_TENURED); | 284 PretenureFlag pretenure = NOT_TENURED); |
285 | 285 |
286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes, | 286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes, |
287 int frame_size); | 287 int frame_size); |
288 | 288 |
289 Handle<ExternalArray> NewExternalArray( | 289 Handle<FixedTypedArrayBase> NewExternalArray( |
290 int length, | 290 int length, ExternalArrayType array_type, void* external_pointer, |
291 ExternalArrayType array_type, | |
292 void* external_pointer, | |
293 PretenureFlag pretenure = NOT_TENURED); | 291 PretenureFlag pretenure = NOT_TENURED); |
294 | 292 |
295 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 293 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
296 int length, ExternalArrayType array_type, bool initialize, | 294 int length, ExternalArrayType array_type, bool initialize, |
297 PretenureFlag pretenure = NOT_TENURED); | 295 PretenureFlag pretenure = NOT_TENURED); |
298 | 296 |
299 Handle<Cell> NewCell(Handle<Object> value); | 297 Handle<Cell> NewCell(Handle<Object> value); |
300 | 298 |
301 Handle<PropertyCell> NewPropertyCell(); | 299 Handle<PropertyCell> NewPropertyCell(); |
302 | 300 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 737 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
740 // size, but keeping the original prototype. The receiver must have at least | 738 // size, but keeping the original prototype. The receiver must have at least |
741 // the size of the new object. The object is reinitialized and behaves as an | 739 // the size of the new object. The object is reinitialized and behaves as an |
742 // object that has been freshly allocated. | 740 // object that has been freshly allocated. |
743 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 741 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
744 }; | 742 }; |
745 | 743 |
746 } } // namespace v8::internal | 744 } } // namespace v8::internal |
747 | 745 |
748 #endif // V8_FACTORY_H_ | 746 #endif // V8_FACTORY_H_ |
OLD | NEW |