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/globals.h" | 8 #include "src/globals.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 Handle<ScopeInfo> scope_info); | 273 Handle<ScopeInfo> scope_info); |
274 | 274 |
275 // Create an empty script context table. | 275 // Create an empty script context table. |
276 Handle<ScriptContextTable> NewScriptContextTable(); | 276 Handle<ScriptContextTable> NewScriptContextTable(); |
277 | 277 |
278 // Create a module context. | 278 // Create a module context. |
279 Handle<Context> NewModuleContext(Handle<Module> module, | 279 Handle<Context> NewModuleContext(Handle<Module> module, |
280 Handle<JSFunction> function, | 280 Handle<JSFunction> function, |
281 Handle<ScopeInfo> scope_info); | 281 Handle<ScopeInfo> scope_info); |
282 | 282 |
| 283 // Create a eval context. |
| 284 Handle<Context> NewEvalContext(Handle<Module> module, |
| 285 Handle<JSFunction> function, |
| 286 Handle<ScopeInfo> scope_info); |
| 287 |
283 // Create a function context. | 288 // Create a function context. |
284 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); | 289 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); |
285 | 290 |
286 // Create a catch context. | 291 // Create a catch context. |
287 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 292 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
288 Handle<Context> previous, | 293 Handle<Context> previous, |
289 Handle<ScopeInfo> scope_info, | 294 Handle<ScopeInfo> scope_info, |
290 Handle<String> name, | 295 Handle<String> name, |
291 Handle<Object> thrown_object); | 296 Handle<Object> thrown_object); |
292 | 297 |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 FunctionMode function_mode); | 795 FunctionMode function_mode); |
791 | 796 |
792 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 797 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
793 FunctionMode function_mode); | 798 FunctionMode function_mode); |
794 }; | 799 }; |
795 | 800 |
796 } // namespace internal | 801 } // namespace internal |
797 } // namespace v8 | 802 } // namespace v8 |
798 | 803 |
799 #endif // V8_FACTORY_H_ | 804 #endif // V8_FACTORY_H_ |
OLD | NEW |