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

Unified Diff: third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Support runtime feature on templates Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
index 88bf120156c3af2780a8142921876d13ea38a068..fcbcdc6dcf66e979fedacce9d4e0bfa7a08f89b1 100644
--- a/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
@@ -920,7 +920,9 @@ v8::Local<v8::Object> {{v8_class}}::findInstanceInPrototypeChain(v8::Local<v8::V
{% if has_partial_interface %}
{% if needs_runtime_enabled_installer %}
InstallRuntimeEnabledFunction {{v8_class}}::install{{v8_class}}RuntimeEnabledFunction =
- &{{v8_class}}::installRuntimeEnabledFeatures;
+ &{{v8_class}}::InstallRuntimeEnabledFeatures;
+InstallRuntimeEnabledOnTemplateFunction {{v8_class}}::install{{v8_class}}RuntimeEnabledOnTemplateFunction =
+ &{{v8_class}}::InstallRuntimeEnabledFeaturesOnTemplate;
{% endif %}
InstallTemplateFunction {{v8_class}}::install{{v8_class}}TemplateFunction =
@@ -929,6 +931,7 @@ InstallTemplateFunction {{v8_class}}::install{{v8_class}}TemplateFunction =
void {{v8_class}}::updateWrapperTypeInfo(
InstallTemplateFunction installTemplateFunction,
InstallRuntimeEnabledFunction installRuntimeEnabledFunction,
+ InstallRuntimeEnabledOnTemplateFunction installRuntimeEnabledOnTemplateFunction,
PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInterfaceObjectFunction) {
ALLOW_UNUSED_LOCAL(installRuntimeEnabledFunction);
@@ -936,8 +939,11 @@ void {{v8_class}}::updateWrapperTypeInfo(
installTemplateFunction;
{% if needs_runtime_enabled_installer %}
CHECK(installRuntimeEnabledFunction);
+ CHECK(installRuntimeEnabledOnTemplateFunction);
{{v8_class}}::install{{v8_class}}RuntimeEnabledFunction =
installRuntimeEnabledFunction;
+ {{v8_class}}::install{{v8_class}}RuntimeEnabledOnTemplateFunction =
+ installRuntimeEnabledOnTemplateFunction;
{% endif %}
if (preparePrototypeAndInterfaceObjectFunction) {
{{v8_class}}::wrapperTypeInfo.prepare_prototype_and_interface_object_function =

Powered by Google App Engine
This is Rietveld 408576698