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 | 471 |
472 void NewJSArrayStorage( | 472 void NewJSArrayStorage( |
473 Handle<JSArray> array, | 473 Handle<JSArray> array, |
474 int length, | 474 int length, |
475 int capacity, | 475 int capacity, |
476 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 476 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |
477 | 477 |
478 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 478 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); |
479 | 479 |
480 Handle<Module> NewModule(int min_size); | 480 Handle<Module> NewModule(Handle<SharedFunctionInfo> code, int min_size); |
481 | 481 |
482 Handle<JSArrayBuffer> NewJSArrayBuffer( | 482 Handle<JSArrayBuffer> NewJSArrayBuffer( |
483 SharedFlag shared = SharedFlag::kNotShared, | 483 SharedFlag shared = SharedFlag::kNotShared, |
484 PretenureFlag pretenure = NOT_TENURED); | 484 PretenureFlag pretenure = NOT_TENURED); |
485 | 485 |
486 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, | 486 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, |
487 PretenureFlag pretenure = NOT_TENURED); | 487 PretenureFlag pretenure = NOT_TENURED); |
488 | 488 |
489 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, | 489 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, |
490 PretenureFlag pretenure = NOT_TENURED); | 490 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 FunctionMode function_mode); | 762 FunctionMode function_mode); |
763 | 763 |
764 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 764 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
765 FunctionMode function_mode); | 765 FunctionMode function_mode); |
766 }; | 766 }; |
767 | 767 |
768 } // namespace internal | 768 } // namespace internal |
769 } // namespace v8 | 769 } // namespace v8 |
770 | 770 |
771 #endif // V8_FACTORY_H_ | 771 #endif // V8_FACTORY_H_ |
OLD | NEW |