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/globals.h" | 8 #include "src/globals.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 // Creates a new on-heap JSTypedArray. | 526 // Creates a new on-heap JSTypedArray. |
527 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, | 527 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, |
528 size_t number_of_elements, | 528 size_t number_of_elements, |
529 PretenureFlag pretenure = NOT_TENURED); | 529 PretenureFlag pretenure = NOT_TENURED); |
530 | 530 |
531 Handle<JSDataView> NewJSDataView(); | 531 Handle<JSDataView> NewJSDataView(); |
532 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, | 532 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, |
533 size_t byte_offset, size_t byte_length); | 533 size_t byte_offset, size_t byte_length); |
534 | 534 |
535 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); | 535 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); |
| 536 Handle<JSAsyncFromSyncIterator> NewJSAsyncFromSyncIterator( |
| 537 Handle<HeapObject> sync_iterator); |
536 | 538 |
537 Handle<JSMap> NewJSMap(); | 539 Handle<JSMap> NewJSMap(); |
538 Handle<JSSet> NewJSSet(); | 540 Handle<JSSet> NewJSSet(); |
539 | 541 |
540 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 542 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
541 Handle<JSMapIterator> NewJSMapIterator(); | 543 Handle<JSMapIterator> NewJSMapIterator(); |
542 Handle<JSSetIterator> NewJSSetIterator(); | 544 Handle<JSSetIterator> NewJSSetIterator(); |
543 | 545 |
544 // Allocates a bound function. | 546 // Allocates a bound function. |
545 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | 547 MaybeHandle<JSBoundFunction> NewJSBoundFunction( |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 804 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
803 FunctionMode function_mode); | 805 FunctionMode function_mode); |
804 | 806 |
805 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 807 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
806 }; | 808 }; |
807 | 809 |
808 } // namespace internal | 810 } // namespace internal |
809 } // namespace v8 | 811 } // namespace v8 |
810 | 812 |
811 #endif // V8_FACTORY_H_ | 813 #endif // V8_FACTORY_H_ |
OLD | NEW |