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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // because we cannot change the underlying buffer. Note that these strings | 214 // because we cannot change the underlying buffer. Note that these strings |
215 // are backed by a string resource that resides outside the V8 heap. | 215 // are backed by a string resource that resides outside the V8 heap. |
216 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromAscii( | 216 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromAscii( |
217 const ExternalAsciiString::Resource* resource); | 217 const ExternalAsciiString::Resource* resource); |
218 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( | 218 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( |
219 const ExternalTwoByteString::Resource* resource); | 219 const ExternalTwoByteString::Resource* resource); |
220 | 220 |
221 // Create a symbol. | 221 // Create a symbol. |
222 Handle<Symbol> NewSymbol(); | 222 Handle<Symbol> NewSymbol(); |
223 Handle<Symbol> NewPrivateSymbol(); | 223 Handle<Symbol> NewPrivateSymbol(); |
| 224 Handle<Symbol> NewPrivateOwnSymbol(); |
224 | 225 |
225 // Create a global (but otherwise uninitialized) context. | 226 // Create a global (but otherwise uninitialized) context. |
226 Handle<Context> NewNativeContext(); | 227 Handle<Context> NewNativeContext(); |
227 | 228 |
228 // Create a global context. | 229 // Create a global context. |
229 Handle<Context> NewGlobalContext(Handle<JSFunction> function, | 230 Handle<Context> NewGlobalContext(Handle<JSFunction> function, |
230 Handle<ScopeInfo> scope_info); | 231 Handle<ScopeInfo> scope_info); |
231 | 232 |
232 // Create a module context. | 233 // Create a module context. |
233 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); | 234 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 PretenureFlag pretenure = TENURED); | 702 PretenureFlag pretenure = TENURED); |
702 | 703 |
703 Handle<JSFunction> NewFunction(Handle<Map> map, | 704 Handle<JSFunction> NewFunction(Handle<Map> map, |
704 Handle<String> name, | 705 Handle<String> name, |
705 MaybeHandle<Code> maybe_code); | 706 MaybeHandle<Code> maybe_code); |
706 }; | 707 }; |
707 | 708 |
708 } } // namespace v8::internal | 709 } } // namespace v8::internal |
709 | 710 |
710 #endif // V8_FACTORY_H_ | 711 #endif // V8_FACTORY_H_ |
OLD | NEW |