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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 Handle<ScriptContextTable> NewScriptContextTable(); | 281 Handle<ScriptContextTable> NewScriptContextTable(); |
282 | 282 |
283 // Create a module context. | 283 // Create a module context. |
284 Handle<Context> NewModuleContext(Handle<Module> module, | 284 Handle<Context> NewModuleContext(Handle<Module> module, |
285 Handle<JSFunction> function, | 285 Handle<JSFunction> function, |
286 Handle<ScopeInfo> scope_info); | 286 Handle<ScopeInfo> scope_info); |
287 | 287 |
288 // Create a function context. | 288 // Create a function context. |
289 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); | 289 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); |
290 | 290 |
| 291 // Create a eval context. |
| 292 Handle<Context> NewEvalContext(int length, Handle<JSFunction> function); |
| 293 |
291 // Create a catch context. | 294 // Create a catch context. |
292 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 295 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
293 Handle<Context> previous, | 296 Handle<Context> previous, |
294 Handle<ScopeInfo> scope_info, | 297 Handle<ScopeInfo> scope_info, |
295 Handle<String> name, | 298 Handle<String> name, |
296 Handle<Object> thrown_object); | 299 Handle<Object> thrown_object); |
297 | 300 |
298 // Create a 'with' context. | 301 // Create a 'with' context. |
299 Handle<Context> NewWithContext(Handle<JSFunction> function, | 302 Handle<Context> NewWithContext(Handle<JSFunction> function, |
300 Handle<Context> previous, | 303 Handle<Context> previous, |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 FunctionMode function_mode); | 791 FunctionMode function_mode); |
789 | 792 |
790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 793 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
791 FunctionMode function_mode); | 794 FunctionMode function_mode); |
792 }; | 795 }; |
793 | 796 |
794 } // namespace internal | 797 } // namespace internal |
795 } // namespace v8 | 798 } // namespace v8 |
796 | 799 |
797 #endif // V8_FACTORY_H_ | 800 #endif // V8_FACTORY_H_ |
OLD | NEW |