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/feedback-vector.h" | 8 #include "src/feedback-vector.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 const ExternalOneByteString::Resource* resource); | 260 const ExternalOneByteString::Resource* resource); |
261 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( | 261 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( |
262 const ExternalTwoByteString::Resource* resource); | 262 const ExternalTwoByteString::Resource* resource); |
263 // Create a new external string object for one-byte encoded native script. | 263 // Create a new external string object for one-byte encoded native script. |
264 // It does not cache the resource data pointer. | 264 // It does not cache the resource data pointer. |
265 Handle<ExternalOneByteString> NewNativeSourceString( | 265 Handle<ExternalOneByteString> NewNativeSourceString( |
266 const ExternalOneByteString::Resource* resource); | 266 const ExternalOneByteString::Resource* resource); |
267 | 267 |
268 // Create a symbol. | 268 // Create a symbol. |
269 Handle<Symbol> NewSymbol(); | 269 Handle<Symbol> NewSymbol(); |
270 MaybeHandle<Symbol> NewSymbol(Handle<Object> name); | |
271 Handle<Symbol> NewPrivateSymbol(); | 270 Handle<Symbol> NewPrivateSymbol(); |
272 MaybeHandle<Symbol> NewPrivateSymbol(Handle<Object> name); | |
273 | 271 |
274 // Create a promise. | 272 // Create a promise. |
275 Handle<JSPromise> NewJSPromise(); | 273 Handle<JSPromise> NewJSPromise(); |
276 | 274 |
277 // Create a global (but otherwise uninitialized) context. | 275 // Create a global (but otherwise uninitialized) context. |
278 Handle<Context> NewNativeContext(); | 276 Handle<Context> NewNativeContext(); |
279 | 277 |
280 // Create a script context. | 278 // Create a script context. |
281 Handle<Context> NewScriptContext(Handle<JSFunction> function, | 279 Handle<Context> NewScriptContext(Handle<JSFunction> function, |
282 Handle<ScopeInfo> scope_info); | 280 Handle<ScopeInfo> scope_info); |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 843 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
846 FunctionMode function_mode); | 844 FunctionMode function_mode); |
847 | 845 |
848 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 846 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
849 }; | 847 }; |
850 | 848 |
851 } // namespace internal | 849 } // namespace internal |
852 } // namespace v8 | 850 } // namespace v8 |
853 | 851 |
854 #endif // V8_FACTORY_H_ | 852 #endif // V8_FACTORY_H_ |
OLD | NEW |