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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 | 470 |
471 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 471 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
472 Handle<JSMapIterator> NewJSMapIterator(); | 472 Handle<JSMapIterator> NewJSMapIterator(); |
473 Handle<JSSetIterator> NewJSSetIterator(); | 473 Handle<JSSetIterator> NewJSSetIterator(); |
474 | 474 |
475 // Creates a new JSIteratorResult object with the arguments {value} and | 475 // Creates a new JSIteratorResult object with the arguments {value} and |
476 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject. | 476 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject. |
477 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, | 477 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, |
478 Handle<Object> done); | 478 Handle<Object> done); |
479 | 479 |
480 // Allocates a bound function. | |
481 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | |
482 Handle<JSReceiver> target_function, Handle<Object> bound_this, | |
483 Vector<Handle<Object>> bound_args); | |
484 | |
485 // Allocates a Harmony proxy. | 480 // Allocates a Harmony proxy. |
486 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 481 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
487 Handle<JSReceiver> handler); | 482 Handle<JSReceiver> handler); |
488 | 483 |
489 // Reinitialize an JSGlobalProxy based on a constructor. The object | 484 // Reinitialize an JSGlobalProxy based on a constructor. The object |
490 // must have the same size as objects allocated using the | 485 // must have the same size as objects allocated using the |
491 // constructor. The object is reinitialized and behaves as an | 486 // constructor. The object is reinitialized and behaves as an |
492 // object that has been freshly allocated using the constructor. | 487 // object that has been freshly allocated using the constructor. |
493 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 488 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
494 Handle<JSFunction> constructor); | 489 Handle<JSFunction> constructor); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 Handle<JSFunction> NewFunction(Handle<Map> map, | 696 Handle<JSFunction> NewFunction(Handle<Map> map, |
702 Handle<SharedFunctionInfo> info, | 697 Handle<SharedFunctionInfo> info, |
703 Handle<Context> context, | 698 Handle<Context> context, |
704 PretenureFlag pretenure = TENURED); | 699 PretenureFlag pretenure = TENURED); |
705 }; | 700 }; |
706 | 701 |
707 } // namespace internal | 702 } // namespace internal |
708 } // namespace v8 | 703 } // namespace v8 |
709 | 704 |
710 #endif // V8_FACTORY_H_ | 705 #endif // V8_FACTORY_H_ |
OLD | NEW |