| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 Handle<ByteArray> NewByteArray(int length, | 291 Handle<ByteArray> NewByteArray(int length, |
| 292 PretenureFlag pretenure = NOT_TENURED); | 292 PretenureFlag pretenure = NOT_TENURED); |
| 293 | 293 |
| 294 Handle<ExternalArray> NewExternalArray( | 294 Handle<ExternalArray> NewExternalArray( |
| 295 int length, | 295 int length, |
| 296 ExternalArrayType array_type, | 296 ExternalArrayType array_type, |
| 297 void* external_pointer, | 297 void* external_pointer, |
| 298 PretenureFlag pretenure = NOT_TENURED); | 298 PretenureFlag pretenure = NOT_TENURED); |
| 299 | 299 |
| 300 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 300 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
| 301 int length, | 301 int length, ExternalArrayType array_type, bool initialize, |
| 302 ExternalArrayType array_type, | |
| 303 PretenureFlag pretenure = NOT_TENURED); | 302 PretenureFlag pretenure = NOT_TENURED); |
| 304 | 303 |
| 305 Handle<Cell> NewCell(Handle<Object> value); | 304 Handle<Cell> NewCell(Handle<Object> value); |
| 306 | 305 |
| 307 Handle<PropertyCell> NewPropertyCell(); | 306 Handle<PropertyCell> NewPropertyCell(); |
| 308 | 307 |
| 309 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); | 308 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); |
| 310 | 309 |
| 311 // Allocate a tenured AllocationSite. It's payload is null. | 310 // Allocate a tenured AllocationSite. It's payload is null. |
| 312 Handle<AllocationSite> NewAllocationSite(); | 311 Handle<AllocationSite> NewAllocationSite(); |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 745 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 747 // size, but keeping the original prototype. The receiver must have at least | 746 // size, but keeping the original prototype. The receiver must have at least |
| 748 // the size of the new object. The object is reinitialized and behaves as an | 747 // the size of the new object. The object is reinitialized and behaves as an |
| 749 // object that has been freshly allocated. | 748 // object that has been freshly allocated. |
| 750 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 749 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 751 }; | 750 }; |
| 752 | 751 |
| 753 } } // namespace v8::internal | 752 } } // namespace v8::internal |
| 754 | 753 |
| 755 #endif // V8_FACTORY_H_ | 754 #endif // V8_FACTORY_H_ |
| OLD | NEW |