| 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 |
| 480 // Allocates a Harmony proxy. | 485 // Allocates a Harmony proxy. |
| 481 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 486 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
| 482 Handle<JSReceiver> handler); | 487 Handle<JSReceiver> handler); |
| 483 | 488 |
| 484 // Reinitialize an JSGlobalProxy based on a constructor. The object | 489 // Reinitialize an JSGlobalProxy based on a constructor. The object |
| 485 // must have the same size as objects allocated using the | 490 // must have the same size as objects allocated using the |
| 486 // constructor. The object is reinitialized and behaves as an | 491 // constructor. The object is reinitialized and behaves as an |
| 487 // object that has been freshly allocated using the constructor. | 492 // object that has been freshly allocated using the constructor. |
| 488 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 493 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
| 489 Handle<JSFunction> constructor); | 494 Handle<JSFunction> constructor); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 Handle<JSFunction> NewFunction(Handle<Map> map, | 701 Handle<JSFunction> NewFunction(Handle<Map> map, |
| 697 Handle<SharedFunctionInfo> info, | 702 Handle<SharedFunctionInfo> info, |
| 698 Handle<Context> context, | 703 Handle<Context> context, |
| 699 PretenureFlag pretenure = TENURED); | 704 PretenureFlag pretenure = TENURED); |
| 700 }; | 705 }; |
| 701 | 706 |
| 702 } // namespace internal | 707 } // namespace internal |
| 703 } // namespace v8 | 708 } // namespace v8 |
| 704 | 709 |
| 705 #endif // V8_FACTORY_H_ | 710 #endif // V8_FACTORY_H_ |
| OLD | NEW |