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

Unified Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 1046423002: [bindings] Remove History.(push|replace)State custom bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/bindings/tests/results/core/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/core/V8TestObject.cpp b/Source/bindings/tests/results/core/V8TestObject.cpp
index 9f7655cc5dd574f7062cfafc1d9325e1ae78a056..52e51bf1a96820542b72968a9c232a71dbc7e3da 100644
--- a/Source/bindings/tests/results/core/V8TestObject.cpp
+++ b/Source/bindings/tests/results/core/V8TestObject.cpp
@@ -9999,6 +9999,36 @@ static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
}
+static void clearSingleCachedAttributeMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
+{
+ TestObject* impl = V8TestObject::toImpl(info.Holder());
+ impl->clearSingleCachedAttribute();
+ V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenValue::one(info.GetIsolate()));
+}
+
+static void clearSingleCachedAttributeMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
+{
+ TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
+ TestObjectV8Internal::clearSingleCachedAttributeMethod(info);
+ TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
+}
+
+static void clearMultipleCachedAttributesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
+{
+ TestObject* impl = V8TestObject::toImpl(info.Holder());
+ impl->clearMultipleCachedAttributes();
+ V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenValue::one(info.GetIsolate()));
+ V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenValue::two(info.GetIsolate()));
+ V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenValue::three(info.GetIsolate()));
+}
+
+static void clearMultipleCachedAttributesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
+{
+ TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
+ TestObjectV8Internal::clearMultipleCachedAttributesMethod(info);
+ TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
+}
+
#if ENABLE(CONDITION)
static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
@@ -12471,6 +12501,8 @@ static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
{"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWindowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
{"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
{"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNodeVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
+ {"clearSingleCachedAttribute", TestObjectV8Internal::clearSingleCachedAttributeMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
+ {"clearMultipleCachedAttributes", TestObjectV8Internal::clearMultipleCachedAttributesMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
#if ENABLE(CONDITION)
{"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditionVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
#endif // ENABLE(CONDITION)

Powered by Google App Engine
This is Rietveld 408576698