diff options
Diffstat (limited to 'deps/v8/src/compiler.h')
-rw-r--r-- | deps/v8/src/compiler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/compiler.h b/deps/v8/src/compiler.h index cc63697221..b84134c14e 100644 --- a/deps/v8/src/compiler.h +++ b/deps/v8/src/compiler.h @@ -101,6 +101,14 @@ class V8_EXPORT_PRIVATE Compiler : public AllStatic { int column_offset = 0, Handle<Object> script_name = Handle<Object>(), ScriptOriginOptions options = ScriptOriginOptions()); + // Create a function that results from wrapping |source| in a function, + // with |arguments| being a list of parameters for that function. + MUST_USE_RESULT static MaybeHandle<JSFunction> GetWrappedFunction( + Handle<String> source, Handle<FixedArray> arguments, + Handle<Context> context, int line_offset = 0, int column_offset = 0, + Handle<Object> script_name = Handle<Object>(), + ScriptOriginOptions options = ScriptOriginOptions()); + // Returns true if the embedder permits compiling the given source string in // the given context. static bool CodeGenerationFromStringsAllowed(Isolate* isolate, |