| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 int length, | 427 int length, |
| 428 int capacity, | 428 int capacity, |
| 429 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 429 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |
| 430 | 430 |
| 431 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 431 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); |
| 432 | 432 |
| 433 Handle<JSArrayBuffer> NewJSArrayBuffer(); | 433 Handle<JSArrayBuffer> NewJSArrayBuffer(); |
| 434 | 434 |
| 435 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 435 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
| 436 | 436 |
| 437 // Creates a new JSTypedArray with the specified buffer. |
| 438 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, |
| 439 Handle<JSArrayBuffer> buffer, |
| 440 size_t length); |
| 441 |
| 437 Handle<JSDataView> NewJSDataView(); | 442 Handle<JSDataView> NewJSDataView(); |
| 438 | 443 |
| 439 // Allocates a Harmony proxy. | 444 // Allocates a Harmony proxy. |
| 440 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 445 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 441 | 446 |
| 442 // Allocates a Harmony function proxy. | 447 // Allocates a Harmony function proxy. |
| 443 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, | 448 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, |
| 444 Handle<Object> call_trap, | 449 Handle<Object> call_trap, |
| 445 Handle<Object> construct_trap, | 450 Handle<Object> construct_trap, |
| 446 Handle<Object> prototype); | 451 Handle<Object> prototype); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 713 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 709 // size, but keeping the original prototype. The receiver must have at least | 714 // size, but keeping the original prototype. The receiver must have at least |
| 710 // the size of the new object. The object is reinitialized and behaves as an | 715 // the size of the new object. The object is reinitialized and behaves as an |
| 711 // object that has been freshly allocated. | 716 // object that has been freshly allocated. |
| 712 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 717 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 713 }; | 718 }; |
| 714 | 719 |
| 715 } } // namespace v8::internal | 720 } } // namespace v8::internal |
| 716 | 721 |
| 717 #endif // V8_FACTORY_H_ | 722 #endif // V8_FACTORY_H_ |
| OLD | NEW |