| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 v8::Local<v8::String>, | 74 v8::Local<v8::String>, |
| 75 const String& fileName, | 75 const String& fileName, |
| 76 const String& sourceMapUrl, | 76 const String& sourceMapUrl, |
| 77 const TextPosition&, | 77 const TextPosition&, |
| 78 v8::Isolate*, | 78 v8::Isolate*, |
| 79 ScriptResource* = nullptr, | 79 ScriptResource* = nullptr, |
| 80 ScriptStreamer* = nullptr, | 80 ScriptStreamer* = nullptr, |
| 81 CachedMetadataHandler* = nullptr, | 81 CachedMetadataHandler* = nullptr, |
| 82 AccessControlStatus = SharableCrossOrigin, | 82 AccessControlStatus = SharableCrossOrigin, |
| 83 V8CacheOptions = V8CacheOptionsDefault); | 83 V8CacheOptions = V8CacheOptionsDefault); |
| 84 static v8::MaybeLocal<v8::Module> compileModule(v8::Isolate*, |
| 85 const String& source, |
| 86 const String& fileName); |
| 84 static v8::MaybeLocal<v8::Value> runCompiledScript(v8::Isolate*, | 87 static v8::MaybeLocal<v8::Value> runCompiledScript(v8::Isolate*, |
| 85 v8::Local<v8::Script>, | 88 v8::Local<v8::Script>, |
| 86 ExecutionContext*); | 89 ExecutionContext*); |
| 87 static v8::MaybeLocal<v8::Value> compileAndRunInternalScript( | 90 static v8::MaybeLocal<v8::Value> compileAndRunInternalScript( |
| 88 v8::Local<v8::String>, | 91 v8::Local<v8::String>, |
| 89 v8::Isolate*, | 92 v8::Isolate*, |
| 90 const String& = String(), | 93 const String& = String(), |
| 91 const TextPosition& = TextPosition()); | 94 const TextPosition& = TextPosition()); |
| 92 static v8::MaybeLocal<v8::Value> runCompiledInternalScript( | 95 static v8::MaybeLocal<v8::Value> runCompiledInternalScript( |
| 93 v8::Isolate*, | 96 v8::Isolate*, |
| 94 v8::Local<v8::Script>); | 97 v8::Local<v8::Script>); |
| 95 static v8::MaybeLocal<v8::Value> callAsConstructor( | 98 static v8::MaybeLocal<v8::Value> callAsConstructor( |
| 96 v8::Isolate*, | 99 v8::Isolate*, |
| 97 v8::Local<v8::Object>, | 100 v8::Local<v8::Object>, |
| 98 ExecutionContext*, | 101 ExecutionContext*, |
| 99 int argc = 0, | 102 int argc = 0, |
| 100 v8::Local<v8::Value> argv[] = 0); | 103 v8::Local<v8::Value> argv[] = 0); |
| 101 static v8::MaybeLocal<v8::Value> callInternalFunction( | 104 static v8::MaybeLocal<v8::Value> callInternalFunction( |
| 102 v8::Local<v8::Function>, | 105 v8::Local<v8::Function>, |
| 103 v8::Local<v8::Value> receiver, | 106 v8::Local<v8::Value> receiver, |
| 104 int argc, | 107 int argc, |
| 105 v8::Local<v8::Value> info[], | 108 v8::Local<v8::Value> info[], |
| 106 v8::Isolate*); | 109 v8::Isolate*); |
| 107 static v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, | 110 static v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, |
| 108 ExecutionContext*, | 111 ExecutionContext*, |
| 109 v8::Local<v8::Value> receiver, | 112 v8::Local<v8::Value> receiver, |
| 110 int argc, | 113 int argc, |
| 111 v8::Local<v8::Value> info[], | 114 v8::Local<v8::Value> info[], |
| 112 v8::Isolate*); | 115 v8::Isolate*); |
| 116 static v8::MaybeLocal<v8::Value> evaluateModule(v8::Local<v8::Module>, |
| 117 v8::Local<v8::Context>, |
| 118 v8::Isolate*); |
| 113 static v8::MaybeLocal<v8::Object> instantiateObject( | 119 static v8::MaybeLocal<v8::Object> instantiateObject( |
| 114 v8::Isolate*, | 120 v8::Isolate*, |
| 115 v8::Local<v8::ObjectTemplate>); | 121 v8::Local<v8::ObjectTemplate>); |
| 116 static v8::MaybeLocal<v8::Object> instantiateObject( | 122 static v8::MaybeLocal<v8::Object> instantiateObject( |
| 117 v8::Isolate*, | 123 v8::Isolate*, |
| 118 v8::Local<v8::Function>, | 124 v8::Local<v8::Function>, |
| 119 int argc = 0, | 125 int argc = 0, |
| 120 v8::Local<v8::Value> argv[] = 0); | 126 v8::Local<v8::Value> argv[] = 0); |
| 121 static v8::MaybeLocal<v8::Object> instantiateObjectInDocument( | 127 static v8::MaybeLocal<v8::Object> instantiateObjectInDocument( |
| 122 v8::Isolate*, | 128 v8::Isolate*, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 return v8::MaybeLocal<v8::Value>(); | 170 return v8::MaybeLocal<v8::Value>(); |
| 165 v8::Local<v8::Function> function = functionValue.As<v8::Function>(); | 171 v8::Local<v8::Function> function = functionValue.As<v8::Function>(); |
| 166 return V8ScriptRunner::callInternalFunction(function, undefined, numArgs, | 172 return V8ScriptRunner::callInternalFunction(function, undefined, numArgs, |
| 167 args, isolate); | 173 args, isolate); |
| 168 } | 174 } |
| 169 }; | 175 }; |
| 170 | 176 |
| 171 } // namespace blink | 177 } // namespace blink |
| 172 | 178 |
| 173 #endif // V8ScriptRunner_h | 179 #endif // V8ScriptRunner_h |
| OLD | NEW |