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 | 10 |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 | 473 |
474 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 474 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
475 Handle<JSMapIterator> NewJSMapIterator(); | 475 Handle<JSMapIterator> NewJSMapIterator(); |
476 Handle<JSSetIterator> NewJSSetIterator(); | 476 Handle<JSSetIterator> NewJSSetIterator(); |
477 | 477 |
478 // Allocates a Harmony proxy. | 478 // Allocates a Harmony proxy. |
479 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 479 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
480 | 480 |
481 // Allocates a Harmony function proxy. | 481 // Allocates a Harmony function proxy. |
482 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, | 482 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, |
483 Handle<Object> call_trap, | 483 Handle<JSReceiver> call_trap, |
484 Handle<Object> construct_trap, | 484 Handle<Object> construct_trap, |
485 Handle<Object> prototype); | 485 Handle<Object> prototype); |
486 | 486 |
487 // Reinitialize an JSGlobalProxy based on a constructor. The object | 487 // Reinitialize an JSGlobalProxy based on a constructor. The object |
488 // must have the same size as objects allocated using the | 488 // must have the same size as objects allocated using the |
489 // constructor. The object is reinitialized and behaves as an | 489 // constructor. The object is reinitialized and behaves as an |
490 // object that has been freshly allocated using the constructor. | 490 // object that has been freshly allocated using the constructor. |
491 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 491 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
492 Handle<JSFunction> constructor); | 492 Handle<JSFunction> constructor); |
493 | 493 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 717 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
718 // size, but keeping the original prototype. The receiver must have at least | 718 // size, but keeping the original prototype. The receiver must have at least |
719 // the size of the new object. The object is reinitialized and behaves as an | 719 // the size of the new object. The object is reinitialized and behaves as an |
720 // object that has been freshly allocated. | 720 // object that has been freshly allocated. |
721 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 721 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
722 }; | 722 }; |
723 | 723 |
724 } } // namespace v8::internal | 724 } } // namespace v8::internal |
725 | 725 |
726 #endif // V8_FACTORY_H_ | 726 #endif // V8_FACTORY_H_ |
OLD | NEW |