| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 PretenureFlag pretenure = NOT_TENURED); | 281 PretenureFlag pretenure = NOT_TENURED); |
| 282 | 282 |
| 283 // Allocate a new foreign object. The foreign is pretenured (allocated | 283 // Allocate a new foreign object. The foreign is pretenured (allocated |
| 284 // directly in the old generation). | 284 // directly in the old generation). |
| 285 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 285 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
| 286 | 286 |
| 287 Handle<ByteArray> NewByteArray(int length, | 287 Handle<ByteArray> NewByteArray(int length, |
| 288 PretenureFlag pretenure = NOT_TENURED); | 288 PretenureFlag pretenure = NOT_TENURED); |
| 289 | 289 |
| 290 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes, | 290 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes, |
| 291 int frame_size, int parameter_count); | 291 int frame_size, int parameter_count, |
| 292 Handle<FixedArray> constant_pool); |
| 292 | 293 |
| 293 Handle<FixedTypedArrayBase> NewFixedTypedArrayWithExternalPointer( | 294 Handle<FixedTypedArrayBase> NewFixedTypedArrayWithExternalPointer( |
| 294 int length, ExternalArrayType array_type, void* external_pointer, | 295 int length, ExternalArrayType array_type, void* external_pointer, |
| 295 PretenureFlag pretenure = NOT_TENURED); | 296 PretenureFlag pretenure = NOT_TENURED); |
| 296 | 297 |
| 297 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 298 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
| 298 int length, ExternalArrayType array_type, bool initialize, | 299 int length, ExternalArrayType array_type, bool initialize, |
| 299 PretenureFlag pretenure = NOT_TENURED); | 300 PretenureFlag pretenure = NOT_TENURED); |
| 300 | 301 |
| 301 Handle<Cell> NewCell(Handle<Object> value); | 302 Handle<Cell> NewCell(Handle<Object> value); |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 729 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 729 // size, but keeping the original prototype. The receiver must have at least | 730 // size, but keeping the original prototype. The receiver must have at least |
| 730 // the size of the new object. The object is reinitialized and behaves as an | 731 // the size of the new object. The object is reinitialized and behaves as an |
| 731 // object that has been freshly allocated. | 732 // object that has been freshly allocated. |
| 732 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 733 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 733 }; | 734 }; |
| 734 | 735 |
| 735 } } // namespace v8::internal | 736 } } // namespace v8::internal |
| 736 | 737 |
| 737 #endif // V8_FACTORY_H_ | 738 #endif // V8_FACTORY_H_ |
| OLD | NEW |