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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 // Creates a new on-heap JSTypedArray. | 531 // Creates a new on-heap JSTypedArray. |
532 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, | 532 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, |
533 size_t number_of_elements, | 533 size_t number_of_elements, |
534 PretenureFlag pretenure = NOT_TENURED); | 534 PretenureFlag pretenure = NOT_TENURED); |
535 | 535 |
536 Handle<JSDataView> NewJSDataView(); | 536 Handle<JSDataView> NewJSDataView(); |
537 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, | 537 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, |
538 size_t byte_offset, size_t byte_length); | 538 size_t byte_offset, size_t byte_length); |
539 | 539 |
540 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); | 540 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); |
| 541 Handle<JSAsyncFromSyncIterator> NewJSAsyncFromSyncIterator( |
| 542 Handle<HeapObject> sync_iterator); |
541 | 543 |
542 Handle<JSMap> NewJSMap(); | 544 Handle<JSMap> NewJSMap(); |
543 Handle<JSSet> NewJSSet(); | 545 Handle<JSSet> NewJSSet(); |
544 | 546 |
545 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 547 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
546 Handle<JSMapIterator> NewJSMapIterator(); | 548 Handle<JSMapIterator> NewJSMapIterator(); |
547 Handle<JSSetIterator> NewJSSetIterator(); | 549 Handle<JSSetIterator> NewJSSetIterator(); |
548 | 550 |
549 // Allocates a bound function. | 551 // Allocates a bound function. |
550 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | 552 MaybeHandle<JSBoundFunction> NewJSBoundFunction( |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 818 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
817 FunctionMode function_mode); | 819 FunctionMode function_mode); |
818 | 820 |
819 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 821 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
820 }; | 822 }; |
821 | 823 |
822 } // namespace internal | 824 } // namespace internal |
823 } // namespace v8 | 825 } // namespace v8 |
824 | 826 |
825 #endif // V8_FACTORY_H_ | 827 #endif // V8_FACTORY_H_ |
OLD | NEW |