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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 | 472 |
473 // Creates a new JSIteratorResult object with the arguments {value} and | 473 // Creates a new JSIteratorResult object with the arguments {value} and |
474 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject. | 474 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject. |
475 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, | 475 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, |
476 Handle<Object> done); | 476 Handle<Object> done); |
477 | 477 |
478 // Allocates a Harmony proxy. | 478 // Allocates a Harmony proxy. |
479 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 479 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
480 Handle<JSReceiver> handler); | 480 Handle<JSReceiver> handler); |
481 | 481 |
482 // Allocates a Harmony function proxy. | |
483 Handle<JSProxy> NewJSFunctionProxy(Handle<JSReceiver> target, | |
484 Handle<JSReceiver> handler, | |
485 Handle<JSReceiver> call_trap, | |
486 Handle<Object> construct_trap, | |
487 Handle<Object> prototype); | |
488 | |
489 // Reinitialize an JSGlobalProxy based on a constructor. The object | 482 // Reinitialize an JSGlobalProxy based on a constructor. The object |
490 // must have the same size as objects allocated using the | 483 // must have the same size as objects allocated using the |
491 // constructor. The object is reinitialized and behaves as an | 484 // constructor. The object is reinitialized and behaves as an |
492 // object that has been freshly allocated using the constructor. | 485 // object that has been freshly allocated using the constructor. |
493 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 486 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
494 Handle<JSFunction> constructor); | 487 Handle<JSFunction> constructor); |
495 | 488 |
496 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); | 489 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); |
497 | 490 |
498 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 491 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 | 696 |
704 Handle<JSFunction> NewFunction(Handle<Map> map, | 697 Handle<JSFunction> NewFunction(Handle<Map> map, |
705 Handle<String> name, | 698 Handle<String> name, |
706 MaybeHandle<Code> maybe_code); | 699 MaybeHandle<Code> maybe_code); |
707 }; | 700 }; |
708 | 701 |
709 } // namespace internal | 702 } // namespace internal |
710 } // namespace v8 | 703 } // namespace v8 |
711 | 704 |
712 #endif // V8_FACTORY_H_ | 705 #endif // V8_FACTORY_H_ |
OLD | NEW |