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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 Handle<Context> NewNativeContext(); | 250 Handle<Context> NewNativeContext(); |
251 | 251 |
252 // Create a script context. | 252 // Create a script context. |
253 Handle<Context> NewScriptContext(Handle<JSFunction> function, | 253 Handle<Context> NewScriptContext(Handle<JSFunction> function, |
254 Handle<ScopeInfo> scope_info); | 254 Handle<ScopeInfo> scope_info); |
255 | 255 |
256 // Create an empty script context table. | 256 // Create an empty script context table. |
257 Handle<ScriptContextTable> NewScriptContextTable(); | 257 Handle<ScriptContextTable> NewScriptContextTable(); |
258 | 258 |
259 // Create a module context. | 259 // Create a module context. |
260 Handle<Context> NewModuleContext(Handle<JSModule> module, | 260 Handle<Context> NewModuleContext(Handle<Module> module, |
261 Handle<JSFunction> function, | 261 Handle<JSFunction> function, |
262 Handle<ScopeInfo> scope_info); | 262 Handle<ScopeInfo> scope_info); |
263 | 263 |
264 // Create a function context. | 264 // Create a function context. |
265 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); | 265 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); |
266 | 266 |
267 // Create a catch context. | 267 // Create a catch context. |
268 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 268 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
269 Handle<Context> previous, | 269 Handle<Context> previous, |
270 Handle<ScopeInfo> scope_info, | 270 Handle<ScopeInfo> scope_info, |
(...skipping 199 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<JSModule> NewJSModule(); | 480 Handle<Module> NewModule(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 |