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/feedback-vector.h" | 8 #include "src/feedback-vector.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // Creates a new on-heap JSTypedArray. | 554 // Creates a new on-heap JSTypedArray. |
555 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, | 555 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, |
556 size_t number_of_elements, | 556 size_t number_of_elements, |
557 PretenureFlag pretenure = NOT_TENURED); | 557 PretenureFlag pretenure = NOT_TENURED); |
558 | 558 |
559 Handle<JSDataView> NewJSDataView(); | 559 Handle<JSDataView> NewJSDataView(); |
560 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, | 560 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, |
561 size_t byte_offset, size_t byte_length); | 561 size_t byte_offset, size_t byte_length); |
562 | 562 |
563 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); | 563 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); |
| 564 Handle<JSAsyncFromSyncIterator> NewJSAsyncFromSyncIterator( |
| 565 Handle<HeapObject> sync_iterator); |
564 | 566 |
565 Handle<JSMap> NewJSMap(); | 567 Handle<JSMap> NewJSMap(); |
566 Handle<JSSet> NewJSSet(); | 568 Handle<JSSet> NewJSSet(); |
567 | 569 |
568 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 570 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
569 Handle<JSMapIterator> NewJSMapIterator(); | 571 Handle<JSMapIterator> NewJSMapIterator(); |
570 Handle<JSSetIterator> NewJSSetIterator(); | 572 Handle<JSSetIterator> NewJSSetIterator(); |
571 | 573 |
572 // Allocates a bound function. | 574 // Allocates a bound function. |
573 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | 575 MaybeHandle<JSBoundFunction> NewJSBoundFunction( |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 841 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
840 FunctionMode function_mode); | 842 FunctionMode function_mode); |
841 | 843 |
842 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 844 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
843 }; | 845 }; |
844 | 846 |
845 } // namespace internal | 847 } // namespace internal |
846 } // namespace v8 | 848 } // namespace v8 |
847 | 849 |
848 #endif // V8_FACTORY_H_ | 850 #endif // V8_FACTORY_H_ |
OLD | NEW |