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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 // Creates a new JSTypedArray with the specified buffer. | 439 // Creates a new JSTypedArray with the specified buffer. |
440 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, | 440 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, |
441 Handle<JSArrayBuffer> buffer, | 441 Handle<JSArrayBuffer> buffer, |
442 size_t byte_offset, size_t length); | 442 size_t byte_offset, size_t length); |
443 | 443 |
444 Handle<JSDataView> NewJSDataView(); | 444 Handle<JSDataView> NewJSDataView(); |
445 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, | 445 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, |
446 size_t byte_offset, size_t byte_length); | 446 size_t byte_offset, size_t byte_length); |
447 | 447 |
| 448 Handle<JSMapIterator> NewJSMapIterator(); |
| 449 Handle<JSSetIterator> NewJSSetIterator(); |
| 450 |
448 // Allocates a Harmony proxy. | 451 // Allocates a Harmony proxy. |
449 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 452 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
450 | 453 |
451 // Allocates a Harmony function proxy. | 454 // Allocates a Harmony function proxy. |
452 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, | 455 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, |
453 Handle<Object> call_trap, | 456 Handle<Object> call_trap, |
454 Handle<Object> construct_trap, | 457 Handle<Object> construct_trap, |
455 Handle<Object> prototype); | 458 Handle<Object> prototype); |
456 | 459 |
457 // Reinitialize an JSGlobalProxy based on a constructor. The object | 460 // Reinitialize an JSGlobalProxy based on a constructor. The object |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 721 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
719 // size, but keeping the original prototype. The receiver must have at least | 722 // size, but keeping the original prototype. The receiver must have at least |
720 // the size of the new object. The object is reinitialized and behaves as an | 723 // the size of the new object. The object is reinitialized and behaves as an |
721 // object that has been freshly allocated. | 724 // object that has been freshly allocated. |
722 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 725 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
723 }; | 726 }; |
724 | 727 |
725 } } // namespace v8::internal | 728 } } // namespace v8::internal |
726 | 729 |
727 #endif // V8_FACTORY_H_ | 730 #endif // V8_FACTORY_H_ |
OLD | NEW |