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/globals.h" | 8 #include "src/globals.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 | 536 |
537 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); | 537 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done); |
538 | 538 |
539 Handle<JSMap> NewJSMap(); | 539 Handle<JSMap> NewJSMap(); |
540 Handle<JSSet> NewJSSet(); | 540 Handle<JSSet> NewJSSet(); |
541 | 541 |
542 // TODO(aandrey): Maybe these should take table, index and kind arguments. | 542 // TODO(aandrey): Maybe these should take table, index and kind arguments. |
543 Handle<JSMapIterator> NewJSMapIterator(); | 543 Handle<JSMapIterator> NewJSMapIterator(); |
544 Handle<JSSetIterator> NewJSSetIterator(); | 544 Handle<JSSetIterator> NewJSSetIterator(); |
545 | 545 |
546 Handle<JSFixedArrayIterator> NewJSFixedArrayIterator( | |
547 Handle<FixedArray> array); | |
548 | |
549 // Allocates a bound function. | 546 // Allocates a bound function. |
550 MaybeHandle<JSBoundFunction> NewJSBoundFunction( | 547 MaybeHandle<JSBoundFunction> NewJSBoundFunction( |
551 Handle<JSReceiver> target_function, Handle<Object> bound_this, | 548 Handle<JSReceiver> target_function, Handle<Object> bound_this, |
552 Vector<Handle<Object>> bound_args); | 549 Vector<Handle<Object>> bound_args); |
553 | 550 |
554 // Allocates a Harmony proxy. | 551 // Allocates a Harmony proxy. |
555 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, | 552 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, |
556 Handle<JSReceiver> handler); | 553 Handle<JSReceiver> handler); |
557 | 554 |
558 // Reinitialize an JSGlobalProxy based on a constructor. The object | 555 // Reinitialize an JSGlobalProxy based on a constructor. The object |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 803 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
807 FunctionMode function_mode); | 804 FunctionMode function_mode); |
808 | 805 |
809 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 806 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
810 }; | 807 }; |
811 | 808 |
812 } // namespace internal | 809 } // namespace internal |
813 } // namespace v8 | 810 } // namespace v8 |
814 | 811 |
815 #endif // V8_FACTORY_H_ | 812 #endif // V8_FACTORY_H_ |
OLD | NEW |