| 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 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 void* external_pointer, | 285 void* external_pointer, |
| 286 PretenureFlag pretenure = NOT_TENURED); | 286 PretenureFlag pretenure = NOT_TENURED); |
| 287 | 287 |
| 288 Handle<FixedTypedArrayBase> NewFixedTypedArray( | 288 Handle<FixedTypedArrayBase> NewFixedTypedArray( |
| 289 int length, | 289 int length, |
| 290 ExternalArrayType array_type, | 290 ExternalArrayType array_type, |
| 291 PretenureFlag pretenure = NOT_TENURED); | 291 PretenureFlag pretenure = NOT_TENURED); |
| 292 | 292 |
| 293 Handle<Cell> NewCell(Handle<Object> value); | 293 Handle<Cell> NewCell(Handle<Object> value); |
| 294 | 294 |
| 295 Handle<PropertyCell> NewPropertyCellWithHole(); | 295 Handle<PropertyCell> NewPropertyCell(); |
| 296 | |
| 297 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); | |
| 298 | 296 |
| 299 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); | 297 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); |
| 300 | 298 |
| 301 // Allocate a tenured AllocationSite. It's payload is null. | 299 // Allocate a tenured AllocationSite. It's payload is null. |
| 302 Handle<AllocationSite> NewAllocationSite(); | 300 Handle<AllocationSite> NewAllocationSite(); |
| 303 | 301 |
| 304 Handle<Map> NewMap( | 302 Handle<Map> NewMap( |
| 305 InstanceType type, | 303 InstanceType type, |
| 306 int instance_size, | 304 int instance_size, |
| 307 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); | 305 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 705 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 708 // size, but keeping the original prototype. The receiver must have at least | 706 // size, but keeping the original prototype. The receiver must have at least |
| 709 // the size of the new object. The object is reinitialized and behaves as an | 707 // the size of the new object. The object is reinitialized and behaves as an |
| 710 // object that has been freshly allocated. | 708 // object that has been freshly allocated. |
| 711 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 709 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 712 }; | 710 }; |
| 713 | 711 |
| 714 } } // namespace v8::internal | 712 } } // namespace v8::internal |
| 715 | 713 |
| 716 #endif // V8_FACTORY_H_ | 714 #endif // V8_FACTORY_H_ |
| OLD | NEW |