| Index: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| index 27cbba23f0ec63cc119640d1127ca46fa581d2e7..dac4a0b7b70320a30c68ac1e40d9de7ed05e05d0 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| @@ -697,53 +697,6 @@ v8::MaybeLocal<v8::Value> V8ScriptRunner::evaluateModule(
|
| return module->Evaluate(context);
|
| }
|
|
|
| -v8::MaybeLocal<v8::Object> V8ScriptRunner::instantiateObject(
|
| - v8::Isolate* isolate,
|
| - v8::Local<v8::ObjectTemplate> objectTemplate) {
|
| - TRACE_EVENT0("v8", "v8.newInstance");
|
| -
|
| - v8::MicrotasksScope microtasksScope(isolate,
|
| - v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| - v8::MaybeLocal<v8::Object> result =
|
| - objectTemplate->NewInstance(isolate->GetCurrentContext());
|
| - CHECK(!isolate->IsDead());
|
| - return result;
|
| -}
|
| -
|
| -v8::MaybeLocal<v8::Object> V8ScriptRunner::instantiateObject(
|
| - v8::Isolate* isolate,
|
| - v8::Local<v8::Function> function,
|
| - int argc,
|
| - v8::Local<v8::Value> argv[]) {
|
| - TRACE_EVENT0("v8", "v8.newInstance");
|
| -
|
| - v8::MicrotasksScope microtasksScope(isolate,
|
| - v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| - v8::MaybeLocal<v8::Object> result =
|
| - function->NewInstance(isolate->GetCurrentContext(), argc, argv);
|
| - CHECK(!isolate->IsDead());
|
| - return result;
|
| -}
|
| -
|
| -v8::MaybeLocal<v8::Object> V8ScriptRunner::instantiateObjectInDocument(
|
| - v8::Isolate* isolate,
|
| - v8::Local<v8::Function> function,
|
| - ExecutionContext* context,
|
| - int argc,
|
| - v8::Local<v8::Value> argv[]) {
|
| - TRACE_EVENT0("v8", "v8.newInstance");
|
| - if (ScriptForbiddenScope::isScriptForbidden()) {
|
| - throwScriptForbiddenException(isolate);
|
| - return v8::MaybeLocal<v8::Object>();
|
| - }
|
| - v8::MicrotasksScope microtasksScope(isolate,
|
| - v8::MicrotasksScope::kRunMicrotasks);
|
| - v8::MaybeLocal<v8::Object> result =
|
| - function->NewInstance(isolate->GetCurrentContext(), argc, argv);
|
| - CHECK(!isolate->IsDead());
|
| - return result;
|
| -}
|
| -
|
| uint32_t V8ScriptRunner::tagForParserCache(
|
| CachedMetadataHandler* cacheHandler) {
|
| return cacheTag(CacheTagParser, cacheHandler);
|
|
|