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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 | 523 |
524 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); | 524 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); |
525 | 525 |
526 Handle<JSMap> NewJSMap(); | 526 Handle<JSMap> NewJSMap(); |
527 Handle<JSSet> NewJSSet(); | 527 Handle<JSSet> NewJSSet(); |
528 | 528 |
529 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 529 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
530 Handle<JSMapIterator> NewJSMapIterator(); | 530 Handle<JSMapIterator> NewJSMapIterator(); |
531 Handle<JSSetIterator> NewJSSetIterator(); | 531 Handle<JSSetIterator> NewJSSetIterator(); |
532 | 532 |
| 533 Handle<JSFixedArrayIterator> NewJSFixedArrayIterator( |
| 534 Handle<FixedArray> array); |
| 535 |
533 // Allocates a bound function. | 536 // Allocates a bound function. |
534 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | 537 MaybeHandle<JSBoundFunction> NewJSBoundFunction( |
535 Handle<JSReceiver> target_function, Handle<Object> bound_this, | 538 Handle<JSReceiver> target_function, Handle<Object> bound_this, |
536 Vector<Handle<Object>> bound_args); | 539 Vector<Handle<Object>> bound_args); |
537 | 540 |
538 // Allocates a Harmony proxy. | 541 // Allocates a Harmony proxy. |
539 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 542 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
540 Handle<JSReceiver> handler); | 543 Handle<JSReceiver> handler); |
541 | 544 |
542 // Reinitialize an JSGlobalProxy based on a constructor. The object | 545 // Reinitialize an JSGlobalProxy based on a constructor. The object |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 FunctionMode function_mode); | 782 FunctionMode function_mode); |
780 | 783 |
781 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 784 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
782 FunctionMode function_mode); | 785 FunctionMode function_mode); |
783 }; | 786 }; |
784 | 787 |
785 } // namespace internal | 788 } // namespace internal |
786 } // namespace v8 | 789 } // namespace v8 |
787 | 790 |
788 #endif // V8_FACTORY_H_ | 791 #endif // V8_FACTORY_H_ |
OLD | NEW |