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 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, | 462 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, |
463 size_t byte_offset, size_t byte_length); | 463 size_t byte_offset, size_t byte_length); |
464 | 464 |
465 Handle<JSMap> NewJSMap(); | 465 Handle<JSMap> NewJSMap(); |
466 Handle<JSSet> NewJSSet(); | 466 Handle<JSSet> NewJSSet(); |
467 | 467 |
468 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 468 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
469 Handle<JSMapIterator> NewJSMapIterator(); | 469 Handle<JSMapIterator> NewJSMapIterator(); |
470 Handle<JSSetIterator> NewJSSetIterator(); | 470 Handle<JSSetIterator> NewJSSetIterator(); |
471 | 471 |
472 // Creates a new JSIteratorResult object with the arguments {value} and | |
473 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject. | |
474 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, | |
475 Handle<Object> done); | |
476 | |
477 // Allocates a bound function. | 472 // Allocates a bound function. |
478 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | 473 MaybeHandle<JSBoundFunction> NewJSBoundFunction( |
479 Handle<JSReceiver> target_function, Handle<Object> bound_this, | 474 Handle<JSReceiver> target_function, Handle<Object> bound_this, |
480 Vector<Handle<Object>> bound_args); | 475 Vector<Handle<Object>> bound_args); |
481 | 476 |
482 // Allocates a Harmony proxy. | 477 // Allocates a Harmony proxy. |
483 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 478 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
484 Handle<JSReceiver> handler); | 479 Handle<JSReceiver> handler); |
485 | 480 |
486 // Reinitialize an JSGlobalProxy based on a constructor. The object | 481 // Reinitialize an JSGlobalProxy based on a constructor. The object |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 // Create a JSArray with no elements and no length. | 698 // Create a JSArray with no elements and no length. |
704 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 699 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
705 Strength strength = Strength::WEAK, | 700 Strength strength = Strength::WEAK, |
706 PretenureFlag pretenure = NOT_TENURED); | 701 PretenureFlag pretenure = NOT_TENURED); |
707 }; | 702 }; |
708 | 703 |
709 } // namespace internal | 704 } // namespace internal |
710 } // namespace v8 | 705 } // namespace v8 |
711 | 706 |
712 #endif // V8_FACTORY_H_ | 707 #endif // V8_FACTORY_H_ |
OLD | NEW |