| 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<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes); |
| 287 |
| 286 Handle<ExternalArray> NewExternalArray( | 288 Handle<ExternalArray> NewExternalArray( |
| 287 int length, | 289 int length, |
| 288 ExternalArrayType array_type, | 290 ExternalArrayType array_type, |
| 289 void* external_pointer, | 291 void* external_pointer, |
| 290 PretenureFlag pretenure = NOT_TENURED); | 292 PretenureFlag pretenure = NOT_TENURED); |
| 291 | 293 |
| 292 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 294 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
| 293 int length, ExternalArrayType array_type, bool initialize, | 295 int length, ExternalArrayType array_type, bool initialize, |
| 294 PretenureFlag pretenure = NOT_TENURED); | 296 PretenureFlag pretenure = NOT_TENURED); |
| 295 | 297 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 738 // 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 | 739 // 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 | 740 // the size of the new object. The object is reinitialized and behaves as an |
| 739 // object that has been freshly allocated. | 741 // object that has been freshly allocated. |
| 740 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 742 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 741 }; | 743 }; |
| 742 | 744 |
| 743 } } // namespace v8::internal | 745 } } // namespace v8::internal |
| 744 | 746 |
| 745 #endif // V8_FACTORY_H_ | 747 #endif // V8_FACTORY_H_ |
| OLD | NEW |