| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 const ExternalTwoByteString::Resource* resource); | 259 const ExternalTwoByteString::Resource* resource); |
| 260 // Create a new external string object for one-byte encoded native script. | 260 // Create a new external string object for one-byte encoded native script. |
| 261 // It does not cache the resource data pointer. | 261 // It does not cache the resource data pointer. |
| 262 Handle<ExternalOneByteString> NewNativeSourceString( | 262 Handle<ExternalOneByteString> NewNativeSourceString( |
| 263 const ExternalOneByteString::Resource* resource); | 263 const ExternalOneByteString::Resource* resource); |
| 264 | 264 |
| 265 // Create a symbol. | 265 // Create a symbol. |
| 266 Handle<Symbol> NewSymbol(); | 266 Handle<Symbol> NewSymbol(); |
| 267 Handle<Symbol> NewPrivateSymbol(); | 267 Handle<Symbol> NewPrivateSymbol(); |
| 268 | 268 |
| 269 // Create a promise. |
| 270 Handle<JSPromise> NewJSPromise(); |
| 271 |
| 269 // Create a global (but otherwise uninitialized) context. | 272 // Create a global (but otherwise uninitialized) context. |
| 270 Handle<Context> NewNativeContext(); | 273 Handle<Context> NewNativeContext(); |
| 271 | 274 |
| 272 // Create a script context. | 275 // Create a script context. |
| 273 Handle<Context> NewScriptContext(Handle<JSFunction> function, | 276 Handle<Context> NewScriptContext(Handle<JSFunction> function, |
| 274 Handle<ScopeInfo> scope_info); | 277 Handle<ScopeInfo> scope_info); |
| 275 | 278 |
| 276 // Create an empty script context table. | 279 // Create an empty script context table. |
| 277 Handle<ScriptContextTable> NewScriptContextTable(); | 280 Handle<ScriptContextTable> NewScriptContextTable(); |
| 278 | 281 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 825 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 823 FunctionMode function_mode); | 826 FunctionMode function_mode); |
| 824 | 827 |
| 825 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 828 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 826 }; | 829 }; |
| 827 | 830 |
| 828 } // namespace internal | 831 } // namespace internal |
| 829 } // namespace v8 | 832 } // namespace v8 |
| 830 | 833 |
| 831 #endif // V8_FACTORY_H_ | 834 #endif // V8_FACTORY_H_ |
| OLD | NEW |