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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Harmony proxy. | 480 // Allocates a Harmony proxy. |
481 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 481 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
482 Handle<JSReceiver> handler); | 482 Handle<JSReceiver> handler); |
483 | 483 |
484 // Allocates a Harmony function proxy. | |
485 Handle<JSProxy> NewJSFunctionProxy(Handle<JSReceiver> target, | |
486 Handle<JSReceiver> handler, | |
487 Handle<JSReceiver> call_trap, | |
488 Handle<Object> construct_trap, | |
489 Handle<Object> prototype); | |
490 | |
491 // Reinitialize an JSGlobalProxy based on a constructor. The object | 484 // Reinitialize an JSGlobalProxy based on a constructor. The object |
492 // must have the same size as objects allocated using the | 485 // must have the same size as objects allocated using the |
493 // constructor. The object is reinitialized and behaves as an | 486 // constructor. The object is reinitialized and behaves as an |
494 // object that has been freshly allocated using the constructor. | 487 // object that has been freshly allocated using the constructor. |
495 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 488 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
496 Handle<JSFunction> constructor); | 489 Handle<JSFunction> constructor); |
497 | 490 |
498 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); | 491 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); |
499 | 492 |
500 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 493 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 698 |
706 Handle<JSFunction> NewFunction(Handle<Map> map, | 699 Handle<JSFunction> NewFunction(Handle<Map> map, |
707 Handle<String> name, | 700 Handle<String> name, |
708 MaybeHandle<Code> maybe_code); | 701 MaybeHandle<Code> maybe_code); |
709 }; | 702 }; |
710 | 703 |
711 } // namespace internal | 704 } // namespace internal |
712 } // namespace v8 | 705 } // namespace v8 |
713 | 706 |
714 #endif // V8_FACTORY_H_ | 707 #endif // V8_FACTORY_H_ |
OLD | NEW |