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<FixedTypedArrayBase> NewFixedTypedArrayWithExternalPointer( | 289 Handle<ExternalArray> NewExternalArray( |
290 int length, ExternalArrayType array_type, void* external_pointer, | 290 int length, |
| 291 ExternalArrayType array_type, |
| 292 void* external_pointer, |
291 PretenureFlag pretenure = NOT_TENURED); | 293 PretenureFlag pretenure = NOT_TENURED); |
292 | 294 |
293 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 295 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
294 int length, ExternalArrayType array_type, bool initialize, | 296 int length, ExternalArrayType array_type, bool initialize, |
295 PretenureFlag pretenure = NOT_TENURED); | 297 PretenureFlag pretenure = NOT_TENURED); |
296 | 298 |
297 Handle<Cell> NewCell(Handle<Object> value); | 299 Handle<Cell> NewCell(Handle<Object> value); |
298 | 300 |
299 Handle<PropertyCell> NewPropertyCell(); | 301 Handle<PropertyCell> NewPropertyCell(); |
300 | 302 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 739 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
738 // size, but keeping the original prototype. The receiver must have at least | 740 // size, but keeping the original prototype. The receiver must have at least |
739 // the size of the new object. The object is reinitialized and behaves as an | 741 // the size of the new object. The object is reinitialized and behaves as an |
740 // object that has been freshly allocated. | 742 // object that has been freshly allocated. |
741 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 743 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
742 }; | 744 }; |
743 | 745 |
744 } } // namespace v8::internal | 746 } } // namespace v8::internal |
745 | 747 |
746 #endif // V8_FACTORY_H_ | 748 #endif // V8_FACTORY_H_ |
OLD | NEW |