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 Handle<JSMapIterator> NewJSMapIterator(); | 470 Handle<JSMapIterator> NewJSMapIterator(); |
471 Handle<JSSetIterator> NewJSSetIterator(); | 471 Handle<JSSetIterator> NewJSSetIterator(); |
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 Handle<Object> prototype); | |
482 | 481 |
483 // Allocates a Harmony function proxy. | 482 // Allocates a Harmony function proxy. |
484 Handle<JSProxy> NewJSFunctionProxy(Handle<JSReceiver> target, | 483 Handle<JSProxy> NewJSFunctionProxy(Handle<JSReceiver> target, |
485 Handle<JSReceiver> handler, | 484 Handle<JSReceiver> handler, |
486 Handle<JSReceiver> call_trap, | 485 Handle<JSReceiver> call_trap, |
487 Handle<Object> construct_trap, | 486 Handle<Object> construct_trap, |
488 Handle<Object> prototype); | 487 Handle<Object> prototype); |
489 | 488 |
490 // Reinitialize an JSGlobalProxy based on a constructor. The object | 489 // Reinitialize an JSGlobalProxy based on a constructor. The object |
491 // must have the same size as objects allocated using the | 490 // must have the same size as objects allocated using the |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 | 710 |
712 Handle<JSFunction> NewFunction(Handle<Map> map, | 711 Handle<JSFunction> NewFunction(Handle<Map> map, |
713 Handle<String> name, | 712 Handle<String> name, |
714 MaybeHandle<Code> maybe_code); | 713 MaybeHandle<Code> maybe_code); |
715 }; | 714 }; |
716 | 715 |
717 } // namespace internal | 716 } // namespace internal |
718 } // namespace v8 | 717 } // namespace v8 |
719 | 718 |
720 #endif // V8_FACTORY_H_ | 719 #endif // V8_FACTORY_H_ |
OLD | NEW |