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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 } | 479 } |
480 | 480 |
481 void NewJSArrayStorage( | 481 void NewJSArrayStorage( |
482 Handle<JSArray> array, | 482 Handle<JSArray> array, |
483 int length, | 483 int length, |
484 int capacity, | 484 int capacity, |
485 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 485 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |
486 | 486 |
487 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 487 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); |
488 | 488 |
| 489 Handle<JSModuleNamespace> NewJSModuleNamespace(); |
| 490 |
489 Handle<Module> NewModule(Handle<SharedFunctionInfo> code); | 491 Handle<Module> NewModule(Handle<SharedFunctionInfo> code); |
490 | 492 |
491 Handle<JSArrayBuffer> NewJSArrayBuffer( | 493 Handle<JSArrayBuffer> NewJSArrayBuffer( |
492 SharedFlag shared = SharedFlag::kNotShared, | 494 SharedFlag shared = SharedFlag::kNotShared, |
493 PretenureFlag pretenure = NOT_TENURED); | 495 PretenureFlag pretenure = NOT_TENURED); |
494 | 496 |
495 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, | 497 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, |
496 PretenureFlag pretenure = NOT_TENURED); | 498 PretenureFlag pretenure = NOT_TENURED); |
497 | 499 |
498 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, | 500 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 FunctionMode function_mode); | 773 FunctionMode function_mode); |
772 | 774 |
773 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 775 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
774 FunctionMode function_mode); | 776 FunctionMode function_mode); |
775 }; | 777 }; |
776 | 778 |
777 } // namespace internal | 779 } // namespace internal |
778 } // namespace v8 | 780 } // namespace v8 |
779 | 781 |
780 #endif // V8_FACTORY_H_ | 782 #endif // V8_FACTORY_H_ |
OLD | NEW |