Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp

Issue 2277713002: Rename CustomElementsRegistry to CustomElementRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 CHECK(!context->isIteratingOverObservers()); 459 CHECK(!context->isIteratingOverObservers());
460 460
461 if (ScriptForbiddenScope::isScriptForbidden()) { 461 if (ScriptForbiddenScope::isScriptForbidden()) {
462 throwScriptForbiddenException(isolate); 462 throwScriptForbiddenException(isolate);
463 return v8::MaybeLocal<v8::Value>(); 463 return v8::MaybeLocal<v8::Value>();
464 } 464 }
465 465
466 // TODO(dominicc): When inspector supports tracing object 466 // TODO(dominicc): When inspector supports tracing object
467 // invocation, change this to use v8::Object instead of 467 // invocation, change this to use v8::Object instead of
468 // v8::Function. All callers use functions because 468 // v8::Function. All callers use functions because
469 // CustomElementsRegistry#define's IDL signature is Function. 469 // CustomElementRegistry#define's IDL signature is Function.
470 CHECK(constructor->IsFunction()); 470 CHECK(constructor->IsFunction());
471 v8::Local<v8::Function> function = constructor.As<v8::Function>(); 471 v8::Local<v8::Function> function = constructor.As<v8::Function>();
472 472
473 if (!depth) 473 if (!depth)
474 TRACE_EVENT_BEGIN1("devtools.timeline", "FunctionCall", "data", Inspecto rFunctionCallEvent::data(context, function)); 474 TRACE_EVENT_BEGIN1("devtools.timeline", "FunctionCall", "data", Inspecto rFunctionCallEvent::data(context, function));
475 v8::MaybeLocal<v8::Value> result; 475 v8::MaybeLocal<v8::Value> result;
476 { 476 {
477 // Create an extra block so FunctionCall trace event end phase is record ed after 477 // Create an extra block so FunctionCall trace event end phase is record ed after
478 // v8::MicrotasksScope destructor, as the latter is running microtasks. 478 // v8::MicrotasksScope destructor, as the latter is running microtasks.
479 v8::MicrotasksScope microtasksScope(isolate, v8::MicrotasksScope::kRunMi crotasks); 479 v8::MicrotasksScope microtasksScope(isolate, v8::MicrotasksScope::kRunMi crotasks);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 V8CompileHistogram::Cacheability::Noncacheable, isolate, 604 V8CompileHistogram::Cacheability::Noncacheable, isolate,
605 v8AtomicString(isolate, "((e) => { throw e; })"), origin) 605 v8AtomicString(isolate, "((e) => { throw e; })"), origin)
606 .ToLocalChecked(); 606 .ToLocalChecked();
607 v8::Local<v8::Function> thrower = runCompiledInternalScript(isolate, script) 607 v8::Local<v8::Function> thrower = runCompiledInternalScript(isolate, script)
608 .ToLocalChecked().As<v8::Function>(); 608 .ToLocalChecked().As<v8::Function>();
609 v8::Local<v8::Value> args[] = { exception }; 609 v8::Local<v8::Value> args[] = { exception };
610 callInternalFunction(thrower, thrower, WTF_ARRAY_LENGTH(args), args, isolate ); 610 callInternalFunction(thrower, thrower, WTF_ARRAY_LENGTH(args), args, isolate );
611 } 611 }
612 612
613 } // namespace blink 613 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698