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