OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObject.h" | 8 #include "V8TestObjectPython.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
11 #include "RuntimeEnabledFeatures.h" | 11 #include "RuntimeEnabledFeatures.h" |
12 #include "V8Attr.h" | 12 #include "V8Attr.h" |
13 #include "V8Document.h" | 13 #include "V8Document.h" |
14 #include "V8DocumentFragment.h" | 14 #include "V8DocumentFragment.h" |
15 #include "V8DocumentType.h" | 15 #include "V8DocumentType.h" |
16 #include "V8Element.h" | 16 #include "V8Element.h" |
17 #include "V8EventTarget.h" | 17 #include "V8EventTarget.h" |
18 #include "V8HTMLCollection.h" | 18 #include "V8HTMLCollection.h" |
19 #include "V8HTMLElement.h" | 19 #include "V8HTMLElement.h" |
20 #include "V8Node.h" | 20 #include "V8Node.h" |
21 #include "V8NodeFilter.h" | 21 #include "V8NodeFilter.h" |
22 #include "V8ShadowRoot.h" | 22 #include "V8ShadowRoot.h" |
23 #include "V8TestCallbackInterface.h" | 23 #include "V8TestCallbackInterface.h" |
24 #include "V8TestInterface.h" | 24 #include "V8TestInterface.h" |
25 #include "V8TestInterfaceEmpty.h" | 25 #include "V8TestInterfaceEmpty.h" |
| 26 #include "V8TestInterfacePython.h" |
26 #include "V8TestInterfaceWillBeGarbageCollected.h" | 27 #include "V8TestInterfaceWillBeGarbageCollected.h" |
27 #include "V8TestNode.h" | 28 #include "V8TestNode.h" |
| 29 #include "V8TestObjectA.h" |
28 #include "V8Window.h" | 30 #include "V8Window.h" |
29 #include "V8XPathNSResolver.h" | 31 #include "V8XPathNSResolver.h" |
30 #include "bindings/v8/BindingSecurity.h" | 32 #include "bindings/v8/BindingSecurity.h" |
31 #include "bindings/v8/Dictionary.h" | 33 #include "bindings/v8/Dictionary.h" |
32 #include "bindings/v8/ExceptionState.h" | 34 #include "bindings/v8/ExceptionState.h" |
33 #include "bindings/v8/ScriptCallStackFactory.h" | 35 #include "bindings/v8/ScriptCallStackFactory.h" |
34 #include "bindings/v8/ScriptPromise.h" | 36 #include "bindings/v8/ScriptPromise.h" |
35 #include "bindings/v8/ScriptState.h" | 37 #include "bindings/v8/ScriptState.h" |
36 #include "bindings/v8/ScriptValue.h" | 38 #include "bindings/v8/ScriptValue.h" |
37 #include "bindings/v8/SerializedScriptValue.h" | 39 #include "bindings/v8/SerializedScriptValue.h" |
(...skipping 14 matching lines...) Expand all Loading... |
52 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 54 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
53 #include "core/frame/DOMWindow.h" | 55 #include "core/frame/DOMWindow.h" |
54 #include "core/frame/UseCounter.h" | 56 #include "core/frame/UseCounter.h" |
55 #include "core/inspector/ScriptArguments.h" | 57 #include "core/inspector/ScriptArguments.h" |
56 #include "platform/TraceEvent.h" | 58 #include "platform/TraceEvent.h" |
57 #include "wtf/GetPtr.h" | 59 #include "wtf/GetPtr.h" |
58 #include "wtf/RefPtr.h" | 60 #include "wtf/RefPtr.h" |
59 | 61 |
60 namespace WebCore { | 62 namespace WebCore { |
61 | 63 |
62 static void initializeScriptWrappableForInterface(TestObject* object) | 64 static void initializeScriptWrappableForInterface(TestObjectPython* object) |
63 { | 65 { |
64 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 66 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
65 ScriptWrappable::setTypeInfoInObject(object, &V8TestObject::wrapperTypeI
nfo); | 67 ScriptWrappable::setTypeInfoInObject(object, &V8TestObjectPython::wrappe
rTypeInfo); |
66 else | 68 else |
67 ASSERT_NOT_REACHED(); | 69 ASSERT_NOT_REACHED(); |
68 } | 70 } |
69 | 71 |
70 } // namespace WebCore | 72 } // namespace WebCore |
71 | 73 |
72 void webCoreInitializeScriptWrappableForInterface(WebCore::TestObject* object) | 74 void webCoreInitializeScriptWrappableForInterface(WebCore::TestObjectPython* obj
ect) |
73 { | 75 { |
74 WebCore::initializeScriptWrappableForInterface(object); | 76 WebCore::initializeScriptWrappableForInterface(object); |
75 } | 77 } |
76 | 78 |
77 namespace WebCore { | 79 namespace WebCore { |
78 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::derefObject, 0, 0, 0, V8TestObject::instal
lPerContextEnabledMethods, 0, WrapperTypeObjectPrototype, false }; | 80 const WrapperTypeInfo V8TestObjectPython::wrapperTypeInfo = { gin::kEmbedderBlin
k, V8TestObjectPython::domTemplate, V8TestObjectPython::derefObject, 0, 0, 0, V8
TestObjectPython::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype
, false }; |
79 | 81 |
80 namespace TestObjectV8Internal { | 82 namespace TestObjectPythonV8Internal { |
81 | 83 |
82 template <typename T> void V8_USE(T) { } | 84 template <typename T> void V8_USE(T) { } |
83 | 85 |
84 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 86 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
85 { | 87 { |
86 v8::Handle<v8::Object> holder = info.Holder(); | 88 v8::Handle<v8::Object> holder = info.Holder(); |
87 TestObject* impl = V8TestObject::toNative(holder); | 89 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
88 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 90 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
89 } | 91 } |
90 | 92 |
91 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 93 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
92 { | 94 { |
93 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 95 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
94 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); | 96 TestObjectPythonV8Internal::readonlyStringAttributeAttributeGetter(info); |
95 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 97 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
96 } | 98 } |
97 | 99 |
98 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 100 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
99 { | 101 { |
100 v8::Handle<v8::Object> holder = info.Holder(); | 102 v8::Handle<v8::Object> holder = info.Holder(); |
101 TestObject* impl = V8TestObject::toNative(holder); | 103 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
102 RefPtr<TestInterfaceEmpty> result(impl->readonlyTestInterfaceEmptyAttribute(
)); | 104 RefPtr<TestInterfaceEmpty> result(impl->readonlyTestInterfaceEmptyAttribute(
)); |
103 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 105 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
104 return; | 106 return; |
105 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); | 107 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
106 if (!wrapper.IsEmpty()) { | 108 if (!wrapper.IsEmpty()) { |
107 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper); | 109 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper); |
108 v8SetReturnValue(info, wrapper); | 110 v8SetReturnValue(info, wrapper); |
109 } | 111 } |
110 } | 112 } |
111 | 113 |
112 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 114 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
113 { | 115 { |
114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
115 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf
o); | 117 TestObjectPythonV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGett
er(info); |
116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
117 } | 119 } |
118 | 120 |
119 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 121 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
120 { | 122 { |
121 v8::Handle<v8::Object> holder = info.Holder(); | 123 v8::Handle<v8::Object> holder = info.Holder(); |
122 TestObject* impl = V8TestObject::toNative(holder); | 124 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
123 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); | 125 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); |
124 } | 126 } |
125 | 127 |
126 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 128 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
127 { | 129 { |
128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
129 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); | 131 TestObjectPythonV8Internal::readonlyLongAttributeAttributeGetter(info); |
130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
131 } | 133 } |
132 | 134 |
133 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 135 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
134 { | 136 { |
135 v8::Handle<v8::Object> holder = info.Holder(); | 137 v8::Handle<v8::Object> holder = info.Holder(); |
136 TestObject* impl = V8TestObject::toNative(holder); | 138 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
137 v8SetReturnValue(info, v8DateOrNull(impl->dateAttribute(), info.GetIsolate()
)); | 139 v8SetReturnValue(info, v8DateOrNull(impl->dateAttribute(), info.GetIsolate()
)); |
138 } | 140 } |
139 | 141 |
140 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 142 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
141 { | 143 { |
142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
143 TestObjectV8Internal::dateAttributeAttributeGetter(info); | 145 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info); |
144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
145 } | 147 } |
146 | 148 |
147 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 149 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
148 { | 150 { |
149 v8::Handle<v8::Object> holder = info.Holder(); | 151 v8::Handle<v8::Object> holder = info.Holder(); |
150 TestObject* impl = V8TestObject::toNative(holder); | 152 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
151 V8TRYCATCH_VOID(double, cppValue, toCoreDate(v8Value)); | 153 V8TRYCATCH_VOID(double, cppValue, toCoreDate(v8Value)); |
152 impl->setDateAttribute(cppValue); | 154 impl->setDateAttribute(cppValue); |
153 } | 155 } |
154 | 156 |
155 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 157 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
156 { | 158 { |
157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
158 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); | 160 TestObjectPythonV8Internal::dateAttributeAttributeSetter(v8Value, info); |
159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
160 } | 162 } |
161 | 163 |
162 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 164 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
163 { | 165 { |
164 v8::Handle<v8::Object> holder = info.Holder(); | 166 v8::Handle<v8::Object> holder = info.Holder(); |
165 TestObject* impl = V8TestObject::toNative(holder); | 167 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
166 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); | 168 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); |
167 } | 169 } |
168 | 170 |
169 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 171 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
170 { | 172 { |
171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
172 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 174 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info); |
173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
174 } | 176 } |
175 | 177 |
176 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 178 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
177 { | 179 { |
178 v8::Handle<v8::Object> holder = info.Holder(); | 180 v8::Handle<v8::Object> holder = info.Holder(); |
179 TestObject* impl = V8TestObject::toNative(holder); | 181 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
180 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 182 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
181 impl->setStringAttribute(cppValue); | 183 impl->setStringAttribute(cppValue); |
182 } | 184 } |
183 | 185 |
184 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 186 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
185 { | 187 { |
186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
187 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 189 TestObjectPythonV8Internal::stringAttributeAttributeSetter(v8Value, info); |
188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
189 } | 191 } |
190 | 192 |
191 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 193 static void readonlyDOMTimeStampAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
192 { | 194 { |
193 v8::Handle<v8::Object> holder = info.Holder(); | 195 v8::Handle<v8::Object> holder = info.Holder(); |
194 TestObject* impl = V8TestObject::toNative(holder); | 196 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
195 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); | 197 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampAttribu
te())); |
196 } | 198 } |
197 | 199 |
198 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 200 static void readonlyDOMTimeStampAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
199 { | 201 { |
200 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
201 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); | 203 TestObjectPythonV8Internal::readonlyDOMTimeStampAttributeAttributeGetter(inf
o); |
202 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
203 } | |
204 | |
205 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | |
206 { | |
207 v8::Handle<v8::Object> holder = info.Holder(); | |
208 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); | |
209 TestObject* impl = V8TestObject::toNative(holder); | |
210 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); | |
211 impl->setDomTimeStampAttribute(cppValue); | |
212 } | |
213 | |
214 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | |
215 { | |
216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | |
217 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); | |
218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
219 } | 205 } |
220 | 206 |
221 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 207 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
222 { | 208 { |
223 v8::Handle<v8::Object> holder = info.Holder(); | 209 v8::Handle<v8::Object> holder = info.Holder(); |
224 TestObject* impl = V8TestObject::toNative(holder); | 210 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
225 v8SetReturnValueBool(info, impl->booleanAttribute()); | 211 v8SetReturnValueBool(info, impl->booleanAttribute()); |
226 } | 212 } |
227 | 213 |
228 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 214 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
229 { | 215 { |
230 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
231 TestObjectV8Internal::booleanAttributeAttributeGetter(info); | 217 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info); |
232 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
233 } | 219 } |
234 | 220 |
235 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 221 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
236 { | 222 { |
237 v8::Handle<v8::Object> holder = info.Holder(); | 223 v8::Handle<v8::Object> holder = info.Holder(); |
238 TestObject* impl = V8TestObject::toNative(holder); | 224 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
239 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue()); | 225 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue()); |
240 impl->setBooleanAttribute(cppValue); | 226 impl->setBooleanAttribute(cppValue); |
241 } | 227 } |
242 | 228 |
243 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 229 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
244 { | 230 { |
245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
246 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); | 232 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(v8Value, info); |
247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
248 } | 234 } |
249 | 235 |
250 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 236 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
251 { | 237 { |
252 v8::Handle<v8::Object> holder = info.Holder(); | 238 v8::Handle<v8::Object> holder = info.Holder(); |
253 TestObject* impl = V8TestObject::toNative(holder); | 239 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
254 v8SetReturnValueInt(info, impl->byteAttribute()); | 240 v8SetReturnValueInt(info, impl->byteAttribute()); |
255 } | 241 } |
256 | 242 |
257 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 243 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
258 { | 244 { |
259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
260 TestObjectV8Internal::byteAttributeAttributeGetter(info); | 246 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info); |
261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
262 } | 248 } |
263 | 249 |
264 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 250 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
265 { | 251 { |
266 v8::Handle<v8::Object> holder = info.Holder(); | 252 v8::Handle<v8::Object> holder = info.Holder(); |
267 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); | 253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObjectPython", holder, info.GetIsolate()); |
268 TestObject* impl = V8TestObject::toNative(holder); | 254 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
269 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(v8Value, exceptionState), ex
ceptionState); | 255 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(v8Value, exceptionState), ex
ceptionState); |
270 impl->setByteAttribute(cppValue); | 256 impl->setByteAttribute(cppValue); |
271 } | 257 } |
272 | 258 |
273 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 259 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
274 { | 260 { |
275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
276 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); | 262 TestObjectPythonV8Internal::byteAttributeAttributeSetter(v8Value, info); |
277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
278 } | 264 } |
279 | 265 |
280 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 266 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
281 { | 267 { |
282 v8::Handle<v8::Object> holder = info.Holder(); | 268 v8::Handle<v8::Object> holder = info.Holder(); |
283 TestObject* impl = V8TestObject::toNative(holder); | 269 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
284 v8SetReturnValue(info, impl->doubleAttribute()); | 270 v8SetReturnValue(info, impl->doubleAttribute()); |
285 } | 271 } |
286 | 272 |
287 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 273 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
288 { | 274 { |
289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
290 TestObjectV8Internal::doubleAttributeAttributeGetter(info); | 276 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info); |
291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
292 } | 278 } |
293 | 279 |
294 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 280 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
295 { | 281 { |
296 v8::Handle<v8::Object> holder = info.Holder(); | 282 v8::Handle<v8::Object> holder = info.Holder(); |
297 TestObject* impl = V8TestObject::toNative(holder); | 283 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
298 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue()
)); | 284 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue()
)); |
299 impl->setDoubleAttribute(cppValue); | 285 impl->setDoubleAttribute(cppValue); |
300 } | 286 } |
301 | 287 |
302 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 288 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
303 { | 289 { |
304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
305 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); | 291 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(v8Value, info); |
306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
307 } | 293 } |
308 | 294 |
309 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 295 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
310 { | 296 { |
311 v8::Handle<v8::Object> holder = info.Holder(); | 297 v8::Handle<v8::Object> holder = info.Holder(); |
312 TestObject* impl = V8TestObject::toNative(holder); | 298 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
313 v8SetReturnValue(info, impl->floatAttribute()); | 299 v8SetReturnValue(info, impl->floatAttribute()); |
314 } | 300 } |
315 | 301 |
316 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 302 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
317 { | 303 { |
318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
319 TestObjectV8Internal::floatAttributeAttributeGetter(info); | 305 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info); |
320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
321 } | 307 } |
322 | 308 |
323 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 309 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
324 { | 310 { |
325 v8::Handle<v8::Object> holder = info.Holder(); | 311 v8::Handle<v8::Object> holder = info.Holder(); |
326 TestObject* impl = V8TestObject::toNative(holder); | 312 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
327 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()))
; | 313 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()))
; |
328 impl->setFloatAttribute(cppValue); | 314 impl->setFloatAttribute(cppValue); |
329 } | 315 } |
330 | 316 |
331 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 317 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
332 { | 318 { |
333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
334 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); | 320 TestObjectPythonV8Internal::floatAttributeAttributeSetter(v8Value, info); |
335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
336 } | 322 } |
337 | 323 |
338 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 324 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
339 { | 325 { |
340 v8::Handle<v8::Object> holder = info.Holder(); | 326 v8::Handle<v8::Object> holder = info.Holder(); |
341 TestObject* impl = V8TestObject::toNative(holder); | 327 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
342 v8SetReturnValueInt(info, impl->longAttribute()); | 328 v8SetReturnValueInt(info, impl->longAttribute()); |
343 } | 329 } |
344 | 330 |
345 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 331 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
346 { | 332 { |
347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
348 TestObjectV8Internal::longAttributeAttributeGetter(info); | 334 TestObjectPythonV8Internal::longAttributeAttributeGetter(info); |
349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
350 } | 336 } |
351 | 337 |
352 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 338 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
353 { | 339 { |
354 v8::Handle<v8::Object> holder = info.Holder(); | 340 v8::Handle<v8::Object> holder = info.Holder(); |
355 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); | 341 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObjectPython", holder, info.GetIsolate()); |
356 TestObject* impl = V8TestObject::toNative(holder); | 342 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
357 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 343 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
358 impl->setLongAttribute(cppValue); | 344 impl->setLongAttribute(cppValue); |
359 } | 345 } |
360 | 346 |
361 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 347 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
362 { | 348 { |
363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
364 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); | 350 TestObjectPythonV8Internal::longAttributeAttributeSetter(v8Value, info); |
365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
366 } | 352 } |
367 | 353 |
368 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 354 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
369 { | 355 { |
370 v8::Handle<v8::Object> holder = info.Holder(); | 356 v8::Handle<v8::Object> holder = info.Holder(); |
371 TestObject* impl = V8TestObject::toNative(holder); | 357 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
372 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); | 358 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
373 } | 359 } |
374 | 360 |
375 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 361 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
376 { | 362 { |
377 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
378 TestObjectV8Internal::longLongAttributeAttributeGetter(info); | 364 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); |
379 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
380 } | 366 } |
381 | 367 |
382 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 368 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
383 { | 369 { |
384 v8::Handle<v8::Object> holder = info.Holder(); | 370 v8::Handle<v8::Object> holder = info.Holder(); |
385 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); | 371 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObjectPython", holder, info.GetIsolate()); |
386 TestObject* impl = V8TestObject::toNative(holder); | 372 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
387 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(v8Value, exceptionSta
te), exceptionState); | 373 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(v8Value, exceptionSta
te), exceptionState); |
388 impl->setLongLongAttribute(cppValue); | 374 impl->setLongLongAttribute(cppValue); |
389 } | 375 } |
390 | 376 |
391 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 377 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
392 { | 378 { |
393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
394 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); | 380 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(v8Value, info); |
395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
396 } | 382 } |
397 | 383 |
398 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 384 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
399 { | 385 { |
400 v8::Handle<v8::Object> holder = info.Holder(); | 386 v8::Handle<v8::Object> holder = info.Holder(); |
401 TestObject* impl = V8TestObject::toNative(holder); | 387 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
402 v8SetReturnValueUnsigned(info, impl->octetAttribute()); | 388 v8SetReturnValueUnsigned(info, impl->octetAttribute()); |
403 } | 389 } |
404 | 390 |
405 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 391 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
406 { | 392 { |
407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
408 TestObjectV8Internal::octetAttributeAttributeGetter(info); | 394 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info); |
409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
410 } | 396 } |
411 | 397 |
412 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 398 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
413 { | 399 { |
414 v8::Handle<v8::Object> holder = info.Holder(); | 400 v8::Handle<v8::Object> holder = info.Holder(); |
415 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); | 401 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObjectPython", holder, info.GetIsolate()); |
416 TestObject* impl = V8TestObject::toNative(holder); | 402 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
417 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(v8Value, exceptionStat
e), exceptionState); | 403 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(v8Value, exceptionStat
e), exceptionState); |
418 impl->setOctetAttribute(cppValue); | 404 impl->setOctetAttribute(cppValue); |
419 } | 405 } |
420 | 406 |
421 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 407 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
422 { | 408 { |
423 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
424 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); | 410 TestObjectPythonV8Internal::octetAttributeAttributeSetter(v8Value, info); |
425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
426 } | 412 } |
427 | 413 |
428 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 414 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
429 { | 415 { |
430 v8::Handle<v8::Object> holder = info.Holder(); | 416 v8::Handle<v8::Object> holder = info.Holder(); |
431 TestObject* impl = V8TestObject::toNative(holder); | 417 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
432 v8SetReturnValueInt(info, impl->shortAttribute()); | 418 v8SetReturnValueInt(info, impl->shortAttribute()); |
433 } | 419 } |
434 | 420 |
435 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 421 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
436 { | 422 { |
437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 423 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
438 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 424 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info); |
439 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
440 } | 426 } |
441 | 427 |
442 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 428 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
443 { | 429 { |
444 v8::Handle<v8::Object> holder = info.Holder(); | 430 v8::Handle<v8::Object> holder = info.Holder(); |
445 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 431 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObjectPython", holder, info.GetIsolate()); |
446 TestObject* impl = V8TestObject::toNative(holder); | 432 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
447 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(v8Value, exceptionState), e
xceptionState); | 433 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(v8Value, exceptionState), e
xceptionState); |
448 impl->setShortAttribute(cppValue); | 434 impl->setShortAttribute(cppValue); |
449 } | 435 } |
450 | 436 |
451 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 437 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
452 { | 438 { |
453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
454 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 440 TestObjectPythonV8Internal::shortAttributeAttributeSetter(v8Value, info); |
455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
456 } | 442 } |
457 | 443 |
458 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 444 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
459 { | 445 { |
460 v8::Handle<v8::Object> holder = info.Holder(); | 446 v8::Handle<v8::Object> holder = info.Holder(); |
461 TestObject* impl = V8TestObject::toNative(holder); | 447 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
462 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); | 448 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
463 } | 449 } |
464 | 450 |
465 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 451 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
466 { | 452 { |
467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
468 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); | 454 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info); |
469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
470 } | 456 } |
471 | 457 |
472 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 458 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
473 { | 459 { |
474 v8::Handle<v8::Object> holder = info.Holder(); | 460 v8::Handle<v8::Object> holder = info.Holder(); |
475 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); | 461 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObjectPython", holder, info.GetIsolate()); |
476 TestObject* impl = V8TestObject::toNative(holder); | 462 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
477 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); | 463 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); |
478 impl->setUnsignedLongAttribute(cppValue); | 464 impl->setUnsignedLongAttribute(cppValue); |
479 } | 465 } |
480 | 466 |
481 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 467 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
482 { | 468 { |
483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
484 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); | 470 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(v8Value, in
fo); |
485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
486 } | 472 } |
487 | 473 |
488 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 474 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
489 { | 475 { |
490 v8::Handle<v8::Object> holder = info.Holder(); | 476 v8::Handle<v8::Object> holder = info.Holder(); |
491 TestObject* impl = V8TestObject::toNative(holder); | 477 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
492 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); | 478 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); |
493 } | 479 } |
494 | 480 |
495 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 481 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
496 { | 482 { |
497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
498 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 484 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
500 } | 486 } |
501 | 487 |
502 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 488 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
503 { | 489 { |
504 v8::Handle<v8::Object> holder = info.Holder(); | 490 v8::Handle<v8::Object> holder = info.Holder(); |
505 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 491 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObjectPython", holder, info.GetIsolate()); |
506 TestObject* impl = V8TestObject::toNative(holder); | 492 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
507 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); | 493 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); |
508 impl->setUnsignedLongLongAttribute(cppValue); | 494 impl->setUnsignedLongLongAttribute(cppValue); |
509 } | 495 } |
510 | 496 |
511 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 497 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
512 { | 498 { |
513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 499 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
514 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); | 500 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value
, info); |
515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
516 } | 502 } |
517 | 503 |
518 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 504 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
519 { | 505 { |
520 v8::Handle<v8::Object> holder = info.Holder(); | 506 v8::Handle<v8::Object> holder = info.Holder(); |
521 TestObject* impl = V8TestObject::toNative(holder); | 507 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
522 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); | 508 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
523 } | 509 } |
524 | 510 |
525 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 511 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
526 { | 512 { |
527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
528 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); | 514 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info); |
529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
530 } | 516 } |
531 | 517 |
532 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 518 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
533 { | 519 { |
534 v8::Handle<v8::Object> holder = info.Holder(); | 520 v8::Handle<v8::Object> holder = info.Holder(); |
535 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); | 521 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObjectPython", holder, info.GetIsolate()); |
536 TestObject* impl = V8TestObject::toNative(holder); | 522 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
537 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); | 523 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); |
538 impl->setUnsignedShortAttribute(cppValue); | 524 impl->setUnsignedShortAttribute(cppValue); |
539 } | 525 } |
540 | 526 |
541 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 527 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
542 { | 528 { |
543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
544 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); | 530 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(v8Value, i
nfo); |
545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
546 } | 532 } |
547 | 533 |
548 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 534 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
549 { | 535 { |
550 v8::Handle<v8::Object> holder = info.Holder(); | 536 v8::Handle<v8::Object> holder = info.Holder(); |
551 TestObject* impl = V8TestObject::toNative(holder); | 537 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
552 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()),
impl); | 538 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()),
impl); |
553 } | 539 } |
554 | 540 |
555 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 541 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
556 { | 542 { |
557 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
558 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); | 544 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; |
559 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
560 } | 546 } |
561 | 547 |
562 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 548 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
563 { | 549 { |
564 v8::Handle<v8::Object> holder = info.Holder(); | 550 v8::Handle<v8::Object> holder = info.Holder(); |
565 TestObject* impl = V8TestObject::toNative(holder); | 551 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
566 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), v8Value)); | 552 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), v8Value)); |
567 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); | 553 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); |
568 } | 554 } |
569 | 555 |
570 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 556 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
571 { | 557 { |
572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
573 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in
fo); | 559 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Val
ue, info); |
574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 560 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
575 } | 561 } |
576 | 562 |
577 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 563 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
578 { | 564 { |
579 v8::Handle<v8::Object> holder = info.Holder(); | 565 v8::Handle<v8::Object> holder = info.Holder(); |
580 TestObject* impl = V8TestObject::toNative(holder); | 566 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
581 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); | 567 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectPythonAttribute()), i
mpl); |
582 } | 568 } |
583 | 569 |
584 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 570 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
585 { | 571 { |
586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
587 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); | 573 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info); |
588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
589 } | 575 } |
590 | 576 |
591 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 577 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
592 { | 578 { |
593 v8::Handle<v8::Object> holder = info.Holder(); | 579 v8::Handle<v8::Object> holder = info.Holder(); |
594 TestObject* impl = V8TestObject::toNative(holder); | 580 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
595 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i
nfo.GetIsolate(), v8Value)); | 581 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::toNativeWit
hTypeCheck(info.GetIsolate(), v8Value)); |
596 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); | 582 impl->setTestObjectPythonAttribute(WTF::getPtr(cppValue)); |
597 } | 583 } |
598 | 584 |
599 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 585 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
600 { | 586 { |
601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
602 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); | 588 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(v8Value
, info); |
603 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
604 } | 590 } |
605 | 591 |
606 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 592 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
607 { | 593 { |
608 v8::Handle<v8::Object> holder = info.Holder(); | 594 v8::Handle<v8::Object> holder = info.Holder(); |
609 TestObject* impl = V8TestObject::toNative(holder); | 595 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
610 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); | 596 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); |
611 } | 597 } |
612 | 598 |
613 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 599 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
614 { | 600 { |
615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
616 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); | 602 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeGetter(inf
o); |
617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 603 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
618 } | 604 } |
619 | 605 |
620 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 606 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
621 { | 607 { |
622 v8::Handle<v8::Object> holder = info.Holder(); | 608 v8::Handle<v8::Object> holder = info.Holder(); |
623 TestObject* impl = V8TestObject::toNative(holder); | 609 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
624 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); | 610 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); |
625 impl->setVoidCallbackFunctionAttribute(cppValue); | 611 impl->setVoidCallbackFunctionAttribute(cppValue); |
626 } | 612 } |
627 | 613 |
628 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 614 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
629 { | 615 { |
630 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
631 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value,
info); | 617 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8V
alue, info); |
632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
633 } | 619 } |
634 | 620 |
635 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 621 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
636 { | 622 { |
637 v8::Handle<v8::Object> holder = info.Holder(); | 623 v8::Handle<v8::Object> holder = info.Holder(); |
638 TestObject* impl = V8TestObject::toNative(holder); | 624 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
639 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8
Value()); | 625 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8
Value()); |
640 } | 626 } |
641 | 627 |
642 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 628 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
643 { | 629 { |
644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 630 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
645 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet
ter(info); | 631 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib
uteGetter(info); |
646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
647 } | 633 } |
648 | 634 |
649 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 635 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
650 { | 636 { |
651 v8::Handle<v8::Object> holder = info.Holder(); | 637 v8::Handle<v8::Object> holder = info.Holder(); |
652 TestObject* impl = V8TestObject::toNative(holder); | 638 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
653 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); | 639 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); |
654 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); | 640 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); |
655 } | 641 } |
656 | 642 |
657 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 643 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) |
658 { | 644 { |
659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
660 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet
ter(v8Value, info); | 646 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib
uteSetter(v8Value, info); |
661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
662 } | 648 } |
663 | 649 |
664 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 650 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
665 { | 651 { |
666 v8::Handle<v8::Object> holder = info.Holder(); | 652 v8::Handle<v8::Object> holder = info.Holder(); |
667 TestObject* impl = V8TestObject::toNative(holder); | 653 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
668 v8SetReturnValueInt(info, impl->cssAttribute()); | 654 v8SetReturnValueInt(info, impl->cssAttribute()); |
669 } | 655 } |
670 | 656 |
671 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 657 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
672 { | 658 { |
673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
674 TestObjectV8Internal::cssAttributeAttributeGetter(info); | 660 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info); |
675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
676 } | 662 } |
677 | 663 |
678 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 664 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
679 { | 665 { |
680 v8::Handle<v8::Object> holder = info.Holder(); | 666 v8::Handle<v8::Object> holder = info.Holder(); |
681 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); | 667 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObjectPython", holder, info.GetIsolate()); |
682 TestObject* impl = V8TestObject::toNative(holder); | 668 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
683 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 669 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
684 impl->setCSSAttribute(cppValue); | 670 impl->setCSSAttribute(cppValue); |
685 } | 671 } |
686 | 672 |
687 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 673 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
688 { | 674 { |
689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
690 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); | 676 TestObjectPythonV8Internal::cssAttributeAttributeSetter(v8Value, info); |
691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
692 } | 678 } |
693 | 679 |
694 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 680 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
695 { | 681 { |
696 v8::Handle<v8::Object> holder = info.Holder(); | 682 v8::Handle<v8::Object> holder = info.Holder(); |
697 TestObject* impl = V8TestObject::toNative(holder); | 683 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
698 v8SetReturnValueInt(info, impl->imeAttribute()); | 684 v8SetReturnValueInt(info, impl->imeAttribute()); |
699 } | 685 } |
700 | 686 |
701 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 687 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
702 { | 688 { |
703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
704 TestObjectV8Internal::imeAttributeAttributeGetter(info); | 690 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info); |
705 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
706 } | 692 } |
707 | 693 |
708 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 694 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
709 { | 695 { |
710 v8::Handle<v8::Object> holder = info.Holder(); | 696 v8::Handle<v8::Object> holder = info.Holder(); |
711 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); | 697 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObjectPython", holder, info.GetIsolate()); |
712 TestObject* impl = V8TestObject::toNative(holder); | 698 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
713 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 699 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
714 impl->setIMEAttribute(cppValue); | 700 impl->setIMEAttribute(cppValue); |
715 } | 701 } |
716 | 702 |
717 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 703 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
718 { | 704 { |
719 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
720 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); | 706 TestObjectPythonV8Internal::imeAttributeAttributeSetter(v8Value, info); |
721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
722 } | 708 } |
723 | 709 |
724 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 710 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
725 { | 711 { |
726 v8::Handle<v8::Object> holder = info.Holder(); | 712 v8::Handle<v8::Object> holder = info.Holder(); |
727 TestObject* impl = V8TestObject::toNative(holder); | 713 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
728 v8SetReturnValueInt(info, impl->svgAttribute()); | 714 v8SetReturnValueInt(info, impl->svgAttribute()); |
729 } | 715 } |
730 | 716 |
731 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 717 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
732 { | 718 { |
733 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 719 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
734 TestObjectV8Internal::svgAttributeAttributeGetter(info); | 720 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info); |
735 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
736 } | 722 } |
737 | 723 |
738 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 724 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
739 { | 725 { |
740 v8::Handle<v8::Object> holder = info.Holder(); | 726 v8::Handle<v8::Object> holder = info.Holder(); |
741 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); | 727 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObjectPython", holder, info.GetIsolate()); |
742 TestObject* impl = V8TestObject::toNative(holder); | 728 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
743 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 729 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
744 impl->setSVGAttribute(cppValue); | 730 impl->setSVGAttribute(cppValue); |
745 } | 731 } |
746 | 732 |
747 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 733 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
748 { | 734 { |
749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
750 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); | 736 TestObjectPythonV8Internal::svgAttributeAttributeSetter(v8Value, info); |
751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
752 } | 738 } |
753 | 739 |
754 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 740 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
755 { | 741 { |
756 v8::Handle<v8::Object> holder = info.Holder(); | 742 v8::Handle<v8::Object> holder = info.Holder(); |
757 TestObject* impl = V8TestObject::toNative(holder); | 743 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
758 v8SetReturnValueInt(info, impl->xmlAttribute()); | 744 v8SetReturnValueInt(info, impl->xmlAttribute()); |
759 } | 745 } |
760 | 746 |
761 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 747 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
762 { | 748 { |
763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
764 TestObjectV8Internal::xmlAttributeAttributeGetter(info); | 750 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info); |
765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
766 } | 752 } |
767 | 753 |
768 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 754 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
769 { | 755 { |
770 v8::Handle<v8::Object> holder = info.Holder(); | 756 v8::Handle<v8::Object> holder = info.Holder(); |
771 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); | 757 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObjectPython", holder, info.GetIsolate()); |
772 TestObject* impl = V8TestObject::toNative(holder); | 758 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
773 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 759 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
774 impl->setXMLAttribute(cppValue); | 760 impl->setXMLAttribute(cppValue); |
775 } | 761 } |
776 | 762 |
777 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 763 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
778 { | 764 { |
779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
780 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); | 766 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(v8Value, info); |
781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
782 } | 768 } |
783 | 769 |
784 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 770 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
785 { | 771 { |
786 v8::Handle<v8::Object> holder = info.Holder(); | 772 v8::Handle<v8::Object> holder = info.Holder(); |
787 TestObject* impl = V8TestObject::toNative(holder); | 773 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
788 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); | 774 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); |
789 } | 775 } |
790 | 776 |
791 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 777 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
792 { | 778 { |
793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
794 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); | 780 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); |
795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
796 } | 782 } |
797 | 783 |
798 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 784 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
799 { | 785 { |
800 v8::Handle<v8::Object> holder = info.Holder(); | 786 v8::Handle<v8::Object> holder = info.Holder(); |
801 TestObject* impl = V8TestObject::toNative(holder); | 787 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
802 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(v8Value, info.Get
Isolate())); | 788 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(v8Value, info.Get
Isolate())); |
803 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); | 789 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); |
804 } | 790 } |
805 | 791 |
806 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 792 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
807 { | 793 { |
808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
809 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); | 795 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info
); |
810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
811 } | 797 } |
812 | 798 |
813 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 799 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
814 { | 800 { |
815 v8::Handle<v8::Object> holder = info.Holder(); | 801 v8::Handle<v8::Object> holder = info.Holder(); |
816 TestObject* impl = V8TestObject::toNative(holder); | 802 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
817 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial
izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.
GetIsolate()))); | 803 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial
izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.
GetIsolate()))); |
818 } | 804 } |
819 | 805 |
820 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 806 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
821 { | 807 { |
822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
823 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); | 809 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in
fo); |
824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
825 } | 811 } |
826 | 812 |
827 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 813 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
828 { | 814 { |
829 v8::Handle<v8::Object> holder = info.Holder(); | 815 v8::Handle<v8::Object> holder = info.Holder(); |
830 TestObject* impl = V8TestObject::toNative(holder); | 816 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
831 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal
ue::create(v8Value, info.GetIsolate())); | 817 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal
ue::create(v8Value, info.GetIsolate())); |
832 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 818 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
833 } | 819 } |
834 | 820 |
835 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 821 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
836 { | 822 { |
837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
838 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); | 824 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(v8
Value, info); |
839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
840 } | 826 } |
841 | 827 |
842 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 828 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
843 { | 829 { |
844 v8::Handle<v8::Object> holder = info.Holder(); | 830 v8::Handle<v8::Object> holder = info.Holder(); |
845 TestObject* impl = V8TestObject::toNative(holder); | 831 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
846 v8SetReturnValue(info, impl->anyAttribute().v8Value()); | 832 v8SetReturnValue(info, impl->anyAttribute().v8Value()); |
847 } | 833 } |
848 | 834 |
849 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 835 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
850 { | 836 { |
851 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
852 TestObjectV8Internal::anyAttributeAttributeGetter(info); | 838 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info); |
853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
854 } | 840 } |
855 | 841 |
856 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 842 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
857 { | 843 { |
858 v8::Handle<v8::Object> holder = info.Holder(); | 844 v8::Handle<v8::Object> holder = info.Holder(); |
859 TestObject* impl = V8TestObject::toNative(holder); | 845 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
860 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); | 846 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); |
861 impl->setAnyAttribute(cppValue); | 847 impl->setAnyAttribute(cppValue); |
862 } | 848 } |
863 | 849 |
864 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 850 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
865 { | 851 { |
866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 852 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
867 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); | 853 TestObjectPythonV8Internal::anyAttributeAttributeSetter(v8Value, info); |
868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 854 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
869 } | 855 } |
870 | 856 |
871 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 857 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
872 { | 858 { |
873 v8::Handle<v8::Object> holder = info.Holder(); | 859 v8::Handle<v8::Object> holder = info.Holder(); |
874 TestObject* impl = V8TestObject::toNative(holder); | 860 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
875 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); | 861 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); |
876 } | 862 } |
877 | 863 |
878 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 864 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
879 { | 865 { |
880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
881 TestObjectV8Internal::promiseAttributeAttributeGetter(info); | 867 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); |
882 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
883 } | 869 } |
884 | 870 |
885 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 871 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
886 { | 872 { |
887 v8::Handle<v8::Object> holder = info.Holder(); | 873 v8::Handle<v8::Object> holder = info.Holder(); |
888 TestObject* impl = V8TestObject::toNative(holder); | 874 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
889 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(v8Value, info.GetIsol
ate())); | 875 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(v8Value, info.GetIsol
ate())); |
890 impl->setPromiseAttribute(cppValue); | 876 impl->setPromiseAttribute(cppValue); |
891 } | 877 } |
892 | 878 |
893 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 879 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
894 { | 880 { |
895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
896 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); | 882 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(v8Value, info); |
897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
898 } | 884 } |
899 | 885 |
900 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 886 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
901 { | 887 { |
902 v8::Handle<v8::Object> holder = info.Holder(); | 888 v8::Handle<v8::Object> holder = info.Holder(); |
903 TestObject* impl = V8TestObject::toNative(holder); | 889 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
904 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); | 890 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); |
905 } | 891 } |
906 | 892 |
907 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 893 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
908 { | 894 { |
909 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
910 TestObjectV8Internal::windowAttributeAttributeGetter(info); | 896 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info); |
911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
912 } | 898 } |
913 | 899 |
914 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 900 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
915 { | 901 { |
916 v8::Handle<v8::Object> holder = info.Holder(); | 902 v8::Handle<v8::Object> holder = info.Holder(); |
917 TestObject* impl = V8TestObject::toNative(holder); | 903 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
918 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(v8Value, info.GetIsolate()
)); | 904 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(v8Value, info.GetIsolate()
)); |
919 impl->setWindowAttribute(WTF::getPtr(cppValue)); | 905 impl->setWindowAttribute(WTF::getPtr(cppValue)); |
920 } | 906 } |
921 | 907 |
922 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 908 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
923 { | 909 { |
924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
925 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); | 911 TestObjectPythonV8Internal::windowAttributeAttributeSetter(v8Value, info); |
926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
927 } | 913 } |
928 | 914 |
929 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 915 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
930 { | 916 { |
931 v8::Handle<v8::Object> holder = info.Holder(); | 917 v8::Handle<v8::Object> holder = info.Holder(); |
932 TestObject* impl = V8TestObject::toNative(holder); | 918 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
933 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); | 919 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); |
934 } | 920 } |
935 | 921 |
936 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 922 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
937 { | 923 { |
938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
939 TestObjectV8Internal::documentAttributeAttributeGetter(info); | 925 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); |
940 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
941 } | 927 } |
942 | 928 |
943 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 929 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
944 { | 930 { |
945 v8::Handle<v8::Object> holder = info.Holder(); | 931 v8::Handle<v8::Object> holder = info.Holder(); |
946 TestObject* impl = V8TestObject::toNative(holder); | 932 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
947 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), v8Value)); | 933 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), v8Value)); |
948 impl->setDocumentAttribute(WTF::getPtr(cppValue)); | 934 impl->setDocumentAttribute(WTF::getPtr(cppValue)); |
949 } | 935 } |
950 | 936 |
951 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 937 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
952 { | 938 { |
953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
954 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); | 940 TestObjectPythonV8Internal::documentAttributeAttributeSetter(v8Value, info); |
955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
956 } | 942 } |
957 | 943 |
958 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 944 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
959 { | 945 { |
960 v8::Handle<v8::Object> holder = info.Holder(); | 946 v8::Handle<v8::Object> holder = info.Holder(); |
961 TestObject* impl = V8TestObject::toNative(holder); | 947 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
962 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i
mpl); | 948 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i
mpl); |
963 } | 949 } |
964 | 950 |
965 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 951 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
966 { | 952 { |
967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
968 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); | 954 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); |
969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
970 } | 956 } |
971 | 957 |
972 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 958 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
973 { | 959 { |
974 v8::Handle<v8::Object> holder = info.Holder(); | 960 v8::Handle<v8::Object> holder = info.Holder(); |
975 TestObject* impl = V8TestObject::toNative(holder); | 961 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
976 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit
hTypeCheck(info.GetIsolate(), v8Value)); | 962 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit
hTypeCheck(info.GetIsolate(), v8Value)); |
977 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); | 963 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); |
978 } | 964 } |
979 | 965 |
980 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 966 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
981 { | 967 { |
982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
983 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info
); | 969 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(v8Value
, info); |
984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
985 } | 971 } |
986 | 972 |
987 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 973 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
988 { | 974 { |
989 v8::Handle<v8::Object> holder = info.Holder(); | 975 v8::Handle<v8::Object> holder = info.Holder(); |
990 TestObject* impl = V8TestObject::toNative(holder); | 976 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
991 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl)
; | 977 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl)
; |
992 } | 978 } |
993 | 979 |
994 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 980 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
995 { | 981 { |
996 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
997 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); | 983 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); |
998 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
999 } | 985 } |
1000 | 986 |
1001 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 987 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1002 { | 988 { |
1003 v8::Handle<v8::Object> holder = info.Holder(); | 989 v8::Handle<v8::Object> holder = info.Holder(); |
1004 TestObject* impl = V8TestObject::toNative(holder); | 990 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1005 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe
ck(info.GetIsolate(), v8Value)); | 991 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe
ck(info.GetIsolate(), v8Value)); |
1006 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); | 992 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); |
1007 } | 993 } |
1008 | 994 |
1009 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 995 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1010 { | 996 { |
1011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 997 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1012 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); | 998 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(v8Value, in
fo); |
1013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 999 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1014 } | 1000 } |
1015 | 1001 |
1016 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 1002 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
1017 { | 1003 { |
1018 v8::Handle<v8::Object> holder = info.Holder(); | 1004 v8::Handle<v8::Object> holder = info.Holder(); |
1019 TestObject* impl = V8TestObject::toNative(holder); | 1005 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1020 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); | 1006 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); |
1021 } | 1007 } |
1022 | 1008 |
1023 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 1009 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
1024 { | 1010 { |
1025 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1026 TestObjectV8Internal::elementAttributeAttributeGetter(info); | 1012 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); |
1027 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1028 } | 1014 } |
1029 | 1015 |
1030 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1016 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
1031 { | 1017 { |
1032 v8::Handle<v8::Object> holder = info.Holder(); | 1018 v8::Handle<v8::Object> holder = info.Holder(); |
1033 TestObject* impl = V8TestObject::toNative(holder); | 1019 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1034 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), v8Value)); | 1020 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), v8Value)); |
1035 impl->setElementAttribute(WTF::getPtr(cppValue)); | 1021 impl->setElementAttribute(WTF::getPtr(cppValue)); |
1036 } | 1022 } |
1037 | 1023 |
1038 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1024 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1039 { | 1025 { |
1040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1041 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); | 1027 TestObjectPythonV8Internal::elementAttributeAttributeSetter(v8Value, info); |
1042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1043 } | 1029 } |
1044 | 1030 |
1045 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 1031 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
1046 { | 1032 { |
1047 v8::Handle<v8::Object> holder = info.Holder(); | 1033 v8::Handle<v8::Object> holder = info.Holder(); |
1048 TestObject* impl = V8TestObject::toNative(holder); | 1034 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1049 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); | 1035 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); |
1050 } | 1036 } |
1051 | 1037 |
1052 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 1038 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
1053 { | 1039 { |
1054 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1055 TestObjectV8Internal::nodeAttributeAttributeGetter(info); | 1041 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); |
1056 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1057 } | 1043 } |
1058 | 1044 |
1059 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 1045 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
1060 { | 1046 { |
1061 v8::Handle<v8::Object> holder = info.Holder(); | 1047 v8::Handle<v8::Object> holder = info.Holder(); |
1062 TestObject* impl = V8TestObject::toNative(holder); | 1048 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1063 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 1049 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
1064 impl->setNodeAttribute(WTF::getPtr(cppValue)); | 1050 impl->setNodeAttribute(WTF::getPtr(cppValue)); |
1065 } | 1051 } |
1066 | 1052 |
1067 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1053 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1068 { | 1054 { |
1069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1055 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1070 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); | 1056 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(v8Value, info); |
1071 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1057 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1072 } | 1058 } |
1073 | 1059 |
1074 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1060 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1075 { | 1061 { |
1076 v8::Handle<v8::Object> holder = info.Holder(); | 1062 v8::Handle<v8::Object> holder = info.Holder(); |
1077 TestObject* impl = V8TestObject::toNative(holder); | 1063 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1078 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); | 1064 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); |
1079 } | 1065 } |
1080 | 1066 |
1081 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1067 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1082 { | 1068 { |
1083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1084 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); | 1070 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); |
1085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1071 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1086 } | 1072 } |
1087 | 1073 |
1088 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1074 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1089 { | 1075 { |
1090 v8::Handle<v8::Object> holder = info.Holder(); | 1076 v8::Handle<v8::Object> holder = info.Holder(); |
1091 TestObject* impl = V8TestObject::toNative(holder); | 1077 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1092 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i
nfo.GetIsolate(), v8Value)); | 1078 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i
nfo.GetIsolate(), v8Value)); |
1093 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); | 1079 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); |
1094 } | 1080 } |
1095 | 1081 |
1096 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1082 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1097 { | 1083 { |
1098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1099 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); | 1085 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(v8Value, info
); |
1100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1101 } | 1087 } |
1102 | 1088 |
1103 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1089 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
1104 { | 1090 { |
1105 v8::Handle<v8::Object> holder = info.Holder(); | 1091 v8::Handle<v8::Object> holder = info.Holder(); |
1106 TestObject* impl = V8TestObject::toNative(holder); | 1092 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1107 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); | 1093 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); |
1108 } | 1094 } |
1109 | 1095 |
1110 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1096 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
1111 { | 1097 { |
1112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1113 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); | 1099 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); |
1114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1115 } | 1101 } |
1116 | 1102 |
1117 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 1103 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
1118 { | 1104 { |
1119 v8::Handle<v8::Object> holder = info.Holder(); | 1105 v8::Handle<v8::Object> holder = info.Holder(); |
1120 TestObject* impl = V8TestObject::toNative(holder); | 1106 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1121 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, v8Value->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0); | 1107 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, v8Value->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0); |
1122 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); | 1108 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); |
1123 } | 1109 } |
1124 | 1110 |
1125 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1111 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1126 { | 1112 { |
1127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1128 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); | 1114 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(v8Value, inf
o); |
1129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1130 } | 1116 } |
1131 | 1117 |
1132 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1118 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1133 { | 1119 { |
1134 v8::Handle<v8::Object> holder = info.Holder(); | 1120 v8::Handle<v8::Object> holder = info.Holder(); |
1135 TestObject* impl = V8TestObject::toNative(holder); | 1121 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1136 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl)
; | 1122 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl)
; |
1137 } | 1123 } |
1138 | 1124 |
1139 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1125 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1140 { | 1126 { |
1141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1142 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); | 1128 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); |
1143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1144 } | 1130 } |
1145 | 1131 |
1146 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1132 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1147 { | 1133 { |
1148 v8::Handle<v8::Object> holder = info.Holder(); | 1134 v8::Handle<v8::Object> holder = info.Holder(); |
1149 TestObject* impl = V8TestObject::toNative(holder); | 1135 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1150 V8TRYCATCH_VOID(Float32Array*, cppValue, v8Value->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0); | 1136 V8TRYCATCH_VOID(Float32Array*, cppValue, v8Value->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0); |
1151 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); | 1137 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); |
1152 } | 1138 } |
1153 | 1139 |
1154 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1140 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1155 { | 1141 { |
1156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1157 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); | 1143 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(v8Value, in
fo); |
1158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1159 } | 1145 } |
1160 | 1146 |
1161 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1147 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1162 { | 1148 { |
1163 v8::Handle<v8::Object> holder = info.Holder(); | 1149 v8::Handle<v8::Object> holder = info.Holder(); |
1164 TestObject* impl = V8TestObject::toNative(holder); | 1150 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1165 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); | 1151 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); |
1166 } | 1152 } |
1167 | 1153 |
1168 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1154 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1169 { | 1155 { |
1170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1171 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); | 1157 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); |
1172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1173 } | 1159 } |
1174 | 1160 |
1175 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1161 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1176 { | 1162 { |
1177 v8::Handle<v8::Object> holder = info.Holder(); | 1163 v8::Handle<v8::Object> holder = info.Holder(); |
1178 TestObject* impl = V8TestObject::toNative(holder); | 1164 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1179 V8TRYCATCH_VOID(Uint8Array*, cppValue, v8Value->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(v8Value)) : 0); | 1165 V8TRYCATCH_VOID(Uint8Array*, cppValue, v8Value->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(v8Value)) : 0); |
1180 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); | 1166 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); |
1181 } | 1167 } |
1182 | 1168 |
1183 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1169 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1184 { | 1170 { |
1185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1186 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); | 1172 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info
); |
1187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1188 } | 1174 } |
1189 | 1175 |
1190 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1176 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
1191 { | 1177 { |
1192 v8::Handle<v8::Object> holder = info.Holder(); | 1178 v8::Handle<v8::Object> holder = info.Holder(); |
1193 TestObject* impl = V8TestObject::toNative(holder); | 1179 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1194 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); | 1180 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); |
1195 } | 1181 } |
1196 | 1182 |
1197 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 1183 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
1198 { | 1184 { |
1199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1200 TestObjectV8Internal::selfAttributeGetter(info); | 1186 TestObjectPythonV8Internal::selfAttributeGetter(info); |
1201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1202 } | 1188 } |
1203 | 1189 |
1204 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1190 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
1205 { | 1191 { |
1206 v8::Handle<v8::Object> holder = info.Holder(); | 1192 v8::Handle<v8::Object> holder = info.Holder(); |
1207 TestObject* impl = V8TestObject::toNative(holder); | 1193 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1208 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute())
, impl); | 1194 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute())
, impl); |
1209 } | 1195 } |
1210 | 1196 |
1211 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1197 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1212 { | 1198 { |
1213 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1214 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); | 1200 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info
); |
1215 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1216 } | 1202 } |
1217 | 1203 |
1218 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 1204 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
1219 { | 1205 { |
1220 v8::Handle<v8::Object> holder = info.Holder(); | 1206 v8::Handle<v8::Object> holder = info.Holder(); |
1221 TestObject* impl = V8TestObject::toNative(holder); | 1207 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1222 bool isNull = false; | 1208 bool isNull = false; |
1223 RefPtr<EventTarget> v8Value = impl->readonlyEventTargetOrNullAttribute(isNul
l); | 1209 RefPtr<EventTarget> v8Value = impl->readonlyEventTargetOrNullAttribute(isNul
l); |
1224 if (isNull) { | 1210 if (isNull) { |
1225 v8SetReturnValueNull(info); | 1211 v8SetReturnValueNull(info); |
1226 return; | 1212 return; |
1227 } | 1213 } |
1228 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); | 1214 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); |
1229 } | 1215 } |
1230 | 1216 |
1231 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1217 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1232 { | 1218 { |
1233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1234 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info
); | 1220 TestObjectPythonV8Internal::readonlyEventTargetOrNullAttributeAttributeGette
r(info); |
1235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1236 } | 1222 } |
1237 | 1223 |
1238 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1224 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
1239 { | 1225 { |
1240 v8::Handle<v8::Object> holder = info.Holder(); | 1226 v8::Handle<v8::Object> holder = info.Holder(); |
1241 TestObject* impl = V8TestObject::toNative(holder); | 1227 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1242 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp
l); | 1228 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp
l); |
1243 } | 1229 } |
1244 | 1230 |
1245 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1231 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
1246 { | 1232 { |
1247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1248 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); | 1234 TestObjectPythonV8Internal::readonlyWindowAttributeAttributeGetter(info); |
1249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1250 } | 1236 } |
1251 | 1237 |
1252 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1238 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
1253 { | 1239 { |
1254 v8::Handle<v8::Object> holder = info.Holder(); | 1240 v8::Handle<v8::Object> holder = info.Holder(); |
1255 TestObject* impl = V8TestObject::toNative(holder); | 1241 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1256 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp
l); | 1242 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp
l); |
1257 } | 1243 } |
1258 | 1244 |
1259 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1245 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
1260 { | 1246 { |
1261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1262 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); | 1248 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); |
1263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1264 } | 1250 } |
1265 | 1251 |
1266 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1252 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
1267 { | 1253 { |
1268 v8::Handle<v8::Object> holder = info.Holder(); | 1254 v8::Handle<v8::Object> holder = info.Holder(); |
1269 TestObject* impl = V8TestObject::toNative(holder); | 1255 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1270 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); | 1256 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); |
1271 } | 1257 } |
1272 | 1258 |
1273 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1259 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
1274 { | 1260 { |
1275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1276 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); | 1262 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); |
1277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1278 } | 1264 } |
1279 | 1265 |
1280 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1266 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
1281 { | 1267 { |
1282 v8::Handle<v8::Object> holder = info.Holder(); | 1268 v8::Handle<v8::Object> holder = info.Holder(); |
1283 TestObject* impl = V8TestObject::toNative(holder); | 1269 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1284 v8SetReturnValue(info, v8Array(impl->stringArrayAttribute(), info.GetIsolate
())); | 1270 v8SetReturnValue(info, v8Array(impl->stringArrayAttribute(), info.GetIsolate
())); |
1285 } | 1271 } |
1286 | 1272 |
1287 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1273 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
1288 { | 1274 { |
1289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1290 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); | 1276 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info); |
1291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1292 } | 1278 } |
1293 | 1279 |
1294 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 1280 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
1295 { | 1281 { |
1296 v8::Handle<v8::Object> holder = info.Holder(); | 1282 v8::Handle<v8::Object> holder = info.Holder(); |
1297 TestObject* impl = V8TestObject::toNative(holder); | 1283 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1298 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(v8Value, 0,
info.GetIsolate())); | 1284 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(v8Value, 0,
info.GetIsolate())); |
1299 impl->setStringArrayAttribute(cppValue); | 1285 impl->setStringArrayAttribute(cppValue); |
1300 } | 1286 } |
1301 | 1287 |
1302 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1288 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1303 { | 1289 { |
1304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1305 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); | 1291 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(v8Value, inf
o); |
1306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1307 } | 1293 } |
1308 | 1294 |
1309 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 1295 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
1310 { | 1296 { |
1311 v8::Handle<v8::Object> holder = info.Holder(); | 1297 v8::Handle<v8::Object> holder = info.Holder(); |
1312 TestObject* impl = V8TestObject::toNative(holder); | 1298 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1313 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf
o.GetIsolate())); | 1299 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf
o.GetIsolate())); |
1314 } | 1300 } |
1315 | 1301 |
1316 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1302 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1317 { | 1303 { |
1318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1319 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); | 1305 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(
info); |
1320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1321 } | 1307 } |
1322 | 1308 |
1323 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1309 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
1324 { | 1310 { |
1325 v8::Handle<v8::Object> holder = info.Holder(); | 1311 v8::Handle<v8::Object> holder = info.Holder(); |
1326 TestObject* impl = V8TestObject::toNative(holder); | 1312 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1327 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati
veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate())
)); | 1313 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati
veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate())
)); |
1328 impl->setTestInterfaceEmptyArrayAttribute(cppValue); | 1314 impl->setTestInterfaceEmptyArrayAttribute(cppValue); |
1329 } | 1315 } |
1330 | 1316 |
1331 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 1317 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
1332 { | 1318 { |
1333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1334 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); | 1320 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(
v8Value, info); |
1335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1336 } | 1322 } |
1337 | 1323 |
1338 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1324 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1339 { | 1325 { |
1340 v8::Handle<v8::Object> holder = info.Holder(); | 1326 v8::Handle<v8::Object> holder = info.Holder(); |
1341 TestObject* impl = V8TestObject::toNative(holder); | 1327 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1342 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate(
))); | 1328 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate(
))); |
1343 } | 1329 } |
1344 | 1330 |
1345 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1331 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1346 { | 1332 { |
1347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1348 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); | 1334 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); |
1349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1350 } | 1336 } |
1351 | 1337 |
1352 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1338 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1353 { | 1339 { |
1354 v8::Handle<v8::Object> holder = info.Holder(); | 1340 v8::Handle<v8::Object> holder = info.Holder(); |
1355 TestObject* impl = V8TestObject::toNative(holder); | 1341 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1356 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(v8Value, 0, in
fo.GetIsolate())); | 1342 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(v8Value, 0, in
fo.GetIsolate())); |
1357 impl->setFloatArrayAttribute(cppValue); | 1343 impl->setFloatArrayAttribute(cppValue); |
1358 } | 1344 } |
1359 | 1345 |
1360 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1346 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1361 { | 1347 { |
1362 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1363 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); | 1349 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(v8Value, info
); |
1364 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1365 } | 1351 } |
1366 | 1352 |
1367 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1353 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1368 { | 1354 { |
1369 v8::Handle<v8::Object> holder = info.Holder(); | 1355 v8::Handle<v8::Object> holder = info.Holder(); |
1370 TestObject* impl = V8TestObject::toNative(holder); | 1356 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1371 bool isNull = false; | 1357 bool isNull = false; |
1372 String v8Value = impl->stringOrNullAttribute(isNull); | 1358 String v8Value = impl->stringOrNullAttribute(isNull); |
1373 if (isNull) { | 1359 if (isNull) { |
1374 v8SetReturnValueNull(info); | 1360 v8SetReturnValueNull(info); |
1375 return; | 1361 return; |
1376 } | 1362 } |
1377 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 1363 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
1378 } | 1364 } |
1379 | 1365 |
1380 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1366 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1381 { | 1367 { |
1382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1383 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); | 1369 TestObjectPythonV8Internal::stringOrNullAttributeAttributeGetter(info); |
1384 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1385 } | 1371 } |
1386 | 1372 |
1387 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1373 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1388 { | 1374 { |
1389 v8::Handle<v8::Object> holder = info.Holder(); | 1375 v8::Handle<v8::Object> holder = info.Holder(); |
1390 TestObject* impl = V8TestObject::toNative(holder); | 1376 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1391 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 1377 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
1392 impl->setStringOrNullAttribute(cppValue); | 1378 impl->setStringOrNullAttribute(cppValue); |
1393 } | 1379 } |
1394 | 1380 |
1395 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1381 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1396 { | 1382 { |
1397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1398 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); | 1384 TestObjectPythonV8Internal::stringOrNullAttributeAttributeSetter(v8Value, in
fo); |
1399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1400 } | 1386 } |
1401 | 1387 |
1402 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1388 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1403 { | 1389 { |
1404 v8::Handle<v8::Object> holder = info.Holder(); | 1390 v8::Handle<v8::Object> holder = info.Holder(); |
1405 TestObject* impl = V8TestObject::toNative(holder); | 1391 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1406 bool isNull = false; | 1392 bool isNull = false; |
1407 int v8Value = impl->longOrNullAttribute(isNull); | 1393 int v8Value = impl->longOrNullAttribute(isNull); |
1408 if (isNull) { | 1394 if (isNull) { |
1409 v8SetReturnValueNull(info); | 1395 v8SetReturnValueNull(info); |
1410 return; | 1396 return; |
1411 } | 1397 } |
1412 v8SetReturnValueInt(info, v8Value); | 1398 v8SetReturnValueInt(info, v8Value); |
1413 } | 1399 } |
1414 | 1400 |
1415 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1401 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1416 { | 1402 { |
1417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1418 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); | 1404 TestObjectPythonV8Internal::longOrNullAttributeAttributeGetter(info); |
1419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1420 } | 1406 } |
1421 | 1407 |
1422 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1408 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1423 { | 1409 { |
1424 v8::Handle<v8::Object> holder = info.Holder(); | 1410 v8::Handle<v8::Object> holder = info.Holder(); |
1425 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1411 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObjectPython", holder, info.GetIsolate()); |
1426 TestObject* impl = V8TestObject::toNative(holder); | 1412 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1427 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1413 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1428 impl->setLongOrNullAttribute(cppValue); | 1414 impl->setLongOrNullAttribute(cppValue); |
1429 } | 1415 } |
1430 | 1416 |
1431 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1417 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1432 { | 1418 { |
1433 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1434 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); | 1420 TestObjectPythonV8Internal::longOrNullAttributeAttributeSetter(v8Value, info
); |
1435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1436 } | 1422 } |
1437 | 1423 |
1438 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1424 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
1439 { | 1425 { |
1440 v8::Handle<v8::Object> holder = info.Holder(); | 1426 v8::Handle<v8::Object> holder = info.Holder(); |
1441 TestObject* impl = V8TestObject::toNative(holder); | 1427 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1442 bool isNull = false; | 1428 bool isNull = false; |
1443 RefPtr<TestInterfaceImplementation> v8Value = impl->testInterfaceOrNullAttri
bute(isNull); | 1429 RefPtr<TestInterface> v8Value = impl->testInterfaceOrNullAttribute(isNull); |
1444 if (isNull) { | 1430 if (isNull) { |
1445 v8SetReturnValueNull(info); | 1431 v8SetReturnValueNull(info); |
1446 return; | 1432 return; |
1447 } | 1433 } |
1448 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); | 1434 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); |
1449 } | 1435 } |
1450 | 1436 |
1451 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1437 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1452 { | 1438 { |
1453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1454 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); | 1440 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeGetter(info
); |
1455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1456 } | 1442 } |
1457 | 1443 |
1458 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 1444 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
1459 { | 1445 { |
1460 v8::Handle<v8::Object> holder = info.Holder(); | 1446 v8::Handle<v8::Object> holder = info.Holder(); |
1461 TestObject* impl = V8TestObject::toNative(holder); | 1447 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1462 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 1448 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), v8Value)); |
1463 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); | 1449 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); |
1464 } | 1450 } |
1465 | 1451 |
1466 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1452 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1467 { | 1453 { |
1468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1469 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i
nfo); | 1455 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Va
lue, info); |
1470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1471 } | 1457 } |
1472 | 1458 |
1473 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 1459 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
1474 { | 1460 { |
1475 v8::Handle<v8::Object> holder = info.Holder(); | 1461 v8::Handle<v8::Object> holder = info.Holder(); |
1476 TestObject* impl = V8TestObject::toNative(holder); | 1462 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1477 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); | 1463 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); |
1478 } | 1464 } |
1479 | 1465 |
1480 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1466 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
1481 { | 1467 { |
1482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1483 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); | 1469 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); |
1484 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1485 } | 1471 } |
1486 | 1472 |
1487 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1473 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
1488 { | 1474 { |
1489 v8::Handle<v8::Object> holder = info.Holder(); | 1475 v8::Handle<v8::Object> holder = info.Holder(); |
1490 TestObject* impl = V8TestObject::toNative(holder); | 1476 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1491 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 1477 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
1492 String string = cppValue; | 1478 String string = cppValue; |
1493 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1479 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
1494 return; | 1480 return; |
1495 impl->setTestEnumAttribute(cppValue); | 1481 impl->setTestEnumAttribute(cppValue); |
1496 } | 1482 } |
1497 | 1483 |
1498 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1484 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1499 { | 1485 { |
1500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1501 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); | 1487 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(v8Value, info); |
1502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1503 } | 1489 } |
1504 | 1490 |
1505 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1491 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1506 { | 1492 { |
1507 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); | 1493 v8SetReturnValueString(info, TestObjectPython::staticStringAttribute(), info
.GetIsolate()); |
1508 } | 1494 } |
1509 | 1495 |
1510 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1496 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1511 { | 1497 { |
1512 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1513 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); | 1499 TestObjectPythonV8Internal::staticStringAttributeAttributeGetter(info); |
1514 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1515 } | 1501 } |
1516 | 1502 |
1517 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1503 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1518 { | 1504 { |
1519 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 1505 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
1520 TestObject::setStaticStringAttribute(cppValue); | 1506 TestObjectPython::setStaticStringAttribute(cppValue); |
1521 } | 1507 } |
1522 | 1508 |
1523 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1509 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1524 { | 1510 { |
1525 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1526 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); | 1512 TestObjectPythonV8Internal::staticStringAttributeAttributeSetter(v8Value, in
fo); |
1527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1528 } | 1514 } |
1529 | 1515 |
1530 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1516 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1531 { | 1517 { |
1532 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); | 1518 v8SetReturnValueInt(info, TestObjectPython::staticLongAttribute()); |
1533 } | 1519 } |
1534 | 1520 |
1535 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1521 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1536 { | 1522 { |
1537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1538 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); | 1524 TestObjectPythonV8Internal::staticLongAttributeAttributeGetter(info); |
1539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1540 } | 1526 } |
1541 | 1527 |
1542 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1528 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1543 { | 1529 { |
1544 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1530 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObjectPython", holder, info.GetIsolate()); |
1545 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1531 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1546 TestObject::setStaticLongAttribute(cppValue); | 1532 TestObjectPython::setStaticLongAttribute(cppValue); |
1547 } | 1533 } |
1548 | 1534 |
1549 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1535 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1550 { | 1536 { |
1551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1552 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); | 1538 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(v8Value, info
); |
1553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1554 } | 1540 } |
1555 | 1541 |
1556 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1542 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1557 { | 1543 { |
1558 v8::Handle<v8::Object> holder = info.Holder(); | 1544 v8::Handle<v8::Object> holder = info.Holder(); |
1559 TestObject* impl = V8TestObject::toNative(holder); | 1545 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1560 EventListener* v8Value = impl->eventHandlerAttribute(); | 1546 EventListener* v8Value = impl->eventHandlerAttribute(); |
1561 v8SetReturnValue(info, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); | 1547 v8SetReturnValue(info, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); |
1562 } | 1548 } |
1563 | 1549 |
1564 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1550 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1565 { | 1551 { |
1566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1567 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); | 1553 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info); |
1568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1569 } | 1555 } |
1570 | 1556 |
1571 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1557 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1572 { | 1558 { |
1573 v8::Handle<v8::Object> holder = info.Holder(); | 1559 v8::Handle<v8::Object> holder = info.Holder(); |
1574 TestObject* impl = V8TestObject::toNative(holder); | 1560 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1575 moveEventListenerToNewWrapper(holder, impl->eventHandlerAttribute(), v8Value
, V8TestObject::eventListenerCacheIndex, info.GetIsolate()); | 1561 moveEventListenerToNewWrapper(holder, impl->eventHandlerAttribute(), v8Value
, V8TestObjectPython::eventListenerCacheIndex, info.GetIsolate()); |
1576 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(v8Value
, true, ListenerFindOrCreate)); | 1562 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(v8Value
, true, ListenerFindOrCreate)); |
1577 } | 1563 } |
1578 | 1564 |
1579 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1565 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1580 { | 1566 { |
1581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1582 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); | 1568 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(v8Value, in
fo); |
1583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1584 } | 1570 } |
1585 | 1571 |
1586 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1572 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1587 { | 1573 { |
1588 v8::Handle<v8::Object> holder = info.Holder(); | 1574 v8::Handle<v8::Object> holder = info.Holder(); |
1589 TestObject* impl = V8TestObject::toNative(holder); | 1575 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1590 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); | 1576 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); |
1591 } | 1577 } |
1592 | 1578 |
1593 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1579 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1594 { | 1580 { |
1595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1596 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1582 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1597 if (contextData && contextData->activityLogger()) | 1583 if (contextData && contextData->activityLogger()) |
1598 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 0, 0, "Getter"); | 1584 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 0, 0, "Getter"); |
1599 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 1585 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeGetter(info); |
1600 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1601 } | 1587 } |
1602 | 1588 |
1603 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1589 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1604 { | 1590 { |
1605 v8::Handle<v8::Object> holder = info.Holder(); | 1591 v8::Handle<v8::Object> holder = info.Holder(); |
1606 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1592 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate()
); |
1607 TestObject* impl = V8TestObject::toNative(holder); | 1593 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1608 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1594 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1609 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1595 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1610 } | 1596 } |
1611 | 1597 |
1612 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1598 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1613 { | 1599 { |
1614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1600 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1615 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1601 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1616 if (contextData && contextData->activityLogger()) { | 1602 if (contextData && contextData->activityLogger()) { |
1617 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 1603 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
1618 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1604 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); |
1619 } | 1605 } |
1620 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1606 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeSetter(v8Value, info); |
1621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1622 } | 1608 } |
1623 | 1609 |
1624 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1610 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1625 { | 1611 { |
1626 v8::Handle<v8::Object> holder = info.Holder(); | 1612 v8::Handle<v8::Object> holder = info.Holder(); |
1627 TestObject* impl = V8TestObject::toNative(holder); | 1613 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1628 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); | 1614 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); |
1629 } | 1615 } |
1630 | 1616 |
1631 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1617 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1632 { | 1618 { |
1633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1634 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1620 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1635 if (contextData && contextData->activityLogger()) | 1621 if (contextData && contextData->activityLogger()) |
1636 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA
llWorldsLongAttribute", 0, 0, "Getter"); | 1622 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForAllWorldsLongAttribute", 0, 0, "Getter"); |
1637 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 1623 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeGetter(info); |
1638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1639 } | 1625 } |
1640 | 1626 |
1641 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1627 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1642 { | 1628 { |
1643 v8::Handle<v8::Object> holder = info.Holder(); | 1629 v8::Handle<v8::Object> holder = info.Holder(); |
1644 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1630 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate()
); |
1645 TestObject* impl = V8TestObject::toNative(holder); | 1631 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1646 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1632 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1647 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 1633 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
1648 } | 1634 } |
1649 | 1635 |
1650 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1636 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1651 { | 1637 { |
1652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1653 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1639 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeSetter(v8Value, info); |
1654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1655 } | 1641 } |
1656 | 1642 |
1657 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1643 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1658 { | 1644 { |
1659 v8::Handle<v8::Object> holder = info.Holder(); | 1645 v8::Handle<v8::Object> holder = info.Holder(); |
1660 TestObject* impl = V8TestObject::toNative(holder); | 1646 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1661 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); | 1647 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
1662 } | 1648 } |
1663 | 1649 |
1664 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1650 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1665 { | 1651 { |
1666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1667 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); | 1653 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeGetter(info); |
1668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1669 } | 1655 } |
1670 | 1656 |
1671 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1657 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1672 { | 1658 { |
1673 v8::Handle<v8::Object> holder = info.Holder(); | 1659 v8::Handle<v8::Object> holder = info.Holder(); |
1674 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1660 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate()
); |
1675 TestObject* impl = V8TestObject::toNative(holder); | 1661 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1676 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1662 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1677 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1663 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
1678 } | 1664 } |
1679 | 1665 |
1680 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1666 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1681 { | 1667 { |
1682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1683 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1669 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1684 if (contextData && contextData->activityLogger()) { | 1670 if (contextData && contextData->activityLogger()) { |
1685 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 1671 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
1686 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1672 contextData->activityLogger()->log("TestObjectPython.activityLoggingSett
erForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); |
1687 } | 1673 } |
1688 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1674 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeSetter(v8Value, info); |
1689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1690 } | 1676 } |
1691 | 1677 |
1692 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1678 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
1693 { | 1679 { |
1694 v8::Handle<v8::Object> holder = info.Holder(); | 1680 v8::Handle<v8::Object> holder = info.Holder(); |
1695 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); | 1681 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); |
1696 TestObject* impl = V8TestObject::toNative(holder); | 1682 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1697 if (!impl->isValueDirty()) { | 1683 if (!impl->isValueDirty()) { |
1698 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs
olate(), holder, propertyName); | 1684 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs
olate(), holder, propertyName); |
1699 if (!v8Value.IsEmpty()) { | 1685 if (!v8Value.IsEmpty()) { |
1700 v8SetReturnValue(info, v8Value); | 1686 v8SetReturnValue(info, v8Value); |
1701 return; | 1687 return; |
1702 } | 1688 } |
1703 } | 1689 } |
1704 ScriptValue v8Value = impl->cachedAttributeAnyAttribute(); | 1690 ScriptValue v8Value = impl->cachedAttributeAnyAttribute(); |
1705 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue.v8Value()); | 1691 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue.v8Value()); |
1706 v8SetReturnValue(info, v8Value.v8Value()); | 1692 v8SetReturnValue(info, v8Value.v8Value()); |
1707 } | 1693 } |
1708 | 1694 |
1709 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1695 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1710 { | 1696 { |
1711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1712 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); | 1698 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info)
; |
1713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1714 } | 1700 } |
1715 | 1701 |
1716 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1702 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
1717 { | 1703 { |
1718 v8::Handle<v8::Object> holder = info.Holder(); | 1704 v8::Handle<v8::Object> holder = info.Holder(); |
1719 TestObject* impl = V8TestObject::toNative(holder); | 1705 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1720 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); | 1706 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); |
1721 impl->setCachedAttributeAnyAttribute(cppValue); | 1707 impl->setCachedAttributeAnyAttribute(cppValue); |
1722 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu
e. | 1708 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu
e. |
1723 } | 1709 } |
1724 | 1710 |
1725 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1711 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1726 { | 1712 { |
1727 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1728 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in
fo); | 1714 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Val
ue, info); |
1729 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1730 } | 1716 } |
1731 | 1717 |
1732 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 1718 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
1733 { | 1719 { |
1734 v8::Handle<v8::Object> holder = info.Holder(); | 1720 v8::Handle<v8::Object> holder = info.Holder(); |
1735 TestObject* impl = V8TestObject::toNative(holder); | 1721 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1736 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 1722 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
1737 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(scriptCont
ext).v8Value()); | 1723 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(scriptCont
ext).v8Value()); |
1738 } | 1724 } |
1739 | 1725 |
1740 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1726 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1741 { | 1727 { |
1742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1743 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in
fo); | 1729 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet
ter(info); |
1744 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1745 } | 1731 } |
1746 | 1732 |
1747 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1733 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1748 { | 1734 { |
1749 v8::Handle<v8::Object> holder = info.Holder(); | 1735 v8::Handle<v8::Object> holder = info.Holder(); |
1750 TestObject* impl = V8TestObject::toNative(holder); | 1736 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1751 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); | 1737 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); |
1752 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 1738 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
1753 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); | 1739 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); |
1754 } | 1740 } |
1755 | 1741 |
1756 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 1742 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
1757 { | 1743 { |
1758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1759 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8
Value, info); | 1745 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet
ter(v8Value, info); |
1760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1761 } | 1747 } |
1762 | 1748 |
1763 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 1749 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
1764 { | 1750 { |
1765 v8::Handle<v8::Object> holder = info.Holder(); | 1751 v8::Handle<v8::Object> holder = info.Holder(); |
1766 TestObject* impl = V8TestObject::toNative(holder); | 1752 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1767 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); | 1753 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObjectPython", holder, info.GetIsolate())
; |
1768 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { | 1754 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
1769 v8SetReturnValueNull(info); | 1755 v8SetReturnValueNull(info); |
1770 exceptionState.throwIfNeeded(); | 1756 exceptionState.throwIfNeeded(); |
1771 return; | 1757 return; |
1772 } | 1758 } |
1773 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc
umentAttribute()), impl); | 1759 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc
umentAttribute()), impl); |
1774 } | 1760 } |
1775 | 1761 |
1776 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1762 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1777 { | 1763 { |
1778 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1779 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute
Getter(info); | 1765 TestObjectPythonV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAtt
ributeGetter(info); |
1780 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1781 } | 1767 } |
1782 | 1768 |
1783 #if ENABLE(CONDITION) | 1769 #if ENABLE(CONDITION) |
1784 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 1770 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) |
1785 { | 1771 { |
1786 v8::Handle<v8::Object> holder = info.Holder(); | 1772 v8::Handle<v8::Object> holder = info.Holder(); |
1787 TestObject* impl = V8TestObject::toNative(holder); | 1773 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1788 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); | 1774 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); |
1789 } | 1775 } |
1790 #endif // ENABLE(CONDITION) | 1776 #endif // ENABLE(CONDITION) |
1791 | 1777 |
1792 #if ENABLE(CONDITION) | 1778 #if ENABLE(CONDITION) |
1793 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1779 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1794 { | 1780 { |
1795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1796 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); | 1782 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info); |
1797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1798 } | 1784 } |
1799 #endif // ENABLE(CONDITION) | 1785 #endif // ENABLE(CONDITION) |
1800 | 1786 |
1801 #if ENABLE(CONDITION) | 1787 #if ENABLE(CONDITION) |
1802 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 1788 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
1803 { | 1789 { |
1804 v8::Handle<v8::Object> holder = info.Holder(); | 1790 v8::Handle<v8::Object> holder = info.Holder(); |
1805 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 1791 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObjectPython", holder, info.GetIsolate()); |
1806 TestObject* impl = V8TestObject::toNative(holder); | 1792 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1807 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1793 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1808 impl->setConditionalLongAttribute(cppValue); | 1794 impl->setConditionalLongAttribute(cppValue); |
1809 } | 1795 } |
1810 #endif // ENABLE(CONDITION) | 1796 #endif // ENABLE(CONDITION) |
1811 | 1797 |
1812 #if ENABLE(CONDITION) | 1798 #if ENABLE(CONDITION) |
1813 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1799 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1814 { | 1800 { |
1815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1816 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; | 1802 TestObjectPythonV8Internal::conditionalLongAttributeAttributeSetter(v8Value,
info); |
1817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1818 } | 1804 } |
1819 #endif // ENABLE(CONDITION) | 1805 #endif // ENABLE(CONDITION) |
1820 | 1806 |
1821 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1807 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1822 static void conditionalAndLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1808 static void conditionalAndLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
1823 { | 1809 { |
1824 v8::Handle<v8::Object> holder = info.Holder(); | 1810 v8::Handle<v8::Object> holder = info.Holder(); |
1825 TestObject* impl = V8TestObject::toNative(holder); | 1811 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1826 v8SetReturnValueInt(info, impl->conditionalAndLongAttribute()); | 1812 v8SetReturnValueInt(info, impl->conditionalAndLongAttribute()); |
1827 } | 1813 } |
1828 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1814 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1829 | 1815 |
1830 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1816 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1831 static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1817 static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1832 { | 1818 { |
1833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1834 TestObjectV8Internal::conditionalAndLongAttributeAttributeGetter(info); | 1820 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info)
; |
1835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1836 } | 1822 } |
1837 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1823 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1838 | 1824 |
1839 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1825 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1840 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1826 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
1841 { | 1827 { |
1842 v8::Handle<v8::Object> holder = info.Holder(); | 1828 v8::Handle<v8::Object> holder = info.Holder(); |
1843 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObject", holder, info.GetIsolate()); | 1829 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
1844 TestObject* impl = V8TestObject::toNative(holder); | 1830 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1845 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1831 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1846 impl->setConditionalAndLongAttribute(cppValue); | 1832 impl->setConditionalAndLongAttribute(cppValue); |
1847 } | 1833 } |
1848 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1834 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1849 | 1835 |
1850 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1836 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1851 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1837 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1852 { | 1838 { |
1853 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1854 TestObjectV8Internal::conditionalAndLongAttributeAttributeSetter(v8Value, in
fo); | 1840 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeSetter(v8Val
ue, info); |
1855 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1856 } | 1842 } |
1857 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1843 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1858 | 1844 |
1859 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1845 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1860 static void conditionalOrLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 1846 static void conditionalOrLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
1861 { | 1847 { |
1862 v8::Handle<v8::Object> holder = info.Holder(); | 1848 v8::Handle<v8::Object> holder = info.Holder(); |
1863 TestObject* impl = V8TestObject::toNative(holder); | 1849 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1864 v8SetReturnValueInt(info, impl->conditionalOrLongAttribute()); | 1850 v8SetReturnValueInt(info, impl->conditionalOrLongAttribute()); |
1865 } | 1851 } |
1866 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1852 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1867 | 1853 |
1868 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1854 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1869 static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1855 static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1870 { | 1856 { |
1871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1872 TestObjectV8Internal::conditionalOrLongAttributeAttributeGetter(info); | 1858 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info); |
1873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1874 } | 1860 } |
1875 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1861 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1876 | 1862 |
1877 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1863 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1878 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 1864 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
1879 { | 1865 { |
1880 v8::Handle<v8::Object> holder = info.Holder(); | 1866 v8::Handle<v8::Object> holder = info.Holder(); |
1881 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 1867 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
1882 TestObject* impl = V8TestObject::toNative(holder); | 1868 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1883 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1869 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1884 impl->setConditionalOrLongAttribute(cppValue); | 1870 impl->setConditionalOrLongAttribute(cppValue); |
1885 } | 1871 } |
1886 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1872 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1887 | 1873 |
1888 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1874 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1889 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1875 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1890 { | 1876 { |
1891 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1892 TestObjectV8Internal::conditionalOrLongAttributeAttributeSetter(v8Value, inf
o); | 1878 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeSetter(v8Valu
e, info); |
1893 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1894 } | 1880 } |
1895 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1881 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1896 | 1882 |
1897 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1883 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1898 { | 1884 { |
1899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1900 V8TestObject::customObjectAttributeAttributeGetterCustom(info); | 1886 V8TestObjectPython::customObjectAttributeAttributeGetterCustom(info); |
1901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1902 } | 1888 } |
1903 | 1889 |
1904 static void customObjectAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1890 static void customObjectAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1905 { | 1891 { |
1906 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1907 V8TestObject::customObjectAttributeAttributeSetterCustom(v8Value, info); | 1893 V8TestObjectPython::customObjectAttributeAttributeSetterCustom(v8Value, info
); |
1908 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1909 } | 1895 } |
1910 | 1896 |
1911 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1897 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1912 { | 1898 { |
1913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1914 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); | 1900 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info); |
1915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1916 } | 1902 } |
1917 | 1903 |
1918 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 1904 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
1919 { | 1905 { |
1920 v8::Handle<v8::Object> holder = info.Holder(); | 1906 v8::Handle<v8::Object> holder = info.Holder(); |
1921 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 1907 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObjectPython", holder, info.GetIsolate()); |
1922 TestObject* impl = V8TestObject::toNative(holder); | 1908 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1923 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1909 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1924 impl->setCustomGetterLongAttribute(cppValue); | 1910 impl->setCustomGetterLongAttribute(cppValue); |
1925 } | 1911 } |
1926 | 1912 |
1927 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1913 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1928 { | 1914 { |
1929 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1930 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); | 1916 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(v8Value
, info); |
1931 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1932 } | 1918 } |
1933 | 1919 |
1934 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1920 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1935 { | 1921 { |
1936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1937 V8TestObject::customGetterReadonlyObjectAttributeAttributeGetterCustom(info)
; | 1923 V8TestObjectPython::customGetterReadonlyObjectAttributeAttributeGetterCustom
(info); |
1938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1939 } | 1925 } |
1940 | 1926 |
1941 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 1927 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
1942 { | 1928 { |
1943 v8::Handle<v8::Object> holder = info.Holder(); | 1929 v8::Handle<v8::Object> holder = info.Holder(); |
1944 TestObject* impl = V8TestObject::toNative(holder); | 1930 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1945 v8SetReturnValueInt(info, impl->customSetterLongAttribute()); | 1931 v8SetReturnValueInt(info, impl->customSetterLongAttribute()); |
1946 } | 1932 } |
1947 | 1933 |
1948 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1934 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1949 { | 1935 { |
1950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1951 TestObjectV8Internal::customSetterLongAttributeAttributeGetter(info); | 1937 TestObjectPythonV8Internal::customSetterLongAttributeAttributeGetter(info); |
1952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1953 } | 1939 } |
1954 | 1940 |
1955 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1941 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1956 { | 1942 { |
1957 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1943 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1958 V8TestObject::customSetterLongAttributeAttributeSetterCustom(v8Value, info); | 1944 V8TestObjectPython::customSetterLongAttributeAttributeSetterCustom(v8Value,
info); |
1959 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1945 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1960 } | 1946 } |
1961 | 1947 |
1962 #if ENABLE(CONDITION) | 1948 #if ENABLE(CONDITION) |
1963 static void customLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1949 static void customLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1964 { | 1950 { |
1965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1951 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1966 V8TestObject::customLongAttributeAttributeGetterCustom(info); | 1952 V8TestObjectPython::customLongAttributeAttributeGetterCustom(info); |
1967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1953 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1968 } | 1954 } |
1969 #endif // ENABLE(CONDITION) | 1955 #endif // ENABLE(CONDITION) |
1970 | 1956 |
1971 #if ENABLE(CONDITION) | 1957 #if ENABLE(CONDITION) |
1972 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1958 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1973 { | 1959 { |
1974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1975 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); | 1961 V8TestObjectPython::customLongAttributeAttributeSetterCustom(v8Value, info); |
1976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1977 } | 1963 } |
1978 #endif // ENABLE(CONDITION) | 1964 #endif // ENABLE(CONDITION) |
1979 | 1965 |
1980 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 1966 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
1981 { | 1967 { |
1982 v8::Handle<v8::Object> holder = info.Holder(); | 1968 v8::Handle<v8::Object> holder = info.Holder(); |
1983 TestObject* impl = V8TestObject::toNative(holder); | 1969 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1984 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute
()); | 1970 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute
()); |
1985 } | 1971 } |
1986 | 1972 |
1987 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1973 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1988 { | 1974 { |
1989 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1990 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG
etter(info); | 1976 TestObjectPythonV8Internal::customElementsCallbacksReadonlyLongAttributeAttr
ibuteGetter(info); |
1991 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1992 } | 1978 } |
1993 | 1979 |
1994 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1980 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
1995 { | 1981 { |
1996 v8::Handle<v8::Object> holder = info.Holder(); | 1982 v8::Handle<v8::Object> holder = info.Holder(); |
1997 TestObject* impl = V8TestObject::toNative(holder); | 1983 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
1998 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); | 1984 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); |
1999 } | 1985 } |
2000 | 1986 |
2001 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1987 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
2002 { | 1988 { |
2003 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1989 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2004 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); | 1990 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); |
2005 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); | 1991 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info); |
2006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2007 } | 1993 } |
2008 | 1994 |
2009 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1995 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2010 { | 1996 { |
2011 v8::Handle<v8::Object> holder = info.Holder(); | 1997 v8::Handle<v8::Object> holder = info.Holder(); |
2012 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); | 1998 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObjectPython", holder, info.GetIsolate()); |
2013 TestObject* impl = V8TestObject::toNative(holder); | 1999 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2014 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2000 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2015 impl->setDeprecatedLongAttribute(cppValue); | 2001 impl->setDeprecatedLongAttribute(cppValue); |
2016 } | 2002 } |
2017 | 2003 |
2018 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2004 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2019 { | 2005 { |
2020 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2006 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2021 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); | 2007 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); |
2022 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); | 2008 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(v8Value,
info); |
2023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2024 } | 2010 } |
2025 | 2011 |
2026 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 2012 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
2027 { | 2013 { |
2028 v8::Handle<v8::Object> holder = info.Holder(); | 2014 v8::Handle<v8::Object> holder = info.Holder(); |
2029 TestObject* impl = V8TestObject::toNative(holder); | 2015 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2030 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); | 2016 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); |
2031 } | 2017 } |
2032 | 2018 |
2033 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2019 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2034 { | 2020 { |
2035 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2036 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 2022 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
2037 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2038 } | 2024 } |
2039 | 2025 |
2040 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2026 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
2041 { | 2027 { |
2042 v8::Handle<v8::Object> holder = info.Holder(); | 2028 v8::Handle<v8::Object> holder = info.Holder(); |
2043 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2029 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2044 TestObject* impl = V8TestObject::toNative(holder); | 2030 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2045 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, EnforceRange, exce
ptionState), exceptionState); | 2031 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, EnforceRange, exce
ptionState), exceptionState); |
2046 impl->setEnforceRangeLongAttribute(cppValue); | 2032 impl->setEnforceRangeLongAttribute(cppValue); |
2047 } | 2033 } |
2048 | 2034 |
2049 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2035 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2050 { | 2036 { |
2051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2052 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); | 2038 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value
, info); |
2053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2054 } | 2040 } |
2055 | 2041 |
2056 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 2042 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
2057 { | 2043 { |
2058 v8::Handle<v8::Object> holder = info.Holder(); | 2044 v8::Handle<v8::Object> holder = info.Holder(); |
2059 TestObject* impl = V8TestObject::toNative(holder); | 2045 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2060 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); | 2046 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
2061 } | 2047 } |
2062 | 2048 |
2063 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2049 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2064 { | 2050 { |
2065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2066 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); | 2052 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in
fo); |
2067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2068 } | 2054 } |
2069 | 2055 |
2070 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 2056 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2071 { | 2057 { |
2072 v8::Handle<v8::Object> holder = info.Holder(); | 2058 v8::Handle<v8::Object> holder = info.Holder(); |
2073 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2059 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2074 TestObject* impl = V8TestObject::toNative(holder); | 2060 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2075 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2061 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2076 impl->setExposeJSAccessorsLongAttribute(cppValue); | 2062 impl->setExposeJSAccessorsLongAttribute(cppValue); |
2077 } | 2063 } |
2078 | 2064 |
2079 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2065 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2080 { | 2066 { |
2081 v8::Local<v8::Value> v8Value = info[0]; | 2067 v8::Local<v8::Value> v8Value = info[0]; |
2082 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2083 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); | 2069 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8
Value, info); |
2084 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2085 } | 2071 } |
2086 | 2072 |
2087 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 2073 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
2088 { | 2074 { |
2089 v8::Handle<v8::Object> holder = info.Holder(); | 2075 v8::Handle<v8::Object> holder = info.Holder(); |
2090 TestObject* impl = V8TestObject::toNative(holder); | 2076 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2091 v8SetReturnValueInt(info, impl->implementedAsName()); | 2077 v8SetReturnValueInt(info, impl->implementedAsName()); |
2092 } | 2078 } |
2093 | 2079 |
2094 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2080 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2095 { | 2081 { |
2096 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2082 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2097 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); | 2083 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info); |
2098 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2084 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2099 } | 2085 } |
2100 | 2086 |
2101 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2087 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2102 { | 2088 { |
2103 v8::Handle<v8::Object> holder = info.Holder(); | 2089 v8::Handle<v8::Object> holder = info.Holder(); |
2104 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2090 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2105 TestObject* impl = V8TestObject::toNative(holder); | 2091 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2106 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2092 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2107 impl->setImplementedAsName(cppValue); | 2093 impl->setImplementedAsName(cppValue); |
2108 } | 2094 } |
2109 | 2095 |
2110 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2096 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2111 { | 2097 { |
2112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2113 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); | 2099 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(v8Valu
e, info); |
2114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2115 } | 2101 } |
2116 | 2102 |
2117 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2103 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2118 { | 2104 { |
2119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2120 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); | 2106 V8TestObjectPython::customImplementedAsLongAttributeAttributeGetterCustom(in
fo); |
2121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2122 } | 2108 } |
2123 | 2109 |
2124 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 2110 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
2125 { | 2111 { |
2126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2127 V8TestObject::customImplementedAsLongAttributeAttributeSetterCustom(v8Value,
info); | 2113 V8TestObjectPython::customImplementedAsLongAttributeAttributeSetterCustom(v8
Value, info); |
2128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2129 } | 2115 } |
2130 | 2116 |
2131 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2117 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2132 { | 2118 { |
2133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2134 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); | 2120 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus
tom(info); |
2135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2136 } | 2122 } |
2137 | 2123 |
2138 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2124 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2139 { | 2125 { |
2140 v8::Handle<v8::Object> holder = info.Holder(); | 2126 v8::Handle<v8::Object> holder = info.Holder(); |
2141 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2127 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2142 TestObject* impl = V8TestObject::toNative(holder); | 2128 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2143 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2129 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2144 impl->setImplementedAsNameWithCustomGetter(cppValue); | 2130 impl->setImplementedAsNameWithCustomGetter(cppValue); |
2145 } | 2131 } |
2146 | 2132 |
2147 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 2133 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
2148 { | 2134 { |
2149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2150 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); | 2136 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS
etter(v8Value, info); |
2151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2152 } | 2138 } |
2153 | 2139 |
2154 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 2140 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
2155 { | 2141 { |
2156 v8::Handle<v8::Object> holder = info.Holder(); | 2142 v8::Handle<v8::Object> holder = info.Holder(); |
2157 TestObject* impl = V8TestObject::toNative(holder); | 2143 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2158 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); | 2144 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); |
2159 } | 2145 } |
2160 | 2146 |
2161 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2147 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2162 { | 2148 { |
2163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2164 TestObjectV8Internal::customSetterImplementedAsLongAttributeAttributeGetter(
info); | 2150 TestObjectPythonV8Internal::customSetterImplementedAsLongAttributeAttributeG
etter(info); |
2165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2166 } | 2152 } |
2167 | 2153 |
2168 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 2154 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
2169 { | 2155 { |
2170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2171 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8
Value, info); | 2157 V8TestObjectPython::customSetterImplementedAsLongAttributeAttributeSetterCus
tom(v8Value, info); |
2172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2173 } | 2159 } |
2174 | 2160 |
2175 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 2161 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
2176 { | 2162 { |
2177 v8::Handle<v8::Object> holder = info.Holder(); | 2163 v8::Handle<v8::Object> holder = info.Holder(); |
2178 TestObject* impl = V8TestObject::toNative(holder); | 2164 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2179 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); | 2165 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); |
2180 } | 2166 } |
2181 | 2167 |
2182 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2168 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
2183 { | 2169 { |
2184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2185 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 2171 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
2186 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); | 2172 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info); |
2187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2188 } | 2174 } |
2189 | 2175 |
2190 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2176 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2191 { | 2177 { |
2192 v8::Handle<v8::Object> holder = info.Holder(); | 2178 v8::Handle<v8::Object> holder = info.Holder(); |
2193 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); | 2179 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObjectPython", holder, info.GetIsolate()); |
2194 TestObject* impl = V8TestObject::toNative(holder); | 2180 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2195 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2181 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2196 impl->setMeasureAsLongAttribute(cppValue); | 2182 impl->setMeasureAsLongAttribute(cppValue); |
2197 } | 2183 } |
2198 | 2184 |
2199 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2185 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2200 { | 2186 { |
2201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2202 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 2188 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
2203 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); | 2189 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(v8Value, i
nfo); |
2204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2205 } | 2191 } |
2206 | 2192 |
2207 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 2193 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
2208 { | 2194 { |
2209 v8::Handle<v8::Object> holder = info.Holder(); | 2195 v8::Handle<v8::Object> holder = info.Holder(); |
2210 TestObject* impl = V8TestObject::toNative(holder); | 2196 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2211 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); | 2197 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); |
2212 } | 2198 } |
2213 | 2199 |
2214 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2200 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2215 { | 2201 { |
2216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2217 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2203 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
2218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2219 } | 2205 } |
2220 | 2206 |
2221 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2207 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2222 { | 2208 { |
2223 v8::Handle<v8::Object> holder = info.Holder(); | 2209 v8::Handle<v8::Object> holder = info.Holder(); |
2224 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2210 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2225 TestObject* impl = V8TestObject::toNative(holder); | 2211 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2226 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2212 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2227 impl->setNotEnumerableLongAttribute(cppValue); | 2213 impl->setNotEnumerableLongAttribute(cppValue); |
2228 } | 2214 } |
2229 | 2215 |
2230 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2216 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2231 { | 2217 { |
2232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2233 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); | 2219 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(v8Valu
e, info); |
2234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2235 } | 2221 } |
2236 | 2222 |
2237 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2223 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
2238 { | 2224 { |
2239 v8::Handle<v8::Object> holder = info.Holder(); | 2225 v8::Handle<v8::Object> holder = info.Holder(); |
2240 TestObject* impl = V8TestObject::toNative(holder); | 2226 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2241 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); | 2227 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); |
2242 } | 2228 } |
2243 | 2229 |
2244 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2230 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2245 { | 2231 { |
2246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2247 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); | 2233 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in
fo); |
2248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2249 } | 2235 } |
2250 | 2236 |
2251 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2237 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2252 { | 2238 { |
2253 v8::Handle<v8::Object> holder = info.Holder(); | 2239 v8::Handle<v8::Object> holder = info.Holder(); |
2254 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); | 2240 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2255 TestObject* impl = V8TestObject::toNative(holder); | 2241 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2256 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2242 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2257 impl->setPerContextEnabledLongAttribute(cppValue); | 2243 impl->setPerContextEnabledLongAttribute(cppValue); |
2258 } | 2244 } |
2259 | 2245 |
2260 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 2246 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
2261 { | 2247 { |
2262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2263 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); | 2249 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(v8
Value, info); |
2264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2265 } | 2251 } |
2266 | 2252 |
2267 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2253 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
2268 { | 2254 { |
2269 v8::Handle<v8::Object> holder = info.Holder(); | 2255 v8::Handle<v8::Object> holder = info.Holder(); |
2270 TestObject* impl = V8TestObject::toNative(holder); | 2256 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2271 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); | 2257 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); |
2272 } | 2258 } |
2273 | 2259 |
2274 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2260 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2275 { | 2261 { |
2276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2277 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetter(info); | 2263 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf
o); |
2278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2279 } | 2265 } |
2280 | 2266 |
2281 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 2267 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
2282 { | 2268 { |
2283 v8::Handle<v8::Object> holder = info.Holder(); | 2269 v8::Handle<v8::Object> holder = info.Holder(); |
2284 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2270 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2285 TestObject* impl = V8TestObject::toNative(holder); | 2271 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2286 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2272 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2287 impl->setPerWorldBindingsLongAttribute(cppValue); | 2273 impl->setPerWorldBindingsLongAttribute(cppValue); |
2288 } | 2274 } |
2289 | 2275 |
2290 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 2276 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
2291 { | 2277 { |
2292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2293 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8Value,
info); | 2279 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8V
alue, info); |
2294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2295 } | 2281 } |
2296 | 2282 |
2297 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 2283 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
2298 { | 2284 { |
2299 v8::Handle<v8::Object> holder = info.Holder(); | 2285 v8::Handle<v8::Object> holder = info.Holder(); |
2300 TestObject* impl = V8TestObject::toNative(holder); | 2286 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2301 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); | 2287 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); |
2302 } | 2288 } |
2303 | 2289 |
2304 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2290 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2305 { | 2291 { |
2306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2307 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetterForMainWor
ld(info); | 2293 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM
ainWorld(info); |
2308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2309 } | 2295 } |
2310 | 2296 |
2311 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2297 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2312 { | 2298 { |
2313 v8::Handle<v8::Object> holder = info.Holder(); | 2299 v8::Handle<v8::Object> holder = info.Holder(); |
2314 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2300 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2315 TestObject* impl = V8TestObject::toNative(holder); | 2301 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2316 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2302 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2317 impl->setPerWorldBindingsLongAttribute(cppValue); | 2303 impl->setPerWorldBindingsLongAttribute(cppValue); |
2318 } | 2304 } |
2319 | 2305 |
2320 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 2306 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
2321 { | 2307 { |
2322 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2323 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetterForMainWor
ld(v8Value, info); | 2309 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM
ainWorld(v8Value, info); |
2324 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2325 } | 2311 } |
2326 | 2312 |
2327 static void perWorldBindingsReadonlyLongAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 2313 static void perWorldBindingsReadonlyLongAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
2328 { | 2314 { |
2329 v8::Handle<v8::Object> holder = info.Holder(); | 2315 v8::Handle<v8::Object> holder = info.Holder(); |
2330 TestObject* impl = V8TestObject::toNative(holder); | 2316 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2331 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); | 2317 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); |
2332 } | 2318 } |
2333 | 2319 |
2334 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2320 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2335 { | 2321 { |
2336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2322 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2337 TestObjectV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGetter(i
nfo); | 2323 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tter(info); |
2338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2324 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2339 } | 2325 } |
2340 | 2326 |
2341 static void perWorldBindingsReadonlyLongAttributeAttributeGetterForMainWorld(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 2327 static void perWorldBindingsReadonlyLongAttributeAttributeGetterForMainWorld(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
2342 { | 2328 { |
2343 v8::Handle<v8::Object> holder = info.Holder(); | 2329 v8::Handle<v8::Object> holder = info.Holder(); |
2344 TestObject* impl = V8TestObject::toNative(holder); | 2330 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2345 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); | 2331 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); |
2346 } | 2332 } |
2347 | 2333 |
2348 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW
orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2334 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW
orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2349 { | 2335 { |
2350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2351 TestObjectV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGetterFo
rMainWorld(info); | 2337 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tterForMainWorld(info); |
2352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2353 } | 2339 } |
2354 | 2340 |
2355 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2341 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2356 { | 2342 { |
2357 v8::Handle<v8::Object> holder = info.Holder(); | 2343 v8::Handle<v8::Object> holder = info.Holder(); |
2358 TestObject* impl = V8TestObject::toNative(holder); | 2344 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2359 RefPtr<TestInterfaceEmpty> result(impl->perWorldBindingsReadonlyTestInterfac
eEmptyAttribute()); | 2345 RefPtr<TestInterfaceEmpty> result(impl->perWorldBindingsReadonlyTestInterfac
eEmptyAttribute()); |
2360 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 2346 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
2361 return; | 2347 return; |
2362 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); | 2348 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
2363 if (!wrapper.IsEmpty()) { | 2349 if (!wrapper.IsEmpty()) { |
2364 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp
er); | 2350 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp
er); |
2365 v8SetReturnValue(info, wrapper); | 2351 v8SetReturnValue(info, wrapper); |
2366 } | 2352 } |
2367 } | 2353 } |
2368 | 2354 |
2369 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2355 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2370 { | 2356 { |
2371 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2372 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt
ributeGetter(info); | 2358 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetter(info); |
2373 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2374 } | 2360 } |
2375 | 2361 |
2376 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2362 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2377 { | 2363 { |
2378 v8::Handle<v8::Object> holder = info.Holder(); | 2364 v8::Handle<v8::Object> holder = info.Holder(); |
2379 TestObject* impl = V8TestObject::toNative(holder); | 2365 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2380 RefPtr<TestInterfaceEmpty> result(impl->perWorldBindingsReadonlyTestInterfac
eEmptyAttribute()); | 2366 RefPtr<TestInterfaceEmpty> result(impl->perWorldBindingsReadonlyTestInterfac
eEmptyAttribute()); |
2381 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte
rfaceEmpty>(info.GetReturnValue(), result.get())) | 2367 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte
rfaceEmpty>(info.GetReturnValue(), result.get())) |
2382 return; | 2368 return; |
2383 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); | 2369 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
2384 if (!wrapper.IsEmpty()) { | 2370 if (!wrapper.IsEmpty()) { |
2385 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp
er); | 2371 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp
er); |
2386 v8SetReturnValue(info, wrapper); | 2372 v8SetReturnValue(info, wrapper); |
2387 } | 2373 } |
2388 } | 2374 } |
2389 | 2375 |
2390 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 2376 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
2391 { | 2377 { |
2392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2393 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt
ributeGetterForMainWorld(info); | 2379 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetterForMainWorld(info); |
2394 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2395 } | 2381 } |
2396 | 2382 |
2397 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2383 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2398 { | 2384 { |
2399 v8::Handle<v8::Object> holder = info.Holder(); | 2385 v8::Handle<v8::Object> holder = info.Holder(); |
2400 TestObject* impl = V8TestObject::toNative(holder); | 2386 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2401 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2387 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2402 } | 2388 } |
2403 | 2389 |
2404 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2390 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2405 { | 2391 { |
2406 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2407 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2393 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2408 if (contextData && contextData->activityLogger()) | 2394 if (contextData && contextData->activityLogger()) |
2409 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2395 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2410 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2396 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetter(info); |
2411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2412 } | 2398 } |
2413 | 2399 |
2414 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2400 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2415 { | 2401 { |
2416 v8::Handle<v8::Object> holder = info.Holder(); | 2402 v8::Handle<v8::Object> holder = info.Holder(); |
2417 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2403 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola
te()); |
2418 TestObject* impl = V8TestObject::toNative(holder); | 2404 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2419 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2405 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2420 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2406 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2421 } | 2407 } |
2422 | 2408 |
2423 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2409 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2424 { | 2410 { |
2425 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2426 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2412 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2427 if (contextData && contextData->activityLogger()) { | 2413 if (contextData && contextData->activityLogger()) { |
2428 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2414 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
2429 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2415 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
2430 } | 2416 } |
2431 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 2417 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeSetter(v8Value, info); |
2432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2433 } | 2419 } |
2434 | 2420 |
2435 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2421 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2436 { | 2422 { |
2437 v8::Handle<v8::Object> holder = info.Holder(); | 2423 v8::Handle<v8::Object> holder = info.Holder(); |
2438 TestObject* impl = V8TestObject::toNative(holder); | 2424 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2439 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2425 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2440 } | 2426 } |
2441 | 2427 |
2442 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2428 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
2443 { | 2429 { |
2444 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2445 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2431 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2446 if (contextData && contextData->activityLogger()) | 2432 if (contextData && contextData->activityLogger()) |
2447 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2433 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2448 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2434 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); |
2449 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2450 } | 2436 } |
2451 | 2437 |
2452 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2438 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2453 { | 2439 { |
2454 v8::Handle<v8::Object> holder = info.Holder(); | 2440 v8::Handle<v8::Object> holder = info.Holder(); |
2455 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2441 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola
te()); |
2456 TestObject* impl = V8TestObject::toNative(holder); | 2442 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2457 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2443 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2458 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2444 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2459 } | 2445 } |
2460 | 2446 |
2461 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2447 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2462 { | 2448 { |
2463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2464 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2450 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2465 if (contextData && contextData->activityLogger()) { | 2451 if (contextData && contextData->activityLogger()) { |
2466 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2452 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
2467 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2453 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
2468 } | 2454 } |
2469 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 2455 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(v8Value, info); |
2470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2471 } | 2457 } |
2472 | 2458 |
2473 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2459 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2474 { | 2460 { |
2475 v8::Handle<v8::Object> holder = info.Holder(); | 2461 v8::Handle<v8::Object> holder = info.Holder(); |
2476 TestObject* impl = V8TestObject::toNative(holder); | 2462 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2477 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2463 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2478 } | 2464 } |
2479 | 2465 |
2480 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2466 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
2481 { | 2467 { |
2482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2483 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2469 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2484 if (contextData && contextData->activityLogger()) | 2470 if (contextData && contextData->activityLogger()) |
2485 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2471 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2486 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2472 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); |
2487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2488 } | 2474 } |
2489 | 2475 |
2490 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2476 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2491 { | 2477 { |
2492 v8::Handle<v8::Object> holder = info.Holder(); | 2478 v8::Handle<v8::Object> holder = info.Holder(); |
2493 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2479 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold
er, info.GetIsolate()); |
2494 TestObject* impl = V8TestObject::toNative(holder); | 2480 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2495 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2481 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2496 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2482 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2497 } | 2483 } |
2498 | 2484 |
2499 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2485 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2500 { | 2486 { |
2501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2487 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2502 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2488 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2503 if (contextData && contextData->activityLogger()) { | 2489 if (contextData && contextData->activityLogger()) { |
2504 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2490 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
2505 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2491 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
2506 } | 2492 } |
2507 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 2493 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(v8Value, info); |
2508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2494 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2509 } | 2495 } |
2510 | 2496 |
2511 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2497 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2512 { | 2498 { |
2513 v8::Handle<v8::Object> holder = info.Holder(); | 2499 v8::Handle<v8::Object> holder = info.Holder(); |
2514 TestObject* impl = V8TestObject::toNative(holder); | 2500 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2515 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2501 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2516 } | 2502 } |
2517 | 2503 |
2518 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2504 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
2519 { | 2505 { |
2520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2521 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 2507 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); |
2522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2523 } | 2509 } |
2524 | 2510 |
2525 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 2511 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
2526 { | 2512 { |
2527 v8::Handle<v8::Object> holder = info.Holder(); | 2513 v8::Handle<v8::Object> holder = info.Holder(); |
2528 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2514 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold
er, info.GetIsolate()); |
2529 TestObject* impl = V8TestObject::toNative(holder); | 2515 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2530 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2516 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2531 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2517 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2532 } | 2518 } |
2533 | 2519 |
2534 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2520 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2535 { | 2521 { |
2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2537 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 2523 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(v8Value, info); |
2538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2539 } | 2525 } |
2540 | 2526 |
2541 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2527 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2542 { | 2528 { |
2543 v8::Handle<v8::Object> holder = info.Holder(); | 2529 v8::Handle<v8::Object> holder = info.Holder(); |
2544 TestObject* impl = V8TestObject::toNative(holder); | 2530 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2545 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 2531 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
2546 } | 2532 } |
2547 | 2533 |
2548 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2534 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2549 { | 2535 { |
2550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2551 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2537 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2552 if (contextData && contextData->activityLogger()) | 2538 if (contextData && contextData->activityLogger()) |
2553 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2539 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2554 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2540 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetter(info); |
2555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2556 } | 2542 } |
2557 | 2543 |
2558 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2544 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2559 { | 2545 { |
2560 v8::Handle<v8::Object> holder = info.Holder(); | 2546 v8::Handle<v8::Object> holder = info.Holder(); |
2561 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2547 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola
te()); |
2562 TestObject* impl = V8TestObject::toNative(holder); | 2548 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2563 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2549 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2564 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2550 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2565 } | 2551 } |
2566 | 2552 |
2567 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2553 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2568 { | 2554 { |
2569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2570 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 2556 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetter(v8Value, info); |
2571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2572 } | 2558 } |
2573 | 2559 |
2574 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2560 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2575 { | 2561 { |
2576 v8::Handle<v8::Object> holder = info.Holder(); | 2562 v8::Handle<v8::Object> holder = info.Holder(); |
2577 TestObject* impl = V8TestObject::toNative(holder); | 2563 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2578 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 2564 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
2579 } | 2565 } |
2580 | 2566 |
2581 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2567 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
2582 { | 2568 { |
2583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2584 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2570 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2585 if (contextData && contextData->activityLogger()) | 2571 if (contextData && contextData->activityLogger()) |
2586 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2572 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2587 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2573 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); |
2588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2589 } | 2575 } |
2590 | 2576 |
2591 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2577 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2592 { | 2578 { |
2593 v8::Handle<v8::Object> holder = info.Holder(); | 2579 v8::Handle<v8::Object> holder = info.Holder(); |
2594 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2580 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola
te()); |
2595 TestObject* impl = V8TestObject::toNative(holder); | 2581 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2596 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2582 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2597 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2583 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2598 } | 2584 } |
2599 | 2585 |
2600 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2586 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2601 { | 2587 { |
2602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2603 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 2589 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(v8Value, info); |
2604 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2605 } | 2591 } |
2606 | 2592 |
2607 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2593 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2608 { | 2594 { |
2609 v8::Handle<v8::Object> holder = info.Holder(); | 2595 v8::Handle<v8::Object> holder = info.Holder(); |
2610 TestObject* impl = V8TestObject::toNative(holder); | 2596 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2611 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2597 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2612 } | 2598 } |
2613 | 2599 |
2614 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2600 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
2615 { | 2601 { |
2616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2617 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2603 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2618 if (contextData && contextData->activityLogger()) | 2604 if (contextData && contextData->activityLogger()) |
2619 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2605 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2620 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2606 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); |
2621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2622 } | 2608 } |
2623 | 2609 |
2624 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2610 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2625 { | 2611 { |
2626 v8::Handle<v8::Object> holder = info.Holder(); | 2612 v8::Handle<v8::Object> holder = info.Holder(); |
2627 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2613 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold
er, info.GetIsolate()); |
2628 TestObject* impl = V8TestObject::toNative(holder); | 2614 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2629 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2615 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2630 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2616 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2631 } | 2617 } |
2632 | 2618 |
2633 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2619 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2634 { | 2620 { |
2635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2636 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 2622 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(v8Value, info); |
2637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2638 } | 2624 } |
2639 | 2625 |
2640 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2626 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2641 { | 2627 { |
2642 v8::Handle<v8::Object> holder = info.Holder(); | 2628 v8::Handle<v8::Object> holder = info.Holder(); |
2643 TestObject* impl = V8TestObject::toNative(holder); | 2629 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2644 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2630 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2645 } | 2631 } |
2646 | 2632 |
2647 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2633 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
2648 { | 2634 { |
2649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2650 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 2636 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); |
2651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2652 } | 2638 } |
2653 | 2639 |
2654 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 2640 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
2655 { | 2641 { |
2656 v8::Handle<v8::Object> holder = info.Holder(); | 2642 v8::Handle<v8::Object> holder = info.Holder(); |
2657 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2643 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold
er, info.GetIsolate()); |
2658 TestObject* impl = V8TestObject::toNative(holder); | 2644 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2659 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2645 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2660 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2646 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2661 } | 2647 } |
2662 | 2648 |
2663 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2649 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2664 { | 2650 { |
2665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2666 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 2652 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(v8Value, info); |
2667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2668 } | 2654 } |
2669 | 2655 |
2670 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) | 2656 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) |
2671 { | 2657 { |
2672 v8::Handle<v8::Object> holder = info.Holder(); | 2658 v8::Handle<v8::Object> holder = info.Holder(); |
2673 TestObject* impl = V8TestObject::toNative(holder); | 2659 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2674 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); | 2660 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); |
2675 } | 2661 } |
2676 | 2662 |
2677 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 2663 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
2678 { | 2664 { |
2679 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2680 TestObjectV8Internal::locationAttributeGetter(info); | 2666 TestObjectPythonV8Internal::locationAttributeGetter(info); |
2681 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2682 } | 2668 } |
2683 | 2669 |
2684 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 2670 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) |
2685 { | 2671 { |
2686 v8::Handle<v8::Object> holder = info.Holder(); | 2672 v8::Handle<v8::Object> holder = info.Holder(); |
2687 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2673 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
2688 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); | 2674 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
2689 if (!impl) | 2675 if (!impl) |
2690 return; | 2676 return; |
2691 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2677 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
2692 impl->setHref(cppValue); | 2678 impl->setHref(cppValue); |
2693 } | 2679 } |
2694 | 2680 |
2695 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2681 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2696 { | 2682 { |
2697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2698 TestObjectV8Internal::locationAttributeSetter(v8Value, info); | 2684 TestObjectPythonV8Internal::locationAttributeSetter(v8Value, info); |
2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2700 } | 2686 } |
2701 | 2687 |
2702 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 2688 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
2703 { | 2689 { |
2704 v8::Handle<v8::Object> holder = info.Holder(); | 2690 v8::Handle<v8::Object> holder = info.Holder(); |
2705 TestObject* impl = V8TestObject::toNative(holder); | 2691 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2706 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl)
; | 2692 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl)
; |
2707 } | 2693 } |
2708 | 2694 |
2709 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2695 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
2710 { | 2696 { |
2711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2712 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); | 2698 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); |
2713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2714 } | 2700 } |
2715 | 2701 |
2716 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 2702 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
2717 { | 2703 { |
2718 v8::Handle<v8::Object> holder = info.Holder(); | 2704 v8::Handle<v8::Object> holder = info.Holder(); |
2719 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2705 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
2720 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); | 2706 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); |
2721 if (!impl) | 2707 if (!impl) |
2722 return; | 2708 return; |
2723 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2709 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
2724 impl->setHrefThrows(cppValue); | 2710 impl->setHrefThrows(cppValue); |
2725 } | 2711 } |
2726 | 2712 |
2727 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2713 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2728 { | 2714 { |
2729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2715 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2730 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); | 2716 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(v8Value, in
fo); |
2731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2717 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2732 } | 2718 } |
2733 | 2719 |
2734 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2720 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
2735 { | 2721 { |
2736 v8::Handle<v8::Object> holder = info.Holder(); | 2722 v8::Handle<v8::Object> holder = info.Holder(); |
2737 TestObject* impl = V8TestObject::toNative(holder); | 2723 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2738 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); | 2724 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); |
2739 } | 2725 } |
2740 | 2726 |
2741 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2727 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2742 { | 2728 { |
2743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2744 TestObjectV8Internal::locationWithCallWithAttributeGetter(info); | 2730 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); |
2745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2746 } | 2732 } |
2747 | 2733 |
2748 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 2734 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
2749 { | 2735 { |
2750 v8::Handle<v8::Object> holder = info.Holder(); | 2736 v8::Handle<v8::Object> holder = info.Holder(); |
2751 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2737 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
2752 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); | 2738 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); |
2753 if (!impl) | 2739 if (!impl) |
2754 return; | 2740 return; |
2755 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2741 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
2756 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); | 2742 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); |
2757 } | 2743 } |
2758 | 2744 |
2759 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2745 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2760 { | 2746 { |
2761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2747 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2762 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); | 2748 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(v8Value, inf
o); |
2763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2749 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2764 } | 2750 } |
2765 | 2751 |
2766 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2752 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
2767 { | 2753 { |
2768 v8::Handle<v8::Object> holder = info.Holder(); | 2754 v8::Handle<v8::Object> holder = info.Holder(); |
2769 TestObject* impl = V8TestObject::toNative(holder); | 2755 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2770 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings())
, impl); | 2756 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings())
, impl); |
2771 } | 2757 } |
2772 | 2758 |
2773 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2759 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2774 { | 2760 { |
2775 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2776 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info); | 2762 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); |
2777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2778 } | 2764 } |
2779 | 2765 |
2780 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 2766 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
2781 { | 2767 { |
2782 v8::Handle<v8::Object> holder = info.Holder(); | 2768 v8::Handle<v8::Object> holder = info.Holder(); |
2783 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2769 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
2784 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); | 2770 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); |
2785 if (!impl) | 2771 if (!impl) |
2786 return; | 2772 return; |
2787 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2773 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
2788 impl->setHref(cppValue); | 2774 impl->setHref(cppValue); |
2789 } | 2775 } |
2790 | 2776 |
2791 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2777 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2792 { | 2778 { |
2793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2794 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); | 2780 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Va
lue, info); |
2795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2796 } | 2782 } |
2797 | 2783 |
2798 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 2784 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
2799 { | 2785 { |
2800 v8::Handle<v8::Object> holder = info.Holder(); | 2786 v8::Handle<v8::Object> holder = info.Holder(); |
2801 TestObject* impl = V8TestObject::toNative(holder); | 2787 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2802 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin
dings())); | 2788 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin
dings())); |
2803 } | 2789 } |
2804 | 2790 |
2805 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2791 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2806 { | 2792 { |
2807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2808 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl
d(info); | 2794 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); |
2809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2810 } | 2796 } |
2811 | 2797 |
2812 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2798 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2813 { | 2799 { |
2814 v8::Handle<v8::Object> holder = info.Holder(); | 2800 v8::Handle<v8::Object> holder = info.Holder(); |
2815 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2801 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
2816 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); | 2802 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); |
2817 if (!impl) | 2803 if (!impl) |
2818 return; | 2804 return; |
2819 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2805 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
2820 impl->setHref(cppValue); | 2806 impl->setHref(cppValue); |
2821 } | 2807 } |
2822 | 2808 |
2823 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 2809 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
2824 { | 2810 { |
2825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2826 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); | 2812 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa
inWorld(v8Value, info); |
2827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2828 } | 2814 } |
2829 | 2815 |
2830 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2816 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
2831 { | 2817 { |
2832 v8::Handle<v8::Object> holder = info.Holder(); | 2818 v8::Handle<v8::Object> holder = info.Holder(); |
2833 TestObject* impl = V8TestObject::toNative(holder); | 2819 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2834 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> result(impl->locatio
nWillBeGarbageCollected()); | 2820 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> result(impl->locatio
nWillBeGarbageCollected()); |
2835 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceWillBeG
arbageCollected>(info.GetReturnValue(), result.get())) | 2821 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceWillBeG
arbageCollected>(info.GetReturnValue(), result.get())) |
2836 return; | 2822 return; |
2837 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); | 2823 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
2838 if (!wrapper.IsEmpty()) { | 2824 if (!wrapper.IsEmpty()) { |
2839 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "locationWillBeGarbageCollected"), wrapper); | 2825 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "locationWillBeGarbageCollected"), wrapper); |
2840 v8SetReturnValue(info, wrapper); | 2826 v8SetReturnValue(info, wrapper); |
2841 } | 2827 } |
2842 } | 2828 } |
2843 | 2829 |
2844 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2830 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2845 { | 2831 { |
2846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2847 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info); | 2833 TestObjectPythonV8Internal::locationWillBeGarbageCollectedAttributeGetter(in
fo); |
2848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2849 } | 2835 } |
2850 | 2836 |
2851 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2837 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2852 { | 2838 { |
2853 v8::Handle<v8::Object> holder = info.Holder(); | 2839 v8::Handle<v8::Object> holder = info.Holder(); |
2854 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2840 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
2855 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p
roxyImpl->locationWillBeGarbageCollected()); | 2841 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p
roxyImpl->locationWillBeGarbageCollected()); |
2856 if (!impl) | 2842 if (!impl) |
2857 return; | 2843 return; |
2858 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); | 2844 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); |
2859 impl->setAttr1(WTF::getPtr(cppValue)); | 2845 impl->setAttr1(WTF::getPtr(cppValue)); |
2860 } | 2846 } |
2861 | 2847 |
2862 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 2848 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
2863 { | 2849 { |
2864 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2865 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value,
info); | 2851 TestObjectPythonV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8
Value, info); |
2866 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2867 } | 2853 } |
2868 | 2854 |
2869 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2855 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
2870 { | 2856 { |
2871 v8::Handle<v8::Object> holder = info.Holder(); | 2857 v8::Handle<v8::Object> holder = info.Holder(); |
2872 TestObject* impl = V8TestObject::toNative(holder); | 2858 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2873 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 2859 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2874 int v8Value = impl->raisesExceptionLongAttribute(exceptionState); | 2860 int v8Value = impl->raisesExceptionLongAttribute(exceptionState); |
2875 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2861 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2876 return; | 2862 return; |
2877 v8SetReturnValueInt(info, v8Value); | 2863 v8SetReturnValueInt(info, v8Value); |
2878 } | 2864 } |
2879 | 2865 |
2880 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2866 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2881 { | 2867 { |
2882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2883 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); | 2869 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info
); |
2884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2885 } | 2871 } |
2886 | 2872 |
2887 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 2873 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
2888 { | 2874 { |
2889 v8::Handle<v8::Object> holder = info.Holder(); | 2875 v8::Handle<v8::Object> holder = info.Holder(); |
2890 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 2876 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2891 TestObject* impl = V8TestObject::toNative(holder); | 2877 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2892 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2878 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2893 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 2879 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
2894 exceptionState.throwIfNeeded(); | 2880 exceptionState.throwIfNeeded(); |
2895 } | 2881 } |
2896 | 2882 |
2897 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2883 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2898 { | 2884 { |
2899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2900 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); | 2886 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); |
2901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2902 } | 2888 } |
2903 | 2889 |
2904 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2890 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
2905 { | 2891 { |
2906 v8::Handle<v8::Object> holder = info.Holder(); | 2892 v8::Handle<v8::Object> holder = info.Holder(); |
2907 TestObject* impl = V8TestObject::toNative(holder); | 2893 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2908 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 2894 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nGetterLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2909 int v8Value = impl->raisesExceptionGetterLongAttribute(exceptionState); | 2895 int v8Value = impl->raisesExceptionGetterLongAttribute(exceptionState); |
2910 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2896 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2911 return; | 2897 return; |
2912 v8SetReturnValueInt(info, v8Value); | 2898 v8SetReturnValueInt(info, v8Value); |
2913 } | 2899 } |
2914 | 2900 |
2915 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2901 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2916 { | 2902 { |
2917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2903 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2918 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); | 2904 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeGette
r(info); |
2919 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2905 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2920 } | 2906 } |
2921 | 2907 |
2922 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2908 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2923 { | 2909 { |
2924 v8::Handle<v8::Object> holder = info.Holder(); | 2910 v8::Handle<v8::Object> holder = info.Holder(); |
2925 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 2911 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2926 TestObject* impl = V8TestObject::toNative(holder); | 2912 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2927 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2913 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2928 impl->setRaisesExceptionGetterLongAttribute(cppValue); | 2914 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
2929 } | 2915 } |
2930 | 2916 |
2931 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 2917 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
2932 { | 2918 { |
2933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2934 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); | 2920 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeSette
r(v8Value, info); |
2935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2936 } | 2922 } |
2937 | 2923 |
2938 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2924 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
2939 { | 2925 { |
2940 v8::Handle<v8::Object> holder = info.Holder(); | 2926 v8::Handle<v8::Object> holder = info.Holder(); |
2941 TestObject* impl = V8TestObject::toNative(holder); | 2927 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2942 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); | 2928 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
2943 } | 2929 } |
2944 | 2930 |
2945 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2931 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2946 { | 2932 { |
2947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2948 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); | 2934 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(info); |
2949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2950 } | 2936 } |
2951 | 2937 |
2952 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2938 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2953 { | 2939 { |
2954 v8::Handle<v8::Object> holder = info.Holder(); | 2940 v8::Handle<v8::Object> holder = info.Holder(); |
2955 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); | 2941 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2956 TestObject* impl = V8TestObject::toNative(holder); | 2942 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2957 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2943 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2958 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 2944 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
2959 exceptionState.throwIfNeeded(); | 2945 exceptionState.throwIfNeeded(); |
2960 } | 2946 } |
2961 | 2947 |
2962 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 2948 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
2963 { | 2949 { |
2964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2965 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); | 2951 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette
r(v8Value, info); |
2966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2967 } | 2953 } |
2968 | 2954 |
2969 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 2955 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
2970 { | 2956 { |
2971 v8::Handle<v8::Object> holder = info.Holder(); | 2957 v8::Handle<v8::Object> holder = info.Holder(); |
2972 TestObject* impl = V8TestObject::toNative(holder); | 2958 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2973 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); | 2959 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2974 RefPtr<TestInterfaceEmpty> v8Value = impl->raisesExceptionTestInterfaceEmpty
Attribute(exceptionState); | 2960 RefPtr<TestInterfaceEmpty> v8Value = impl->raisesExceptionTestInterfaceEmpty
Attribute(exceptionState); |
2975 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2961 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2976 return; | 2962 return; |
2977 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); | 2963 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); |
2978 } | 2964 } |
2979 | 2965 |
2980 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2966 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2981 { | 2967 { |
2982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2983 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet
ter(info); | 2969 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteGetter(info); |
2984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2985 } | 2971 } |
2986 | 2972 |
2987 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2973 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2988 { | 2974 { |
2989 v8::Handle<v8::Object> holder = info.Holder(); | 2975 v8::Handle<v8::Object> holder = info.Holder(); |
2990 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); | 2976 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", holder, info.GetIsolate()); |
2991 TestObject* impl = V8TestObject::toNative(holder); | 2977 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
2992 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), v8Value)); | 2978 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), v8Value)); |
2993 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e
xceptionState); | 2979 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e
xceptionState); |
2994 exceptionState.throwIfNeeded(); | 2980 exceptionState.throwIfNeeded(); |
2995 } | 2981 } |
2996 | 2982 |
2997 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 2983 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) |
2998 { | 2984 { |
2999 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3000 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet
ter(v8Value, info); | 2986 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteSetter(v8Value, info); |
3001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3002 } | 2988 } |
3003 | 2989 |
3004 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 2990 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
3005 { | 2991 { |
3006 v8::Handle<v8::Object> holder = info.Holder(); | 2992 v8::Handle<v8::Object> holder = info.Holder(); |
3007 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeRaisesExceptionGetterAnyAttribute"); | 2993 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeRaisesExceptionGetterAnyAttribute"); |
3008 TestObject* impl = V8TestObject::toNative(holder); | 2994 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3009 if (!impl->isValueDirty()) { | 2995 if (!impl->isValueDirty()) { |
3010 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs
olate(), holder, propertyName); | 2996 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs
olate(), holder, propertyName); |
3011 if (!v8Value.IsEmpty()) { | 2997 if (!v8Value.IsEmpty()) { |
3012 v8SetReturnValue(info, v8Value); | 2998 v8SetReturnValue(info, v8Value); |
3013 return; | 2999 return; |
3014 } | 3000 } |
3015 } | 3001 } |
3016 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); | 3002 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObjectPython", holder, info.GetIsolate
()); |
3017 ScriptValue v8Value = impl->cachedAttributeRaisesExceptionGetterAnyAttribute
(exceptionState); | 3003 ScriptValue v8Value = impl->cachedAttributeRaisesExceptionGetterAnyAttribute
(exceptionState); |
3018 if (UNLIKELY(exceptionState.throwIfNeeded())) | 3004 if (UNLIKELY(exceptionState.throwIfNeeded())) |
3019 return; | 3005 return; |
3020 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue.v8Value()); | 3006 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue.v8Value()); |
3021 v8SetReturnValue(info, v8Value.v8Value()); | 3007 v8SetReturnValue(info, v8Value.v8Value()); |
3022 } | 3008 } |
3023 | 3009 |
3024 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb
ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3010 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb
ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3025 { | 3011 { |
3026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3027 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteGetter(info); | 3013 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeGetter(info); |
3028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3029 } | 3015 } |
3030 | 3016 |
3031 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3017 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3032 { | 3018 { |
3033 v8::Handle<v8::Object> holder = info.Holder(); | 3019 v8::Handle<v8::Object> holder = info.Holder(); |
3034 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); | 3020 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObjectPython", holder, info.GetIsolate
()); |
3035 TestObject* impl = V8TestObject::toNative(holder); | 3021 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3036 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); | 3022 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate(
))); |
3037 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio
nState); | 3023 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio
nState); |
3038 exceptionState.throwIfNeeded(); | 3024 exceptionState.throwIfNeeded(); |
3039 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval
idate the cached value. | 3025 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval
idate the cached value. |
3040 } | 3026 } |
3041 | 3027 |
3042 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3028 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
3043 { | 3029 { |
3044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3045 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteSetter(v8Value, info); | 3031 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeSetter(v8Value, info); |
3046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3047 } | 3033 } |
3048 | 3034 |
3049 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 3035 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
3050 { | 3036 { |
3051 v8::Handle<v8::Object> holder = info.Holder(); | 3037 v8::Handle<v8::Object> holder = info.Holder(); |
3052 TestObject* impl = V8TestObject::toNative(holder); | 3038 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3053 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lecttestinterfaceattributeAttr)), impl); | 3039 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lecttestinterfaceattributeAttr)), impl); |
3054 } | 3040 } |
3055 | 3041 |
3056 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3042 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3057 { | 3043 { |
3058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3059 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); | 3045 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); |
3060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3061 } | 3047 } |
3062 | 3048 |
3063 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3049 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3064 { | 3050 { |
3065 v8::Handle<v8::Object> holder = info.Holder(); | 3051 v8::Handle<v8::Object> holder = info.Holder(); |
3066 TestObject* impl = V8TestObject::toNative(holder); | 3052 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3067 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 3053 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), v8Value)); |
3068 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3054 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3069 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr
(cppValue)); | 3055 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr
(cppValue)); |
3070 } | 3056 } |
3071 | 3057 |
3072 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3058 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3073 { | 3059 { |
3074 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3060 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3075 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3061 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3076 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value,
info); | 3062 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8V
alue, info); |
3077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3078 } | 3064 } |
3079 | 3065 |
3080 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 3066 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
3081 { | 3067 { |
3082 v8::Handle<v8::Object> holder = info.Holder(); | 3068 v8::Handle<v8::Object> holder = info.Holder(); |
3083 TestObject* impl = V8TestObject::toNative(holder); | 3069 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3084 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lectedNameAttributeAttr)), impl); | 3070 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lectedNameAttributeAttr)), impl); |
3085 } | 3071 } |
3086 | 3072 |
3087 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3073 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3088 { | 3074 { |
3089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3090 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet
ter(info); | 3076 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); |
3091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3092 } | 3078 } |
3093 | 3079 |
3094 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3080 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3095 { | 3081 { |
3096 v8::Handle<v8::Object> holder = info.Holder(); | 3082 v8::Handle<v8::Object> holder = info.Holder(); |
3097 TestObject* impl = V8TestObject::toNative(holder); | 3083 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3098 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 3084 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), v8Value)); |
3099 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3085 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3100 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal
ue)); | 3086 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal
ue)); |
3101 } | 3087 } |
3102 | 3088 |
3103 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 3089 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) |
3104 { | 3090 { |
3105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3106 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3092 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3107 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet
ter(v8Value, info); | 3093 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteSetter(v8Value, info); |
3108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3109 } | 3095 } |
3110 | 3096 |
3111 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 3097 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
3112 { | 3098 { |
3113 v8::Handle<v8::Object> holder = info.Holder(); | 3099 v8::Handle<v8::Object> holder = info.Holder(); |
3114 TestObject* impl = V8TestObject::toNative(holder); | 3100 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3115 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana
ttributeAttr)); | 3101 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana
ttributeAttr)); |
3116 } | 3102 } |
3117 | 3103 |
3118 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 3104 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
3119 { | 3105 { |
3120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3121 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); | 3107 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info); |
3122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3123 } | 3109 } |
3124 | 3110 |
3125 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 3111 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
3126 { | 3112 { |
3127 v8::Handle<v8::Object> holder = info.Holder(); | 3113 v8::Handle<v8::Object> holder = info.Holder(); |
3128 TestObject* impl = V8TestObject::toNative(holder); | 3114 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3129 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue()); | 3115 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue()); |
3130 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3116 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3131 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); | 3117 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); |
3132 } | 3118 } |
3133 | 3119 |
3134 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3120 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3135 { | 3121 { |
3136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3137 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3123 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3138 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); | 3124 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(v8Value,
info); |
3139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3140 } | 3126 } |
3141 | 3127 |
3142 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 3128 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
3143 { | 3129 { |
3144 v8::Handle<v8::Object> holder = info.Holder(); | 3130 v8::Handle<v8::Object> holder = info.Holder(); |
3145 TestObject* impl = V8TestObject::toNative(holder); | 3131 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3146 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga
ttributeAttr)); | 3132 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga
ttributeAttr)); |
3147 } | 3133 } |
3148 | 3134 |
3149 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 3135 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
3150 { | 3136 { |
3151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3152 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); | 3138 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info); |
3153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3154 } | 3140 } |
3155 | 3141 |
3156 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3142 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
3157 { | 3143 { |
3158 v8::Handle<v8::Object> holder = info.Holder(); | 3144 v8::Handle<v8::Object> holder = info.Holder(); |
3159 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); | 3145 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObjectPython", holder, info.GetIsolate()); |
3160 TestObject* impl = V8TestObject::toNative(holder); | 3146 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3161 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3147 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3162 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3148 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3163 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 3149 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
3164 } | 3150 } |
3165 | 3151 |
3166 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3152 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3167 { | 3153 { |
3168 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3169 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3155 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3170 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3156 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(v8Value, inf
o); |
3171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3172 } | 3158 } |
3173 | 3159 |
3174 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 3160 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
3175 { | 3161 { |
3176 v8::Handle<v8::Object> holder = info.Holder(); | 3162 v8::Handle<v8::Object> holder = info.Holder(); |
3177 TestObject* impl = V8TestObject::toNative(holder); | 3163 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3178 v8SetReturnValueUnsigned(info, std::max(0, impl->fastGetAttribute(HTMLNames:
:reflectunsignedshortattributeAttr))); | 3164 v8SetReturnValueUnsigned(info, std::max(0, impl->fastGetAttribute(HTMLNames:
:reflectunsignedshortattributeAttr))); |
3179 } | 3165 } |
3180 | 3166 |
3181 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3167 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3182 { | 3168 { |
3183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3184 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3170 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf
o); |
3185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3186 } | 3172 } |
3187 | 3173 |
3188 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3174 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3189 { | 3175 { |
3190 v8::Handle<v8::Object> holder = info.Holder(); | 3176 v8::Handle<v8::Object> holder = info.Holder(); |
3191 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); | 3177 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObjectPython", holder, info.GetIsolate()); |
3192 TestObject* impl = V8TestObject::toNative(holder); | 3178 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3193 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); | 3179 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); |
3194 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3180 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3195 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 3181 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
3196 } | 3182 } |
3197 | 3183 |
3198 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3184 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3199 { | 3185 { |
3200 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3201 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3187 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3202 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3188 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8V
alue, info); |
3203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3204 } | 3190 } |
3205 | 3191 |
3206 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3192 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
3207 { | 3193 { |
3208 v8::Handle<v8::Object> holder = info.Holder(); | 3194 v8::Handle<v8::Object> holder = info.Holder(); |
3209 TestObject* impl = V8TestObject::toNative(holder); | 3195 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3210 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa
mes::reflectunsignedlongattributeAttr))); | 3196 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa
mes::reflectunsignedlongattributeAttr))); |
3211 } | 3197 } |
3212 | 3198 |
3213 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3199 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3214 { | 3200 { |
3215 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3216 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3202 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info
); |
3217 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3218 } | 3204 } |
3219 | 3205 |
3220 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3206 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3221 { | 3207 { |
3222 v8::Handle<v8::Object> holder = info.Holder(); | 3208 v8::Handle<v8::Object> holder = info.Holder(); |
3223 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); | 3209 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
3224 TestObject* impl = V8TestObject::toNative(holder); | 3210 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3225 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); | 3211 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); |
3226 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3212 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3227 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); | 3213 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
3228 } | 3214 } |
3229 | 3215 |
3230 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3216 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3231 { | 3217 { |
3232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3233 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3219 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3234 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); | 3220 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Va
lue, info); |
3235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3236 } | 3222 } |
3237 | 3223 |
3238 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 3224 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
3239 { | 3225 { |
3240 v8::Handle<v8::Object> holder = info.Holder(); | 3226 v8::Handle<v8::Object> holder = info.Holder(); |
3241 TestObject* impl = V8TestObject::toNative(holder); | 3227 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3242 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); | 3228 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); |
3243 } | 3229 } |
3244 | 3230 |
3245 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
allbackInfo<v8::Value>& info) | 3231 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
allbackInfo<v8::Value>& info) |
3246 { | 3232 { |
3247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3248 TestObjectV8Internal::idAttributeGetter(info); | 3234 TestObjectPythonV8Internal::idAttributeGetter(info); |
3249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3250 } | 3236 } |
3251 | 3237 |
3252 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 3238 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) |
3253 { | 3239 { |
3254 v8::Handle<v8::Object> holder = info.Holder(); | 3240 v8::Handle<v8::Object> holder = info.Holder(); |
3255 TestObject* impl = V8TestObject::toNative(holder); | 3241 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3256 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3242 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3257 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3243 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3258 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3244 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3259 } | 3245 } |
3260 | 3246 |
3261 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3247 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3262 { | 3248 { |
3263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3264 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3250 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3265 TestObjectV8Internal::idAttributeSetter(v8Value, info); | 3251 TestObjectPythonV8Internal::idAttributeSetter(v8Value, info); |
3266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3267 } | 3253 } |
3268 | 3254 |
3269 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 3255 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
3270 { | 3256 { |
3271 v8::Handle<v8::Object> holder = info.Holder(); | 3257 v8::Handle<v8::Object> holder = info.Holder(); |
3272 TestObject* impl = V8TestObject::toNative(holder); | 3258 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3273 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); | 3259 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); |
3274 } | 3260 } |
3275 | 3261 |
3276 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 3262 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
3277 { | 3263 { |
3278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3279 TestObjectV8Internal::nameAttributeGetter(info); | 3265 TestObjectPythonV8Internal::nameAttributeGetter(info); |
3280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3281 } | 3267 } |
3282 | 3268 |
3283 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 3269 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
3284 { | 3270 { |
3285 v8::Handle<v8::Object> holder = info.Holder(); | 3271 v8::Handle<v8::Object> holder = info.Holder(); |
3286 TestObject* impl = V8TestObject::toNative(holder); | 3272 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3287 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3273 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3288 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3289 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3275 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3290 } | 3276 } |
3291 | 3277 |
3292 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3278 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3293 { | 3279 { |
3294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3295 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3281 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3296 TestObjectV8Internal::nameAttributeSetter(v8Value, info); | 3282 TestObjectPythonV8Internal::nameAttributeSetter(v8Value, info); |
3297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3298 } | 3284 } |
3299 | 3285 |
3300 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) | 3286 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) |
3301 { | 3287 { |
3302 v8::Handle<v8::Object> holder = info.Holder(); | 3288 v8::Handle<v8::Object> holder = info.Holder(); |
3303 TestObject* impl = V8TestObject::toNative(holder); | 3289 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3304 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); | 3290 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); |
3305 } | 3291 } |
3306 | 3292 |
3307 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Value>& info) | 3293 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
3308 { | 3294 { |
3309 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3310 TestObjectV8Internal::classAttributeGetter(info); | 3296 TestObjectPythonV8Internal::classAttributeGetter(info); |
3311 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3312 } | 3298 } |
3313 | 3299 |
3314 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) | 3300 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) |
3315 { | 3301 { |
3316 v8::Handle<v8::Object> holder = info.Holder(); | 3302 v8::Handle<v8::Object> holder = info.Holder(); |
3317 TestObject* impl = V8TestObject::toNative(holder); | 3303 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3304 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3319 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3320 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3306 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3321 } | 3307 } |
3322 | 3308 |
3323 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3309 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3324 { | 3310 { |
3325 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3326 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3312 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3327 TestObjectV8Internal::classAttributeSetter(v8Value, info); | 3313 TestObjectPythonV8Internal::classAttributeSetter(v8Value, info); |
3328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3329 } | 3315 } |
3330 | 3316 |
3331 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) | 3317 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) |
3332 { | 3318 { |
3333 v8::Handle<v8::Object> holder = info.Holder(); | 3319 v8::Handle<v8::Object> holder = info.Holder(); |
3334 TestObject* impl = V8TestObject::toNative(holder); | 3320 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3335 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); | 3321 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); |
3336 } | 3322 } |
3337 | 3323 |
3338 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 3324 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
PropertyCallbackInfo<v8::Value>& info) |
3339 { | 3325 { |
3340 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3341 TestObjectV8Internal::reflectedIdAttributeGetter(info); | 3327 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info); |
3342 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3343 } | 3329 } |
3344 | 3330 |
3345 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3331 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) |
3346 { | 3332 { |
3347 v8::Handle<v8::Object> holder = info.Holder(); | 3333 v8::Handle<v8::Object> holder = info.Holder(); |
3348 TestObject* impl = V8TestObject::toNative(holder); | 3334 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3349 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3335 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3350 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3336 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3351 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3337 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3352 } | 3338 } |
3353 | 3339 |
3354 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3340 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3355 { | 3341 { |
3356 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3357 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3343 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3358 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); | 3344 TestObjectPythonV8Internal::reflectedIdAttributeSetter(v8Value, info); |
3359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3360 } | 3346 } |
3361 | 3347 |
3362 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 3348 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
3363 { | 3349 { |
3364 v8::Handle<v8::Object> holder = info.Holder(); | 3350 v8::Handle<v8::Object> holder = info.Holder(); |
3365 TestObject* impl = V8TestObject::toNative(holder); | 3351 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3366 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); | 3352 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); |
3367 } | 3353 } |
3368 | 3354 |
3369 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 3355 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
3370 { | 3356 { |
3371 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3372 TestObjectV8Internal::reflectedNameAttributeGetter(info); | 3358 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info); |
3373 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3374 } | 3360 } |
3375 | 3361 |
3376 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 3362 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
3377 { | 3363 { |
3378 v8::Handle<v8::Object> holder = info.Holder(); | 3364 v8::Handle<v8::Object> holder = info.Holder(); |
3379 TestObject* impl = V8TestObject::toNative(holder); | 3365 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3380 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3366 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3381 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3367 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3382 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3368 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3383 } | 3369 } |
3384 | 3370 |
3385 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3371 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3386 { | 3372 { |
3387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3388 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3374 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3389 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); | 3375 TestObjectPythonV8Internal::reflectedNameAttributeSetter(v8Value, info); |
3390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3391 } | 3377 } |
3392 | 3378 |
3393 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 3379 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
3394 { | 3380 { |
3395 v8::Handle<v8::Object> holder = info.Holder(); | 3381 v8::Handle<v8::Object> holder = info.Holder(); |
3396 TestObject* impl = V8TestObject::toNative(holder); | 3382 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3397 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); | 3383 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); |
3398 } | 3384 } |
3399 | 3385 |
3400 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 3386 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
3401 { | 3387 { |
3402 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3403 TestObjectV8Internal::reflectedClassAttributeGetter(info); | 3389 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info); |
3404 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3405 } | 3391 } |
3406 | 3392 |
3407 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 3393 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
3408 { | 3394 { |
3409 v8::Handle<v8::Object> holder = info.Holder(); | 3395 v8::Handle<v8::Object> holder = info.Holder(); |
3410 TestObject* impl = V8TestObject::toNative(holder); | 3396 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3411 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3397 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3412 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3398 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3413 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3399 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3414 } | 3400 } |
3415 | 3401 |
3416 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3402 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3417 { | 3403 { |
3418 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3419 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3405 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3420 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); | 3406 TestObjectPythonV8Internal::reflectedClassAttributeSetter(v8Value, info); |
3421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3422 } | 3408 } |
3423 | 3409 |
3424 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 3410 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
3425 { | 3411 { |
3426 v8::Handle<v8::Object> holder = info.Holder(); | 3412 v8::Handle<v8::Object> holder = info.Holder(); |
3427 TestObject* impl = V8TestObject::toNative(holder); | 3413 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3428 String v8Value = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute
Attr); | 3414 String v8Value = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute
Attr); |
3429 if (v8Value.isEmpty()) { | 3415 if (v8Value.isEmpty()) { |
3430 ; | 3416 ; |
3431 } else if (equalIgnoringCase(v8Value, "unique")) { | 3417 } else if (equalIgnoringCase(v8Value, "unique")) { |
3432 v8Value = "unique"; | 3418 v8Value = "unique"; |
3433 } else { | 3419 } else { |
3434 v8Value = ""; | 3420 v8Value = ""; |
3435 } | 3421 } |
3436 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3422 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3437 } | 3423 } |
3438 | 3424 |
3439 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3425 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3440 { | 3426 { |
3441 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3442 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 3428 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
3443 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3444 } | 3430 } |
3445 | 3431 |
3446 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 3432 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
3447 { | 3433 { |
3448 v8::Handle<v8::Object> holder = info.Holder(); | 3434 v8::Handle<v8::Object> holder = info.Holder(); |
3449 TestObject* impl = V8TestObject::toNative(holder); | 3435 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3450 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3436 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3451 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3437 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3452 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 3438 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
3453 } | 3439 } |
3454 | 3440 |
3455 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3441 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3456 { | 3442 { |
3457 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3458 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3444 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3459 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); | 3445 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value
, info); |
3460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3461 } | 3447 } |
3462 | 3448 |
3463 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 3449 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
3464 { | 3450 { |
3465 v8::Handle<v8::Object> holder = info.Holder(); | 3451 v8::Handle<v8::Object> holder = info.Holder(); |
3466 TestObject* impl = V8TestObject::toNative(holder); | 3452 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3467 String v8Value = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt
r); | 3453 String v8Value = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt
r); |
3468 if (v8Value.isEmpty()) { | 3454 if (v8Value.isEmpty()) { |
3469 ; | 3455 ; |
3470 } else if (equalIgnoringCase(v8Value, "Per")) { | 3456 } else if (equalIgnoringCase(v8Value, "Per")) { |
3471 v8Value = "Per"; | 3457 v8Value = "Per"; |
3472 } else if (equalIgnoringCase(v8Value, "Paal")) { | 3458 } else if (equalIgnoringCase(v8Value, "Paal")) { |
3473 v8Value = "Paal"; | 3459 v8Value = "Paal"; |
3474 } else if (equalIgnoringCase(v8Value, "Espen")) { | 3460 } else if (equalIgnoringCase(v8Value, "Espen")) { |
3475 v8Value = "Espen"; | 3461 v8Value = "Espen"; |
3476 } else { | 3462 } else { |
3477 v8Value = ""; | 3463 v8Value = ""; |
3478 } | 3464 } |
3479 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3465 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3480 } | 3466 } |
3481 | 3467 |
3482 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 3468 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
3483 { | 3469 { |
3484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3485 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 3471 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
3486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3487 } | 3473 } |
3488 | 3474 |
3489 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 3475 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
3490 { | 3476 { |
3491 v8::Handle<v8::Object> holder = info.Holder(); | 3477 v8::Handle<v8::Object> holder = info.Holder(); |
3492 TestObject* impl = V8TestObject::toNative(holder); | 3478 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3493 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3479 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3494 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3480 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3495 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 3481 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
3496 } | 3482 } |
3497 | 3483 |
3498 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3484 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3499 { | 3485 { |
3500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3501 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3487 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3502 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); | 3488 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, i
nfo); |
3503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3504 } | 3490 } |
3505 | 3491 |
3506 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3492 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3507 { | 3493 { |
3508 v8::Handle<v8::Object> holder = info.Holder(); | 3494 v8::Handle<v8::Object> holder = info.Holder(); |
3509 TestObject* impl = V8TestObject::toNative(holder); | 3495 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3510 String v8Value = impl->fastGetAttribute(HTMLNames::otherAttr); | 3496 String v8Value = impl->fastGetAttribute(HTMLNames::OtherAttr); |
3511 if (v8Value.isEmpty()) { | 3497 if (v8Value.isEmpty()) { |
3512 ; | 3498 ; |
3513 } else if (equalIgnoringCase(v8Value, "Value1")) { | 3499 } else if (equalIgnoringCase(v8Value, "Value1")) { |
3514 v8Value = "Value1"; | 3500 v8Value = "Value1"; |
3515 } else if (equalIgnoringCase(v8Value, "Value2")) { | 3501 } else if (equalIgnoringCase(v8Value, "Value2")) { |
3516 v8Value = "Value2"; | 3502 v8Value = "Value2"; |
3517 } else { | 3503 } else { |
3518 v8Value = ""; | 3504 v8Value = ""; |
3519 } | 3505 } |
3520 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3506 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3521 } | 3507 } |
3522 | 3508 |
3523 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3509 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3524 { | 3510 { |
3525 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3526 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); | 3512 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info)
; |
3527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3528 } | 3514 } |
3529 | 3515 |
3530 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 3516 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
3531 { | 3517 { |
3532 v8::Handle<v8::Object> holder = info.Holder(); | 3518 v8::Handle<v8::Object> holder = info.Holder(); |
3533 TestObject* impl = V8TestObject::toNative(holder); | 3519 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3534 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3520 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3535 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3521 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3536 impl->setAttribute(HTMLNames::otherAttr, cppValue); | 3522 impl->setAttribute(HTMLNames::OtherAttr, cppValue); |
3537 } | 3523 } |
3538 | 3524 |
3539 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3525 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3540 { | 3526 { |
3541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3542 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3528 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3543 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); | 3529 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Val
ue, info); |
3544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3545 } | 3531 } |
3546 | 3532 |
3547 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3533 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
3548 { | 3534 { |
3549 v8::Handle<v8::Object> holder = info.Holder(); | 3535 v8::Handle<v8::Object> holder = info.Holder(); |
3550 TestObject* impl = V8TestObject::toNative(holder); | 3536 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3551 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault
attributeAttr); | 3537 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault
attributeAttr); |
3552 if (v8Value.isEmpty()) { | 3538 if (v8Value.isEmpty()) { |
3553 v8Value = "rsa"; | 3539 v8Value = "rsa"; |
3554 } else if (equalIgnoringCase(v8Value, "rsa")) { | 3540 } else if (equalIgnoringCase(v8Value, "rsa")) { |
3555 v8Value = "rsa"; | 3541 v8Value = "rsa"; |
3556 } else if (equalIgnoringCase(v8Value, "dsa")) { | 3542 } else if (equalIgnoringCase(v8Value, "dsa")) { |
3557 v8Value = "dsa"; | 3543 v8Value = "dsa"; |
3558 } else { | 3544 } else { |
3559 v8Value = ""; | 3545 v8Value = ""; |
3560 } | 3546 } |
3561 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3547 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3562 } | 3548 } |
3563 | 3549 |
3564 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3550 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3565 { | 3551 { |
3566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3567 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); | 3553 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette
r(info); |
3568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3569 } | 3555 } |
3570 | 3556 |
3571 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3557 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3572 { | 3558 { |
3573 v8::Handle<v8::Object> holder = info.Holder(); | 3559 v8::Handle<v8::Object> holder = info.Holder(); |
3574 TestObject* impl = V8TestObject::toNative(holder); | 3560 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3575 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3561 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3576 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3562 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3577 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 3563 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
3578 } | 3564 } |
3579 | 3565 |
3580 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3566 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
3581 { | 3567 { |
3582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3583 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3569 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3584 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); | 3570 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette
r(v8Value, info); |
3585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3586 } | 3572 } |
3587 | 3573 |
3588 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 3574 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
3589 { | 3575 { |
3590 v8::Handle<v8::Object> holder = info.Holder(); | 3576 v8::Handle<v8::Object> holder = info.Holder(); |
3591 TestObject* impl = V8TestObject::toNative(holder); | 3577 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3592 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing
defaultattributeAttr); | 3578 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing
defaultattributeAttr); |
3593 if (v8Value.isEmpty()) { | 3579 if (v8Value.isEmpty()) { |
3594 v8Value = "auto"; | 3580 v8Value = "auto"; |
3595 } else if (equalIgnoringCase(v8Value, "ltr")) { | 3581 } else if (equalIgnoringCase(v8Value, "ltr")) { |
3596 v8Value = "ltr"; | 3582 v8Value = "ltr"; |
3597 } else if (equalIgnoringCase(v8Value, "rtl")) { | 3583 } else if (equalIgnoringCase(v8Value, "rtl")) { |
3598 v8Value = "rtl"; | 3584 v8Value = "rtl"; |
3599 } else if (equalIgnoringCase(v8Value, "auto")) { | 3585 } else if (equalIgnoringCase(v8Value, "auto")) { |
3600 v8Value = "auto"; | 3586 v8Value = "auto"; |
3601 } else { | 3587 } else { |
3602 v8Value = "ltr"; | 3588 v8Value = "ltr"; |
3603 } | 3589 } |
3604 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3590 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3605 } | 3591 } |
3606 | 3592 |
3607 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3593 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3608 { | 3594 { |
3609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3610 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); | 3596 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teGetter(info); |
3611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3612 } | 3598 } |
3613 | 3599 |
3614 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3600 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3615 { | 3601 { |
3616 v8::Handle<v8::Object> holder = info.Holder(); | 3602 v8::Handle<v8::Object> holder = info.Holder(); |
3617 TestObject* impl = V8TestObject::toNative(holder); | 3603 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3618 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3604 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3619 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3605 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3620 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 3606 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
3621 } | 3607 } |
3622 | 3608 |
3623 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 3609 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
3624 { | 3610 { |
3625 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3626 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3612 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3627 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); | 3613 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teSetter(v8Value, info); |
3628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3629 } | 3615 } |
3630 | 3616 |
3631 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 3617 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
3632 { | 3618 { |
3633 v8::Handle<v8::Object> holder = info.Holder(); | 3619 v8::Handle<v8::Object> holder = info.Holder(); |
3634 TestObject* impl = V8TestObject::toNative(holder); | 3620 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3635 String v8Value = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)
; | 3621 String v8Value = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)
; |
3636 if (v8Value.isNull()) { | 3622 if (v8Value.isNull()) { |
3637 ; | 3623 ; |
3638 } else if (v8Value.isEmpty()) { | 3624 } else if (v8Value.isEmpty()) { |
3639 v8Value = "anonymous"; | 3625 v8Value = "anonymous"; |
3640 } else if (equalIgnoringCase(v8Value, "anonymous")) { | 3626 } else if (equalIgnoringCase(v8Value, "anonymous")) { |
3641 v8Value = "anonymous"; | 3627 v8Value = "anonymous"; |
3642 } else if (equalIgnoringCase(v8Value, "use-credentials")) { | 3628 } else if (equalIgnoringCase(v8Value, "use-credentials")) { |
3643 v8Value = "use-credentials"; | 3629 v8Value = "use-credentials"; |
3644 } else { | 3630 } else { |
3645 v8Value = "anonymous"; | 3631 v8Value = "anonymous"; |
3646 } | 3632 } |
3647 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3633 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3648 } | 3634 } |
3649 | 3635 |
3650 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 3636 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
3651 { | 3637 { |
3652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3653 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); | 3639 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info); |
3654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3655 } | 3641 } |
3656 | 3642 |
3657 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 3643 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
3658 { | 3644 { |
3659 v8::Handle<v8::Object> holder = info.Holder(); | 3645 v8::Handle<v8::Object> holder = info.Holder(); |
3660 TestObject* impl = V8TestObject::toNative(holder); | 3646 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3661 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin
validattributeAttr); | 3647 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin
validattributeAttr); |
3662 if (v8Value.isNull()) { | 3648 if (v8Value.isNull()) { |
3663 v8Value = "missing"; | 3649 v8Value = "missing"; |
3664 } else if (v8Value.isEmpty()) { | 3650 } else if (v8Value.isEmpty()) { |
3665 v8Value = "empty"; | 3651 v8Value = "empty"; |
3666 } else if (equalIgnoringCase(v8Value, "empty")) { | 3652 } else if (equalIgnoringCase(v8Value, "empty")) { |
3667 v8Value = "empty"; | 3653 v8Value = "empty"; |
3668 } else if (equalIgnoringCase(v8Value, "missing")) { | 3654 } else if (equalIgnoringCase(v8Value, "missing")) { |
3669 v8Value = "missing"; | 3655 v8Value = "missing"; |
3670 } else if (equalIgnoringCase(v8Value, "invalid")) { | 3656 } else if (equalIgnoringCase(v8Value, "invalid")) { |
3671 v8Value = "invalid"; | 3657 v8Value = "invalid"; |
3672 } else if (equalIgnoringCase(v8Value, "a-normal")) { | 3658 } else if (equalIgnoringCase(v8Value, "a-normal")) { |
3673 v8Value = "a-normal"; | 3659 v8Value = "a-normal"; |
3674 } else { | 3660 } else { |
3675 v8Value = "invalid"; | 3661 v8Value = "invalid"; |
3676 } | 3662 } |
3677 v8SetReturnValueString(info, v8Value, info.GetIsolate()); | 3663 v8SetReturnValueString(info, v8Value, info.GetIsolate()); |
3678 } | 3664 } |
3679 | 3665 |
3680 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3666 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3681 { | 3667 { |
3682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3683 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter
(info); | 3669 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute
Getter(info); |
3684 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3685 } | 3671 } |
3686 | 3672 |
3687 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 3673 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
3688 { | 3674 { |
3689 v8::Handle<v8::Object> holder = info.Holder(); | 3675 v8::Handle<v8::Object> holder = info.Holder(); |
3690 TestObject* impl = V8TestObject::toNative(holder); | 3676 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3691 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); | 3677 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); |
3692 } | 3678 } |
3693 | 3679 |
3694 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3680 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3695 { | 3681 { |
3696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3697 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); | 3683 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); |
3698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3684 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3699 } | 3685 } |
3700 | 3686 |
3701 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 3687 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
3702 { | 3688 { |
3703 v8::Handle<v8::Object> holder = info.Holder(); | 3689 v8::Handle<v8::Object> holder = info.Holder(); |
3704 TestObject* impl = V8TestObject::toNative(holder); | 3690 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3705 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl); | 3691 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl); |
3706 } | 3692 } |
3707 | 3693 |
3708 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3694 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
3709 { | 3695 { |
3710 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3711 TestObjectV8Internal::locationReplaceableAttributeGetter(info); | 3697 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); |
3712 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3713 } | 3699 } |
3714 | 3700 |
3715 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 3701 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
3716 { | 3702 { |
3717 v8::Handle<v8::Object> holder = info.Holder(); | 3703 v8::Handle<v8::Object> holder = info.Holder(); |
3718 TestObject* proxyImpl = V8TestObject::toNative(holder); | 3704 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); |
3719 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); | 3705 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); |
3720 if (!impl) | 3706 if (!impl) |
3721 return; | 3707 return; |
3722 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3708 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3723 impl->setHref(cppValue); | 3709 impl->setHref(cppValue); |
3724 } | 3710 } |
3725 | 3711 |
3726 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3712 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3727 { | 3713 { |
3728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3714 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3729 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); | 3715 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(v8Value, info
); |
3730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3716 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3731 } | 3717 } |
3732 | 3718 |
3733 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3719 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3734 { | 3720 { |
3735 v8::Handle<v8::Object> holder = info.Holder(); | 3721 v8::Handle<v8::Object> holder = info.Holder(); |
3736 TestObject* impl = V8TestObject::toNative(holder); | 3722 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3737 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); | 3723 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
3738 } | 3724 } |
3739 | 3725 |
3740 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3726 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3741 { | 3727 { |
3742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3743 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); | 3729 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; |
3744 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3745 } | 3731 } |
3746 | 3732 |
3747 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 3733 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
3748 { | 3734 { |
3749 v8::Handle<v8::Object> holder = info.Holder(); | 3735 v8::Handle<v8::Object> holder = info.Holder(); |
3750 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); | 3736 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
3751 TestObject* impl = V8TestObject::toNative(holder); | 3737 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3752 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3738 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3753 impl->setRuntimeEnabledLongAttribute(cppValue); | 3739 impl->setRuntimeEnabledLongAttribute(cppValue); |
3754 } | 3740 } |
3755 | 3741 |
3756 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3742 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3757 { | 3743 { |
3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3759 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); | 3745 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Val
ue, info); |
3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3761 } | 3747 } |
3762 | 3748 |
3763 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3749 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
3764 { | 3750 { |
3765 v8::Handle<v8::Object> holder = info.Holder(); | 3751 v8::Handle<v8::Object> holder = info.Holder(); |
3766 TestObject* impl = V8TestObject::toNative(holder); | 3752 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3767 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); | 3753 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); |
3768 } | 3754 } |
3769 | 3755 |
3770 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3756 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3771 { | 3757 { |
3772 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3773 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); | 3759 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteGetter(info); |
3774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3775 } | 3761 } |
3776 | 3762 |
3777 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3763 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3778 { | 3764 { |
3779 v8::Handle<v8::Object> holder = info.Holder(); | 3765 v8::Handle<v8::Object> holder = info.Holder(); |
3780 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 3766 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
3781 TestObject* impl = V8TestObject::toNative(holder); | 3767 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3782 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3768 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3783 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); | 3769 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
3784 } | 3770 } |
3785 | 3771 |
3786 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 3772 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
3787 { | 3773 { |
3788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3789 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); | 3775 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteSetter(v8Value, info); |
3790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3791 } | 3777 } |
3792 | 3778 |
3793 #if ENABLE(CONDITION) | 3779 #if ENABLE(CONDITION) |
3794 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 3780 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
3795 { | 3781 { |
3796 v8::Handle<v8::Object> holder = info.Holder(); | 3782 v8::Handle<v8::Object> holder = info.Holder(); |
3797 TestObject* impl = V8TestObject::toNative(holder); | 3783 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3798 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); | 3784 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); |
3799 } | 3785 } |
3800 #endif // ENABLE(CONDITION) | 3786 #endif // ENABLE(CONDITION) |
3801 | 3787 |
3802 #if ENABLE(CONDITION) | 3788 #if ENABLE(CONDITION) |
3803 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3789 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3804 { | 3790 { |
3805 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3791 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3806 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter(
info); | 3792 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG
etter(info); |
3807 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3793 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3808 } | 3794 } |
3809 #endif // ENABLE(CONDITION) | 3795 #endif // ENABLE(CONDITION) |
3810 | 3796 |
3811 #if ENABLE(CONDITION) | 3797 #if ENABLE(CONDITION) |
3812 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3798 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3813 { | 3799 { |
3814 v8::Handle<v8::Object> holder = info.Holder(); | 3800 v8::Handle<v8::Object> holder = info.Holder(); |
3815 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 3801 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObjectPython", holder, info.GetIsolate()); |
3816 TestObject* impl = V8TestObject::toNative(holder); | 3802 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3817 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3803 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3818 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); | 3804 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
3819 } | 3805 } |
3820 #endif // ENABLE(CONDITION) | 3806 #endif // ENABLE(CONDITION) |
3821 | 3807 |
3822 #if ENABLE(CONDITION) | 3808 #if ENABLE(CONDITION) |
3823 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 3809 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
3824 { | 3810 { |
3825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3826 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 3812 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); |
3827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3828 } | 3814 } |
3829 #endif // ENABLE(CONDITION) | 3815 #endif // ENABLE(CONDITION) |
3830 | 3816 |
3831 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(const v8::PropertyCallbackInfo<v8::Value>& info) | 3817 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(const v8::PropertyCallbackInfo<v8::Value>& info) |
3832 { | 3818 { |
3833 v8::Handle<v8::Object> holder = info.Holder(); | 3819 v8::Handle<v8::Object> holder = info.Holder(); |
3834 TestObject* impl = V8TestObject::toNative(holder); | 3820 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3835 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS
tringAttribute(), info.GetIsolate()); | 3821 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS
tringAttribute(), info.GetIsolate()); |
3836 } | 3822 } |
3837 | 3823 |
3838 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf
o) | 3824 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
3839 { | 3825 { |
3840 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3841 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); | 3827 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeGetter(info); |
3842 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3843 } | 3829 } |
3844 | 3830 |
3845 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3831 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3846 { | 3832 { |
3847 v8::Handle<v8::Object> holder = info.Holder(); | 3833 v8::Handle<v8::Object> holder = info.Holder(); |
3848 TestObject* impl = V8TestObject::toNative(holder); | 3834 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3849 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3835 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3850 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 3836 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
3851 } | 3837 } |
3852 | 3838 |
3853 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 3839 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
3854 { | 3840 { |
3855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3856 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); | 3842 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeSetter(v8Value, info); |
3857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3858 } | 3844 } |
3859 | 3845 |
3860 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 3846 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
3861 { | 3847 { |
3862 v8::Handle<v8::Object> holder = info.Holder(); | 3848 v8::Handle<v8::Object> holder = info.Holder(); |
3863 TestObject* impl = V8TestObject::toNative(holder); | 3849 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3864 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); | 3850 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
3865 } | 3851 } |
3866 | 3852 |
3867 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3853 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3868 { | 3854 { |
3869 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3870 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); | 3856 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt
ributeGetter(info); |
3871 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3872 } | 3858 } |
3873 | 3859 |
3874 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3860 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3875 { | 3861 { |
3876 v8::Handle<v8::Object> holder = info.Holder(); | 3862 v8::Handle<v8::Object> holder = info.Holder(); |
3877 TestObject* impl = V8TestObject::toNative(holder); | 3863 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3878 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3864 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
3879 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 3865 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
3880 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal
ue); | 3866 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal
ue); |
3881 } | 3867 } |
3882 | 3868 |
3883 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 3869 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
3884 { | 3870 { |
3885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3886 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); | 3872 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt
ributeSetter(v8Value, info); |
3887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3888 } | 3874 } |
3889 | 3875 |
3890 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 3876 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
3891 { | 3877 { |
3892 v8::Handle<v8::Object> holder = info.Holder(); | 3878 v8::Handle<v8::Object> holder = info.Holder(); |
3893 TestObject* impl = V8TestObject::toNative(holder); | 3879 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3894 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute()); | 3880 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute()); |
3895 } | 3881 } |
3896 | 3882 |
3897 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3883 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3898 { | 3884 { |
3899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3900 TestObjectV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(info); | 3886 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(
info); |
3901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3902 } | 3888 } |
3903 | 3889 |
3904 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 3890 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
3905 { | 3891 { |
3906 v8::Handle<v8::Object> holder = info.Holder(); | 3892 v8::Handle<v8::Object> holder = info.Holder(); |
3907 TestObject* impl = V8TestObject::toNative(holder); | 3893 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3908 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()))
; | 3894 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()))
; |
3909 impl->setStrictTypeCheckingFloatAttribute(cppValue); | 3895 impl->setStrictTypeCheckingFloatAttribute(cppValue); |
3910 } | 3896 } |
3911 | 3897 |
3912 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 3898 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
3913 { | 3899 { |
3914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3915 TestObjectV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(v8Valu
e, info); | 3901 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
v8Value, info); |
3916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3917 } | 3903 } |
3918 | 3904 |
3919 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 3905 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
3920 { | 3906 { |
3921 v8::Handle<v8::Object> holder = info.Holder(); | 3907 v8::Handle<v8::Object> holder = info.Holder(); |
3922 TestObject* impl = V8TestObject::toNative(holder); | 3908 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3923 v8SetReturnValueFast(info, WTF::getPtr(impl->strictTypeCheckingTestInterface
Attribute()), impl); | 3909 v8SetReturnValueFast(info, WTF::getPtr(impl->strictTypeCheckingTestInterface
Attribute()), impl); |
3924 } | 3910 } |
3925 | 3911 |
3926 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3912 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3927 { | 3913 { |
3928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3929 TestObjectV8Internal::strictTypeCheckingTestInterfaceAttributeAttributeGette
r(info); | 3915 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); |
3930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3931 } | 3917 } |
3932 | 3918 |
3933 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3919 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3934 { | 3920 { |
3935 v8::Handle<v8::Object> holder = info.Holder(); | 3921 v8::Handle<v8::Object> holder = info.Holder(); |
3936 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec
kingTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); | 3922 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec
kingTestInterfaceAttribute", "TestObjectPython", holder, info.GetIsolate()); |
3937 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in
fo.GetIsolate())) { | 3923 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in
fo.GetIsolate())) { |
3938 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 3924 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
3939 exceptionState.throwIfNeeded(); | 3925 exceptionState.throwIfNeeded(); |
3940 return; | 3926 return; |
3941 } | 3927 } |
3942 TestObject* impl = V8TestObject::toNative(holder); | 3928 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3943 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 3929 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), v8Value)); |
3944 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); | 3930 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); |
3945 } | 3931 } |
3946 | 3932 |
3947 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 3933 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
3948 { | 3934 { |
3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3935 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3950 TestObjectV8Internal::strictTypeCheckingTestInterfaceAttributeAttributeSette
r(v8Value, info); | 3936 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eSetter(v8Value, info); |
3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3937 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3952 } | 3938 } |
3953 | 3939 |
3954 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 3940 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
3955 { | 3941 { |
3956 v8::Handle<v8::Object> holder = info.Holder(); | 3942 v8::Handle<v8::Object> holder = info.Holder(); |
3957 TestObject* impl = V8TestObject::toNative(holder); | 3943 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3958 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); | 3944 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); |
3959 } | 3945 } |
3960 | 3946 |
3961 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3947 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3962 { | 3948 { |
3963 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3964 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); | 3950 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet
ter(info); |
3965 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3966 } | 3952 } |
3967 | 3953 |
3968 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3954 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3969 { | 3955 { |
3970 v8::Handle<v8::Object> holder = info.Holder(); | 3956 v8::Handle<v8::Object> holder = info.Holder(); |
3971 TestObject* impl = V8TestObject::toNative(holder); | 3957 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3972 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, v8Value); | 3958 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, v8Value); |
3973 impl->setTreatNullAsNullStringStringAttribute(cppValue); | 3959 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
3974 } | 3960 } |
3975 | 3961 |
3976 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 3962 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
3977 { | 3963 { |
3978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3979 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); | 3965 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet
ter(v8Value, info); |
3980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3981 } | 3967 } |
3982 | 3968 |
3983 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3969 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
3984 { | 3970 { |
3985 v8::Handle<v8::Object> holder = info.Holder(); | 3971 v8::Handle<v8::Object> holder = info.Holder(); |
3986 TestObject* impl = V8TestObject::toNative(holder); | 3972 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3987 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); | 3973 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
3988 } | 3974 } |
3989 | 3975 |
3990 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3976 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3991 { | 3977 { |
3992 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3993 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); | 3979 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteGetter(info); |
3994 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3995 } | 3981 } |
3996 | 3982 |
3997 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3983 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3998 { | 3984 { |
3999 v8::Handle<v8::Object> holder = info.Holder(); | 3985 v8::Handle<v8::Object> holder = info.Holder(); |
4000 TestObject* impl = V8TestObject::toNative(holder); | 3986 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4001 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3987 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
4002 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 3988 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
4003 } | 3989 } |
4004 | 3990 |
4005 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 3991 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4006 { | 3992 { |
4007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4008 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); | 3994 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteSetter(v8Value, info); |
4009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4010 } | 3996 } |
4011 | 3997 |
4012 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3998 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4013 { | 3999 { |
4014 v8::Handle<v8::Object> holder = info.Holder(); | 4000 v8::Handle<v8::Object> holder = info.Holder(); |
4015 TestObject* impl = V8TestObject::toNative(holder); | 4001 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4016 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); | 4002 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
4017 } | 4003 } |
4018 | 4004 |
4019 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4005 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4020 { | 4006 { |
4021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4022 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); | 4008 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
4023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4024 } | 4010 } |
4025 | 4011 |
4026 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4012 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4027 { | 4013 { |
4028 v8::Handle<v8::Object> holder = info.Holder(); | 4014 v8::Handle<v8::Object> holder = info.Holder(); |
4029 TestObject* impl = V8TestObject::toNative(holder); | 4015 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4030 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4016 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
4031 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4017 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4032 } | 4018 } |
4033 | 4019 |
4034 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4020 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
4035 { | 4021 { |
4036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4022 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4037 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); | 4023 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); |
4038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4024 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4039 } | 4025 } |
4040 | 4026 |
4041 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 4027 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
4042 { | 4028 { |
4043 v8::Handle<v8::Object> holder = info.Holder(); | 4029 v8::Handle<v8::Object> holder = info.Holder(); |
4044 TestObject* impl = V8TestObject::toNative(holder); | 4030 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4045 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); | 4031 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); |
4046 } | 4032 } |
4047 | 4033 |
4048 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4034 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4049 { | 4035 { |
4050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4051 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4037 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); |
4052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4053 } | 4039 } |
4054 | 4040 |
4055 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4041 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4056 { | 4042 { |
4057 v8::Handle<v8::Object> holder = info.Holder(); | 4043 v8::Handle<v8::Object> holder = info.Holder(); |
4058 TestObject* impl = V8TestObject::toNative(holder); | 4044 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4059 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4045 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
4060 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4046 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4061 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 4047 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
4062 } | 4048 } |
4063 | 4049 |
4064 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4050 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4065 { | 4051 { |
4066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4067 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4053 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4068 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4054 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(v8Value, info)
; |
4069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4070 } | 4056 } |
4071 | 4057 |
4072 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 4058 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
4073 { | 4059 { |
4074 v8::Handle<v8::Object> holder = info.Holder(); | 4060 v8::Handle<v8::Object> holder = info.Holder(); |
4075 TestObject* impl = V8TestObject::toNative(holder); | 4061 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4076 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr
ibuteAttr), info.GetIsolate()); | 4062 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::ReflectUrlAttr
ibuteAttr), info.GetIsolate()); |
4077 } | 4063 } |
4078 | 4064 |
4079 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4065 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4080 { | 4066 { |
4081 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4082 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4068 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); |
4083 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4084 } | 4070 } |
4085 | 4071 |
4086 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4072 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4087 { | 4073 { |
4088 v8::Handle<v8::Object> holder = info.Holder(); | 4074 v8::Handle<v8::Object> holder = info.Holder(); |
4089 TestObject* impl = V8TestObject::toNative(holder); | 4075 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4090 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4076 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
4091 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4077 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4092 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); | 4078 impl->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue); |
4093 } | 4079 } |
4094 | 4080 |
4095 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4081 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4096 { | 4082 { |
4097 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4098 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4084 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4099 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4085 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(v8Value, info)
; |
4100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4101 } | 4087 } |
4102 | 4088 |
4103 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 4089 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) |
4104 { | 4090 { |
4105 v8::Handle<v8::Object> holder = V8TestObject::findInstanceInPrototypeChain(i
nfo.This(), info.GetIsolate()); | 4091 v8::Handle<v8::Object> holder = V8TestObjectPython::findInstanceInPrototypeC
hain(info.This(), info.GetIsolate()); |
4106 if (holder.IsEmpty()) | 4092 if (holder.IsEmpty()) |
4107 return; | 4093 return; |
4108 TestObject* impl = V8TestObject::toNative(holder); | 4094 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4109 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); | 4095 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); |
4110 } | 4096 } |
4111 | 4097 |
4112 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4098 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4113 { | 4099 { |
4114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4115 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); | 4101 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info); |
4116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4117 } | 4103 } |
4118 | 4104 |
4119 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 4105 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
4120 { | 4106 { |
4121 v8::Handle<v8::Object> holder = info.Holder(); | 4107 v8::Handle<v8::Object> holder = info.Holder(); |
4122 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 4108 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObjectPython", holder, info.GetIsolate()); |
4123 TestObject* impl = V8TestObject::toNative(holder); | 4109 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4124 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 4110 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
4125 impl->setUnforgeableLongAttribute(cppValue); | 4111 impl->setUnforgeableLongAttribute(cppValue); |
4126 } | 4112 } |
4127 | 4113 |
4128 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4114 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4129 { | 4115 { |
4130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4131 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; | 4117 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(v8Value,
info); |
4132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4133 } | 4119 } |
4134 | 4120 |
4135 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 4121 static void anotherStringAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
4136 { | 4122 { |
4137 v8::Handle<v8::Object> holder = info.Holder(); | 4123 v8::Handle<v8::Object> holder = info.Holder(); |
4138 TestObject* impl = V8TestObject::toNative(holder); | 4124 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4139 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 4125 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::ReflectUrlAtt
ributeAsAStringAttr), info.GetIsolate()); |
4140 } | 4126 } |
4141 | 4127 |
4142 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 4128 static void anotherStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
4143 { | 4129 { |
4144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4145 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); | 4131 TestObjectPythonV8Internal::anotherStringAttributeAttributeGetter(info); |
4146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4147 } | 4133 } |
4148 | 4134 |
4149 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 4135 static void anotherStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
4150 { | 4136 { |
4151 v8::Handle<v8::Object> holder = info.Holder(); | 4137 v8::Handle<v8::Object> holder = info.Holder(); |
4152 TestObject* impl = V8TestObject::toNative(holder); | 4138 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4153 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 4139 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
4154 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); | 4140 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 4141 impl->setAttribute(HTMLNames::ReflectUrlAttributeAsAStringAttr, cppValue); |
4155 } | 4142 } |
4156 | 4143 |
4157 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4144 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4158 { | 4145 { |
4159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4160 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); | 4147 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 4148 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(v8Value, i
nfo); |
| 4149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4150 } |
| 4151 |
| 4152 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 4153 { |
| 4154 v8::Handle<v8::Object> holder = info.Holder(); |
| 4155 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
| 4156 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfacePythonAttribute())
, impl); |
| 4157 } |
| 4158 |
| 4159 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4160 { |
| 4161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 4162 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info
); |
| 4163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4164 } |
| 4165 |
| 4166 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
| 4167 { |
| 4168 v8::Handle<v8::Object> holder = info.Holder(); |
| 4169 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
| 4170 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac
ePython::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); |
| 4171 impl->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); |
| 4172 } |
| 4173 |
| 4174 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4175 { |
| 4176 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 4177 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(v8Va
lue, info); |
4161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4178 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4162 } | 4179 } |
4163 | 4180 |
4164 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4181 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4165 { | 4182 { |
4166 v8::Handle<v8::Object> holder = info.Holder(); | 4183 v8::Handle<v8::Object> holder = info.Holder(); |
4167 TestObject* impl = V8TestObject::toNative(holder); | 4184 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4168 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedAttribute()), impl); | 4185 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedAttribute()), impl); |
4169 } | 4186 } |
4170 | 4187 |
4171 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4188 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4172 { | 4189 { |
4173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4174 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG
etter(info); | 4191 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteGetter(info); |
4175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4176 } | 4193 } |
4177 | 4194 |
4178 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4195 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4179 { | 4196 { |
4180 v8::Handle<v8::Object> holder = info.Holder(); | 4197 v8::Handle<v8::Object> holder = info.Holder(); |
4181 TestObject* impl = V8TestObject::toNative(holder); | 4198 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4182 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); | 4199 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); |
4183 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue))
; | 4200 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue))
; |
4184 } | 4201 } |
4185 | 4202 |
4186 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4203 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4187 { | 4204 { |
4188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4205 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4189 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS
etter(v8Value, info); | 4206 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteSetter(v8Value, info); |
4190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4191 } | 4208 } |
4192 | 4209 |
4193 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 4210 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
4194 { | 4211 { |
4195 v8::Handle<v8::Object> holder = info.Holder(); | 4212 v8::Handle<v8::Object> holder = info.Holder(); |
4196 TestObject* impl = V8TestObject::toNative(holder); | 4213 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4197 bool isNull = false; | 4214 bool isNull = false; |
4198 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> v8Value = impl->test
InterfaceWillBeGarbageCollectedOrNullAttribute(isNull); | 4215 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> v8Value = impl->test
InterfaceWillBeGarbageCollectedOrNullAttribute(isNull); |
4199 if (isNull) { | 4216 if (isNull) { |
4200 v8SetReturnValueNull(info); | 4217 v8SetReturnValueNull(info); |
4201 return; | 4218 return; |
4202 } | 4219 } |
4203 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); | 4220 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl); |
4204 } | 4221 } |
4205 | 4222 |
4206 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4223 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4207 { | 4224 { |
4208 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4209 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteGetter(info); | 4226 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu
teAttributeGetter(info); |
4210 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4211 } | 4228 } |
4212 | 4229 |
4213 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4230 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4214 { | 4231 { |
4215 v8::Handle<v8::Object> holder = info.Holder(); | 4232 v8::Handle<v8::Object> holder = info.Holder(); |
4216 TestObject* impl = V8TestObject::toNative(holder); | 4233 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
4217 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); | 4234 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); |
4218 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV
alue)); | 4235 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV
alue)); |
4219 } | 4236 } |
4220 | 4237 |
4221 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 4238 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
4222 { | 4239 { |
4223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4224 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteSetter(v8Value, info); | 4241 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu
teAttributeSetter(v8Value, info); |
4225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4226 } | 4243 } |
4227 | 4244 |
4228 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 4245 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
4229 { | 4246 { |
4230 v8::Handle<v8::Value> data = info.Data(); | 4247 v8::Handle<v8::Value> data = info.Data(); |
4231 ASSERT(data->IsExternal()); | 4248 ASSERT(data->IsExternal()); |
4232 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 4249 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
4233 if (!perContextData) | 4250 if (!perContextData) |
4234 return; | 4251 return; |
4235 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 4252 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
4236 } | 4253 } |
4237 | 4254 |
4238 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8::
Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) | 4255 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4239 { | |
4240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | |
4241 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::deprecatedTestInterfaceEmptyConstructorAttribute); | |
4242 TestObjectV8Internal::TestObjectConstructorGetter(property, info); | |
4243 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
4244 } | |
4245 | |
4246 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo
rGetterCallback(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v
8::Value>& info) | |
4247 { | |
4248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | |
4249 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Fe
atureName); | |
4250 TestObjectV8Internal::TestObjectConstructorGetter(property, info); | |
4251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
4252 } | |
4253 | |
4254 static void TestObjectReplaceableAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | |
4255 { | 4256 { |
4256 info.This()->ForceSet(name, v8Value); | 4257 info.This()->ForceSet(name, v8Value); |
4257 } | 4258 } |
4258 | 4259 |
4259 static void TestObjectReplaceableAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4260 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
4260 { | 4261 { |
4261 TestObjectV8Internal::TestObjectReplaceableAttributeSetter(name, v8Value, in
fo); | 4262 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
v8Value, info); |
4262 } | 4263 } |
4263 | 4264 |
4264 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4265 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4265 { | 4266 { |
4266 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4267 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4267 impl->voidMethod(); | 4268 impl->voidMethod(); |
4268 } | 4269 } |
4269 | 4270 |
4270 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4271 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4271 { | 4272 { |
4272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4273 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4273 TestObjectV8Internal::voidMethodMethod(info); | 4274 TestObjectPythonV8Internal::voidMethodMethod(info); |
4274 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4275 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4275 } | 4276 } |
4276 | 4277 |
4277 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4278 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4278 { | 4279 { |
4279 TestObject::staticVoidMethod(); | 4280 TestObjectPython::staticVoidMethod(); |
4280 } | 4281 } |
4281 | 4282 |
4282 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4283 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4283 { | 4284 { |
4284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4285 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4285 TestObjectV8Internal::staticVoidMethodMethod(info); | 4286 TestObjectPythonV8Internal::staticVoidMethodMethod(info); |
4286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4287 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4287 } | 4288 } |
4288 | 4289 |
4289 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4290 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4290 { | 4291 { |
4291 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4292 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4292 v8SetReturnValue(info, v8DateOrNull(impl->dateMethod(), info.GetIsolate())); | 4293 v8SetReturnValue(info, v8DateOrNull(impl->dateMethod(), info.GetIsolate())); |
4293 } | 4294 } |
4294 | 4295 |
4295 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4296 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4296 { | 4297 { |
4297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4298 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4298 TestObjectV8Internal::dateMethodMethod(info); | 4299 TestObjectPythonV8Internal::dateMethodMethod(info); |
4299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4300 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4300 } | 4301 } |
4301 | 4302 |
4302 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4303 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4303 { | 4304 { |
4304 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4305 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4305 v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate()); | 4306 v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate()); |
4306 } | 4307 } |
4307 | 4308 |
4308 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4309 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4309 { | 4310 { |
4310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4311 TestObjectV8Internal::stringMethodMethod(info); | 4312 TestObjectPythonV8Internal::stringMethodMethod(info); |
4312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4313 } | 4314 } |
4314 | 4315 |
4315 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4316 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4316 { | 4317 { |
4317 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4318 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4318 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod(
))); | 4319 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod(
))); |
4319 } | 4320 } |
4320 | 4321 |
4321 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4322 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4322 { | 4323 { |
4323 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4324 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info); | 4325 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); |
4325 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4326 } | 4327 } |
4327 | 4328 |
4328 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4329 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4329 { | 4330 { |
4330 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4331 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4331 v8SetReturnValueBool(info, impl->booleanMethod()); | 4332 v8SetReturnValueBool(info, impl->booleanMethod()); |
4332 } | 4333 } |
4333 | 4334 |
4334 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4335 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4335 { | 4336 { |
4336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4337 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4337 TestObjectV8Internal::booleanMethodMethod(info); | 4338 TestObjectPythonV8Internal::booleanMethodMethod(info); |
4338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4339 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4339 } | 4340 } |
4340 | 4341 |
4341 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4342 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4342 { | 4343 { |
4343 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4344 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4344 v8SetReturnValueInt(info, impl->byteMethod()); | 4345 v8SetReturnValueInt(info, impl->byteMethod()); |
4345 } | 4346 } |
4346 | 4347 |
4347 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4348 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4348 { | 4349 { |
4349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4350 TestObjectV8Internal::byteMethodMethod(info); | 4351 TestObjectPythonV8Internal::byteMethodMethod(info); |
4351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4352 } | 4353 } |
4353 | 4354 |
4354 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4355 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4355 { | 4356 { |
4356 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4357 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4357 v8SetReturnValue(info, impl->doubleMethod()); | 4358 v8SetReturnValue(info, impl->doubleMethod()); |
4358 } | 4359 } |
4359 | 4360 |
4360 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4361 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4361 { | 4362 { |
4362 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4363 TestObjectV8Internal::doubleMethodMethod(info); | 4364 TestObjectPythonV8Internal::doubleMethodMethod(info); |
4364 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4365 } | 4366 } |
4366 | 4367 |
4367 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4368 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4368 { | 4369 { |
4369 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4370 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4370 v8SetReturnValue(info, impl->floatMethod()); | 4371 v8SetReturnValue(info, impl->floatMethod()); |
4371 } | 4372 } |
4372 | 4373 |
4373 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4374 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4374 { | 4375 { |
4375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4376 TestObjectV8Internal::floatMethodMethod(info); | 4377 TestObjectPythonV8Internal::floatMethodMethod(info); |
4377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4378 } | 4379 } |
4379 | 4380 |
4380 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4381 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4381 { | 4382 { |
4382 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4383 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4383 v8SetReturnValueInt(info, impl->longMethod()); | 4384 v8SetReturnValueInt(info, impl->longMethod()); |
4384 } | 4385 } |
4385 | 4386 |
4386 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4387 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4387 { | 4388 { |
4388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4389 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4389 TestObjectV8Internal::longMethodMethod(info); | 4390 TestObjectPythonV8Internal::longMethodMethod(info); |
4390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4391 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4391 } | 4392 } |
4392 | 4393 |
4393 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) | 4394 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
4394 { | 4395 { |
4395 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4396 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4396 v8SetReturnValue(info, static_cast<double>(impl->longLongMethod())); | 4397 v8SetReturnValue(info, static_cast<double>(impl->longLongMethod())); |
4397 } | 4398 } |
4398 | 4399 |
4399 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4400 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4400 { | 4401 { |
4401 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4402 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4402 TestObjectV8Internal::longLongMethodMethod(info); | 4403 TestObjectPythonV8Internal::longLongMethodMethod(info); |
4403 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4404 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4404 } | 4405 } |
4405 | 4406 |
4406 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4407 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4407 { | 4408 { |
4408 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4409 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4409 v8SetReturnValueUnsigned(info, impl->octetMethod()); | 4410 v8SetReturnValueUnsigned(info, impl->octetMethod()); |
4410 } | 4411 } |
4411 | 4412 |
4412 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4413 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4413 { | 4414 { |
4414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4415 TestObjectV8Internal::octetMethodMethod(info); | 4416 TestObjectPythonV8Internal::octetMethodMethod(info); |
4416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4417 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4417 } | 4418 } |
4418 | 4419 |
4419 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4420 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4420 { | 4421 { |
4421 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4422 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4422 v8SetReturnValueInt(info, impl->shortMethod()); | 4423 v8SetReturnValueInt(info, impl->shortMethod()); |
4423 } | 4424 } |
4424 | 4425 |
4425 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4426 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4426 { | 4427 { |
4427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4428 TestObjectV8Internal::shortMethodMethod(info); | 4429 TestObjectPythonV8Internal::shortMethodMethod(info); |
4429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4430 } | 4431 } |
4431 | 4432 |
4432 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4433 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4433 { | 4434 { |
4434 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4435 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4435 v8SetReturnValueUnsigned(info, impl->unsignedLongMethod()); | 4436 v8SetReturnValueUnsigned(info, impl->unsignedLongMethod()); |
4436 } | 4437 } |
4437 | 4438 |
4438 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4439 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4439 { | 4440 { |
4440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4441 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4441 TestObjectV8Internal::unsignedLongMethodMethod(info); | 4442 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); |
4442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4443 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4443 } | 4444 } |
4444 | 4445 |
4445 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4446 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4446 { | 4447 { |
4447 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4448 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4448 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod())); | 4449 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod())); |
4449 } | 4450 } |
4450 | 4451 |
4451 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 4452 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
4452 { | 4453 { |
4453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4454 TestObjectV8Internal::unsignedLongLongMethodMethod(info); | 4455 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); |
4455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4456 } | 4457 } |
4457 | 4458 |
4458 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4459 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4459 { | 4460 { |
4460 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4461 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4461 v8SetReturnValueUnsigned(info, impl->unsignedShortMethod()); | 4462 v8SetReturnValueUnsigned(info, impl->unsignedShortMethod()); |
4462 } | 4463 } |
4463 | 4464 |
4464 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4465 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4465 { | 4466 { |
4466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4467 TestObjectV8Internal::unsignedShortMethodMethod(info); | 4468 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); |
4468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4469 } | 4470 } |
4470 | 4471 |
4471 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4472 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4472 { | 4473 { |
4473 if (UNLIKELY(info.Length() < 1)) { | 4474 if (UNLIKELY(info.Length() < 1)) { |
4474 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 4475 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
4475 return; | 4476 return; |
4476 } | 4477 } |
4477 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4478 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4478 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0])); | 4479 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0])); |
4479 impl->voidMethodDateArg(dateArg); | 4480 impl->voidMethodDateArg(dateArg); |
4480 } | 4481 } |
4481 | 4482 |
4482 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4483 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4483 { | 4484 { |
4484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4485 TestObjectV8Internal::voidMethodDateArgMethod(info); | 4486 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); |
4486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4487 } | 4488 } |
4488 | 4489 |
4489 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4490 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4490 { | 4491 { |
4491 if (UNLIKELY(info.Length() < 1)) { | 4492 if (UNLIKELY(info.Length() < 1)) { |
4492 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Ge
tIsolate()); | 4493 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
4493 return; | 4494 return; |
4494 } | 4495 } |
4495 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4496 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4496 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 4497 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
4497 impl->voidMethodStringArg(stringArg); | 4498 impl->voidMethodStringArg(stringArg); |
4498 } | 4499 } |
4499 | 4500 |
4500 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4501 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4501 { | 4502 { |
4502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4503 TestObjectV8Internal::voidMethodStringArgMethod(info); | 4504 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); |
4504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
4505 } | |
4506 | |
4507 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | |
4508 { | |
4509 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | |
4510 if (UNLIKELY(info.Length() < 1)) { | |
4511 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | |
4512 exceptionState.throwIfNeeded(); | |
4513 return; | |
4514 } | |
4515 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
4516 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, domTimeStampArg, toUInt64(info
[0], exceptionState), exceptionState); | |
4517 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | |
4518 } | |
4519 | |
4520 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | |
4521 { | |
4522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
4523 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | |
4524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4505 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4525 } | 4506 } |
4526 | 4507 |
4527 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4508 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4528 { | 4509 { |
4529 if (UNLIKELY(info.Length() < 1)) { | 4510 if (UNLIKELY(info.Length() < 1)) { |
4530 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.G
etIsolate()); | 4511 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
4531 return; | 4512 return; |
4532 } | 4513 } |
4533 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4514 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4534 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); | 4515 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); |
4535 impl->voidMethodBooleanArg(booleanArg); | 4516 impl->voidMethodBooleanArg(booleanArg); |
4536 } | 4517 } |
4537 | 4518 |
4538 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4519 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4539 { | 4520 { |
4540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4541 TestObjectV8Internal::voidMethodBooleanArgMethod(info); | 4522 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); |
4542 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4523 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4543 } | 4524 } |
4544 | 4525 |
4545 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4526 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4546 { | 4527 { |
4547 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 4528 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4548 if (UNLIKELY(info.Length() < 1)) { | 4529 if (UNLIKELY(info.Length() < 1)) { |
4549 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4530 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4550 exceptionState.throwIfNeeded(); | 4531 exceptionState.throwIfNeeded(); |
4551 return; | 4532 return; |
4552 } | 4533 } |
4553 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4534 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4554 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc
eptionState); | 4535 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc
eptionState); |
4555 impl->voidMethodByteArg(byteArg); | 4536 impl->voidMethodByteArg(byteArg); |
4556 } | 4537 } |
4557 | 4538 |
4558 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4539 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4559 { | 4540 { |
4560 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4561 TestObjectV8Internal::voidMethodByteArgMethod(info); | 4542 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); |
4562 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4563 } | 4544 } |
4564 | 4545 |
4565 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4546 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4566 { | 4547 { |
4567 if (UNLIKELY(info.Length() < 1)) { | 4548 if (UNLIKELY(info.Length() < 1)) { |
4568 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Ge
tIsolate()); | 4549 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
4569 return; | 4550 return; |
4570 } | 4551 } |
4571 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4552 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4572 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); | 4553 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); |
4573 impl->voidMethodDoubleArg(doubleArg); | 4554 impl->voidMethodDoubleArg(doubleArg); |
4574 } | 4555 } |
4575 | 4556 |
4576 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4557 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4577 { | 4558 { |
4578 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4579 TestObjectV8Internal::voidMethodDoubleArgMethod(info); | 4560 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); |
4580 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4581 } | 4562 } |
4582 | 4563 |
4583 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4564 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4584 { | 4565 { |
4585 if (UNLIKELY(info.Length() < 1)) { | 4566 if (UNLIKELY(info.Length() < 1)) { |
4586 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Get
Isolate()); | 4567 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
4587 return; | 4568 return; |
4588 } | 4569 } |
4589 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4570 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4590 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; | 4571 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; |
4591 impl->voidMethodFloatArg(floatArg); | 4572 impl->voidMethodFloatArg(floatArg); |
4592 } | 4573 } |
4593 | 4574 |
4594 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4575 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4595 { | 4576 { |
4596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4577 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4597 TestObjectV8Internal::voidMethodFloatArgMethod(info); | 4578 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); |
4598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4579 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4599 } | 4580 } |
4600 | 4581 |
4601 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4582 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4602 { | 4583 { |
4603 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4584 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4604 if (UNLIKELY(info.Length() < 1)) { | 4585 if (UNLIKELY(info.Length() < 1)) { |
4605 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4586 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4606 exceptionState.throwIfNeeded(); | 4587 exceptionState.throwIfNeeded(); |
4607 return; | 4588 return; |
4608 } | 4589 } |
4609 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4590 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4610 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4591 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4611 impl->voidMethodLongArg(longArg); | 4592 impl->voidMethodLongArg(longArg); |
4612 } | 4593 } |
4613 | 4594 |
4614 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4595 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4615 { | 4596 { |
4616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4617 TestObjectV8Internal::voidMethodLongArgMethod(info); | 4598 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); |
4618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4619 } | 4600 } |
4620 | 4601 |
4621 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4602 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4622 { | 4603 { |
4623 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4604 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4624 if (UNLIKELY(info.Length() < 1)) { | 4605 if (UNLIKELY(info.Length() < 1)) { |
4625 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4606 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4626 exceptionState.throwIfNeeded(); | 4607 exceptionState.throwIfNeeded(); |
4627 return; | 4608 return; |
4628 } | 4609 } |
4629 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4610 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4630 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception
State), exceptionState); | 4611 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception
State), exceptionState); |
4631 impl->voidMethodLongLongArg(longLongArg); | 4612 impl->voidMethodLongLongArg(longLongArg); |
4632 } | 4613 } |
4633 | 4614 |
4634 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4615 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4635 { | 4616 { |
4636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4637 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 4618 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); |
4638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4639 } | 4620 } |
4640 | 4621 |
4641 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4622 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4642 { | 4623 { |
4643 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 4624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4644 if (UNLIKELY(info.Length() < 1)) { | 4625 if (UNLIKELY(info.Length() < 1)) { |
4645 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4626 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4646 exceptionState.throwIfNeeded(); | 4627 exceptionState.throwIfNeeded(); |
4647 return; | 4628 return; |
4648 } | 4629 } |
4649 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4630 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4650 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat
e), exceptionState); | 4631 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat
e), exceptionState); |
4651 impl->voidMethodOctetArg(octetArg); | 4632 impl->voidMethodOctetArg(octetArg); |
4652 } | 4633 } |
4653 | 4634 |
4654 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4635 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4655 { | 4636 { |
4656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4657 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 4638 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); |
4658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4659 } | 4640 } |
4660 | 4641 |
4661 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4642 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4662 { | 4643 { |
4663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 4644 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4664 if (UNLIKELY(info.Length() < 1)) { | 4645 if (UNLIKELY(info.Length() < 1)) { |
4665 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4646 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4666 exceptionState.throwIfNeeded(); | 4647 exceptionState.throwIfNeeded(); |
4667 return; | 4648 return; |
4668 } | 4649 } |
4669 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4650 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4670 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e
xceptionState); | 4651 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e
xceptionState); |
4671 impl->voidMethodShortArg(shortArg); | 4652 impl->voidMethodShortArg(shortArg); |
4672 } | 4653 } |
4673 | 4654 |
4674 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4655 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4675 { | 4656 { |
4676 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4677 TestObjectV8Internal::voidMethodShortArgMethod(info); | 4658 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); |
4678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4679 } | 4660 } |
4680 | 4661 |
4681 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4662 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4682 { | 4663 { |
4683 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4664 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4684 if (UNLIKELY(info.Length() < 1)) { | 4665 if (UNLIKELY(info.Length() < 1)) { |
4685 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4666 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4686 exceptionState.throwIfNeeded(); | 4667 exceptionState.throwIfNeeded(); |
4687 return; | 4668 return; |
4688 } | 4669 } |
4689 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4670 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4690 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep
tionState), exceptionState); | 4671 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep
tionState), exceptionState); |
4691 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 4672 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
4692 } | 4673 } |
4693 | 4674 |
4694 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4675 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4695 { | 4676 { |
4696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4697 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 4678 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); |
4698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4699 } | 4680 } |
4700 | 4681 |
4701 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4682 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4702 { | 4683 { |
4703 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4684 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4704 if (UNLIKELY(info.Length() < 1)) { | 4685 if (UNLIKELY(info.Length() < 1)) { |
4705 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4686 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4706 exceptionState.throwIfNeeded(); | 4687 exceptionState.throwIfNeeded(); |
4707 return; | 4688 return; |
4708 } | 4689 } |
4709 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4690 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4710 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64(
info[0], exceptionState), exceptionState); | 4691 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64(
info[0], exceptionState), exceptionState); |
4711 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 4692 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
4712 } | 4693 } |
4713 | 4694 |
4714 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 4695 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
4715 { | 4696 { |
4716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4717 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 4698 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
4718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4719 } | 4700 } |
4720 | 4701 |
4721 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4702 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4722 { | 4703 { |
4723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 4704 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4724 if (UNLIKELY(info.Length() < 1)) { | 4705 if (UNLIKELY(info.Length() < 1)) { |
4725 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4706 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4726 exceptionState.throwIfNeeded(); | 4707 exceptionState.throwIfNeeded(); |
4727 return; | 4708 return; |
4728 } | 4709 } |
4729 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4710 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4730 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce
ptionState), exceptionState); | 4711 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce
ptionState), exceptionState); |
4731 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 4712 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
4732 } | 4713 } |
4733 | 4714 |
4734 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4715 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4735 { | 4716 { |
4736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4717 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4737 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); | 4718 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); |
4738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4719 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4739 } | 4720 } |
4740 | 4721 |
4741 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4722 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4742 { | 4723 { |
4743 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4724 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4744 v8SetReturnValue(info, impl->testInterfaceEmptyMethod()); | 4725 v8SetReturnValue(info, impl->testInterfaceEmptyMethod()); |
4745 } | 4726 } |
4746 | 4727 |
4747 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4728 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
4748 { | 4729 { |
4749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4730 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4750 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); | 4731 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); |
4751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4732 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4752 } | 4733 } |
4753 | 4734 |
4754 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4735 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4755 { | 4736 { |
4756 if (UNLIKELY(info.Length() < 1)) { | 4737 if (UNLIKELY(info.Length() < 1)) { |
4757 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 4738 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
4758 return; | 4739 return; |
4759 } | 4740 } |
4760 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4741 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4761 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 4742 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
4762 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 4743 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
4763 } | 4744 } |
4764 | 4745 |
4765 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 4746 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
4766 { | 4747 { |
4767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4748 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4768 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); | 4749 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
4769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4750 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4770 } | 4751 } |
4771 | 4752 |
4772 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 4753 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
4773 { | 4754 { |
4774 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 4755 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate
()); |
4775 if (UNLIKELY(info.Length() < 2)) { | 4756 if (UNLIKELY(info.Length() < 2)) { |
4776 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 4757 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
4777 exceptionState.throwIfNeeded(); | 4758 exceptionState.throwIfNeeded(); |
4778 return; | 4759 return; |
4779 } | 4760 } |
4780 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4761 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4781 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4762 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4782 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 4763 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
4783 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 4764 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
4784 } | 4765 } |
4785 | 4766 |
4786 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 4767 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
4787 { | 4768 { |
4788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4789 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); | 4770 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf
o); |
4790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4771 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4791 } | 4772 } |
4792 | 4773 |
4793 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4774 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4794 { | 4775 { |
4795 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4776 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4796 v8SetReturnValue(info, impl->voidCallbackFunctionMethod().v8Value()); | 4777 v8SetReturnValue(info, impl->voidCallbackFunctionMethod().v8Value()); |
4797 } | 4778 } |
4798 | 4779 |
4799 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4780 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4800 { | 4781 { |
4801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4802 TestObjectV8Internal::voidCallbackFunctionMethodMethod(info); | 4783 TestObjectPythonV8Internal::voidCallbackFunctionMethodMethod(info); |
4803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4804 } | 4785 } |
4805 | 4786 |
4806 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 4787 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
4807 { | 4788 { |
4808 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4789 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4809 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod().v8Val
ue()); | 4790 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod().v8Val
ue()); |
4810 } | 4791 } |
4811 | 4792 |
4812 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4793 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
4813 { | 4794 { |
4814 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4815 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); | 4796 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(in
fo); |
4816 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4817 } | 4798 } |
4818 | 4799 |
4819 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4800 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4820 { | 4801 { |
4821 if (UNLIKELY(info.Length() < 1)) { | 4802 if (UNLIKELY(info.Length() < 1)) { |
4822 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVoidCallbac
kFunctionArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); | 4803 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVoidCallbac
kFunctionArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info
.Length())), info.GetIsolate()); |
4823 return; | 4804 return; |
4824 } | 4805 } |
4825 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4806 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4826 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i
nfo.GetIsolate())); | 4807 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i
nfo.GetIsolate())); |
4827 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); | 4808 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); |
4828 } | 4809 } |
4829 | 4810 |
4830 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 4811 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
4831 { | 4812 { |
4832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4833 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); | 4814 TestObjectPythonV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); |
4834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4835 } | 4816 } |
4836 | 4817 |
4837 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 4818 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
4838 { | 4819 { |
4839 if (UNLIKELY(info.Length() < 1)) { | 4820 if (UNLIKELY(info.Length() < 1)) { |
4840 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyCallback
FunctionOptionalAnyArg", "TestObject", ExceptionMessages::notEnoughArguments(1,
info.Length())), info.GetIsolate()); | 4821 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyCallback
FunctionOptionalAnyArg", "TestObjectPython", ExceptionMessages::notEnoughArgumen
ts(1, info.Length())), info.GetIsolate()); |
4841 return; | 4822 return; |
4842 } | 4823 } |
4843 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4824 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4844 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal
ue(info[0], info.GetIsolate())); | 4825 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal
ue(info[0], info.GetIsolate())); |
4845 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); | 4826 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); |
4846 } | 4827 } |
4847 | 4828 |
4848 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 4829 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
4849 { | 4830 { |
4850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4831 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4851 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); | 4832 TestObjectPythonV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMetho
d(info); |
4852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4833 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4853 } | 4834 } |
4854 | 4835 |
4855 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4836 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4856 { | 4837 { |
4857 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4838 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4858 v8SetReturnValue(info, impl->compareHowMethod()); | 4839 v8SetReturnValue(info, impl->compareHowMethod()); |
4859 } | 4840 } |
4860 | 4841 |
4861 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4842 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4862 { | 4843 { |
4863 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4864 TestObjectV8Internal::compareHowMethodMethod(info); | 4845 TestObjectPythonV8Internal::compareHowMethodMethod(info); |
4865 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4866 } | 4847 } |
4867 | 4848 |
4868 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4849 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4869 { | 4850 { |
4870 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4851 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4871 v8SetReturnValue(info, impl->anyMethod().v8Value()); | 4852 v8SetReturnValue(info, impl->anyMethod().v8Value()); |
4872 } | 4853 } |
4873 | 4854 |
4874 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4855 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4875 { | 4856 { |
4876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4877 TestObjectV8Internal::anyMethodMethod(info); | 4858 TestObjectPythonV8Internal::anyMethodMethod(info); |
4878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4879 } | 4860 } |
4880 | 4861 |
4881 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4862 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
4882 { | 4863 { |
4883 if (UNLIKELY(info.Length() < 1)) { | 4864 if (UNLIKELY(info.Length() < 1)) { |
4884 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4865 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
4885 return; | 4866 return; |
4886 } | 4867 } |
4887 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4868 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4888 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); | 4869 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); |
4889 impl->voidMethodCompareHowArg(compareHowArg); | 4870 impl->voidMethodCompareHowArg(compareHowArg); |
4890 } | 4871 } |
4891 | 4872 |
4892 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4873 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4893 { | 4874 { |
4894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4875 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4895 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); | 4876 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); |
4896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4877 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4897 } | 4878 } |
4898 | 4879 |
4899 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4880 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4900 { | 4881 { |
4901 if (UNLIKELY(info.Length() < 1)) { | 4882 if (UNLIKELY(info.Length() < 1)) { |
4902 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEventTarget
Arg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 4883 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEventTarget
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
4903 return; | 4884 return; |
4904 } | 4885 } |
4905 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4886 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4906 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf
o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(
v8::Handle<v8::Object>::Cast(info[0])) : 0); | 4887 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf
o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(
v8::Handle<v8::Object>::Cast(info[0])) : 0); |
4907 impl->voidMethodEventTargetArg(eventTargetArg); | 4888 impl->voidMethodEventTargetArg(eventTargetArg); |
4908 } | 4889 } |
4909 | 4890 |
4910 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4891 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
4911 { | 4892 { |
4912 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4913 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); | 4894 TestObjectPythonV8Internal::voidMethodEventTargetArgMethod(info); |
4914 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4895 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4915 } | 4896 } |
4916 | 4897 |
4917 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 4898 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
4918 { | 4899 { |
4919 if (UNLIKELY(info.Length() < 1)) { | 4900 if (UNLIKELY(info.Length() < 1)) { |
4920 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); | 4901 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in
fo.Length())), info.GetIsolate()); |
4921 return; | 4902 return; |
4922 } | 4903 } |
4923 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4904 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4924 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi
stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()
))); | 4905 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi
stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()
))); |
4925 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 4906 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
4926 } | 4907 } |
4927 | 4908 |
4928 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 4909 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
4929 { | 4910 { |
4930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4931 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | 4912 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
4932 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4933 } | 4914 } |
4934 | 4915 |
4935 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4916 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4936 { | 4917 { |
4937 if (UNLIKELY(info.Length() < 1)) { | 4918 if (UNLIKELY(info.Length() < 1)) { |
4938 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIs
olate()); | 4919 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); |
4939 return; | 4920 return; |
4940 } | 4921 } |
4941 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4922 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4942 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); | 4923 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); |
4943 impl->voidMethodAnyArg(anyArg); | 4924 impl->voidMethodAnyArg(anyArg); |
4944 } | 4925 } |
4945 | 4926 |
4946 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4927 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4947 { | 4928 { |
4948 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4929 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4949 TestObjectV8Internal::voidMethodAnyArgMethod(info); | 4930 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); |
4950 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4931 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4951 } | 4932 } |
4952 | 4933 |
4953 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4934 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4954 { | 4935 { |
4955 if (UNLIKELY(info.Length() < 1)) { | 4936 if (UNLIKELY(info.Length() < 1)) { |
4956 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 4937 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
4957 return; | 4938 return; |
4958 } | 4939 } |
4959 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4940 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4960 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); | 4941 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); |
4961 impl->voidMethodAttrArg(attrArg); | 4942 impl->voidMethodAttrArg(attrArg); |
4962 } | 4943 } |
4963 | 4944 |
4964 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4945 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4965 { | 4946 { |
4966 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4967 TestObjectV8Internal::voidMethodAttrArgMethod(info); | 4948 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); |
4968 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4969 } | 4950 } |
4970 | 4951 |
4971 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4952 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4972 { | 4953 { |
4973 if (UNLIKELY(info.Length() < 1)) { | 4954 if (UNLIKELY(info.Length() < 1)) { |
4974 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.
GetIsolate()); | 4955 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
4975 return; | 4956 return; |
4976 } | 4957 } |
4977 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4958 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4978 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in
fo.GetIsolate(), info[0])); | 4959 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in
fo.GetIsolate(), info[0])); |
4979 impl->voidMethodDocumentArg(documentArg); | 4960 impl->voidMethodDocumentArg(documentArg); |
4980 } | 4961 } |
4981 | 4962 |
4982 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4963 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4983 { | 4964 { |
4984 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4985 TestObjectV8Internal::voidMethodDocumentArgMethod(info); | 4966 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); |
4986 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4987 } | 4968 } |
4988 | 4969 |
4989 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4970 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4990 { | 4971 { |
4991 if (UNLIKELY(info.Length() < 1)) { | 4972 if (UNLIKELY(info.Length() < 1)) { |
4992 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 4973 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
4993 return; | 4974 return; |
4994 } | 4975 } |
4995 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4976 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4996 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith
TypeCheck(info.GetIsolate(), info[0])); | 4977 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith
TypeCheck(info.GetIsolate(), info[0])); |
4997 impl->voidMethodDocumentTypeArg(documentTypeArg); | 4978 impl->voidMethodDocumentTypeArg(documentTypeArg); |
4998 } | 4979 } |
4999 | 4980 |
5000 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4981 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5001 { | 4982 { |
5002 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5003 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); | 4984 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); |
5004 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4985 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5005 } | 4986 } |
5006 | 4987 |
5007 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4988 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5008 { | 4989 { |
5009 if (UNLIKELY(info.Length() < 1)) { | 4990 if (UNLIKELY(info.Length() < 1)) { |
5010 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.G
etIsolate()); | 4991 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
5011 return; | 4992 return; |
5012 } | 4993 } |
5013 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4994 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5014 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.
GetIsolate(), info[0])); | 4995 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.
GetIsolate(), info[0])); |
5015 impl->voidMethodElementArg(elementArg); | 4996 impl->voidMethodElementArg(elementArg); |
5016 } | 4997 } |
5017 | 4998 |
5018 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4999 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5019 { | 5000 { |
5020 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5021 TestObjectV8Internal::voidMethodElementArgMethod(info); | 5002 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); |
5022 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5003 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5023 } | 5004 } |
5024 | 5005 |
5025 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5006 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5026 { | 5007 { |
5027 if (UNLIKELY(info.Length() < 1)) { | 5008 if (UNLIKELY(info.Length() < 1)) { |
5028 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 5009 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
5029 return; | 5010 return; |
5030 } | 5011 } |
5031 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5012 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5032 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); | 5013 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); |
5033 impl->voidMethodNodeArg(nodeArg); | 5014 impl->voidMethodNodeArg(nodeArg); |
5034 } | 5015 } |
5035 | 5016 |
5036 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5017 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5037 { | 5018 { |
5038 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5039 TestObjectV8Internal::voidMethodNodeArgMethod(info); | 5020 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); |
5040 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5041 } | 5022 } |
5042 | 5023 |
5043 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5024 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5044 { | 5025 { |
5045 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5026 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5046 v8SetReturnValue(info, impl->arrayBufferMethod()); | 5027 v8SetReturnValue(info, impl->arrayBufferMethod()); |
5047 } | 5028 } |
5048 | 5029 |
5049 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5030 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5050 { | 5031 { |
5051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5052 TestObjectV8Internal::arrayBufferMethodMethod(info); | 5033 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); |
5053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5054 } | 5035 } |
5055 | 5036 |
5056 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5037 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5057 { | 5038 { |
5058 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5039 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5059 v8SetReturnValue(info, impl->arrayBufferViewMethod()); | 5040 v8SetReturnValue(info, impl->arrayBufferViewMethod()); |
5060 } | 5041 } |
5061 | 5042 |
5062 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5043 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5063 { | 5044 { |
5064 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5065 TestObjectV8Internal::arrayBufferViewMethodMethod(info); | 5046 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); |
5066 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5047 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5067 } | 5048 } |
5068 | 5049 |
5069 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5050 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5070 { | 5051 { |
5071 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5052 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5072 v8SetReturnValue(info, impl->float32ArrayMethod()); | 5053 v8SetReturnValue(info, impl->float32ArrayMethod()); |
5073 } | 5054 } |
5074 | 5055 |
5075 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5056 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5076 { | 5057 { |
5077 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5078 TestObjectV8Internal::float32ArrayMethodMethod(info); | 5059 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); |
5079 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5080 } | 5061 } |
5081 | 5062 |
5082 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5063 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5083 { | 5064 { |
5084 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5065 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5085 v8SetReturnValue(info, impl->int32ArrayMethod()); | 5066 v8SetReturnValue(info, impl->int32ArrayMethod()); |
5086 } | 5067 } |
5087 | 5068 |
5088 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5069 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5089 { | 5070 { |
5090 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5091 TestObjectV8Internal::int32ArrayMethodMethod(info); | 5072 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); |
5092 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5093 } | 5074 } |
5094 | 5075 |
5095 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5076 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5096 { | 5077 { |
5097 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5078 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5098 v8SetReturnValue(info, impl->uint8ArrayMethod()); | 5079 v8SetReturnValue(info, impl->uint8ArrayMethod()); |
5099 } | 5080 } |
5100 | 5081 |
5101 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5082 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5102 { | 5083 { |
5103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5104 TestObjectV8Internal::uint8ArrayMethodMethod(info); | 5085 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); |
5105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5106 } | 5087 } |
5107 | 5088 |
5108 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5089 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5109 { | 5090 { |
5110 if (UNLIKELY(info.Length() < 1)) { | 5091 if (UNLIKELY(info.Length() < 1)) { |
5111 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 5092 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
5112 return; | 5093 return; |
5113 } | 5094 } |
5114 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5095 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5115 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 5096 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
5116 impl->voidMethodArrayBufferArg(arrayBufferArg); | 5097 impl->voidMethodArrayBufferArg(arrayBufferArg); |
5117 } | 5098 } |
5118 | 5099 |
5119 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5100 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5120 { | 5101 { |
5121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5122 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); | 5103 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); |
5123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5124 } | 5105 } |
5125 | 5106 |
5126 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5107 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5127 { | 5108 { |
5128 if (UNLIKELY(info.Length() < 1)) { | 5109 if (UNLIKELY(info.Length() < 1)) { |
5129 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
OrNullArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); | 5110 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
OrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); |
5130 return; | 5111 return; |
5131 } | 5112 } |
5132 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5113 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5133 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 5114 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
5134 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); | 5115 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); |
5135 } | 5116 } |
5136 | 5117 |
5137 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5118 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
5138 { | 5119 { |
5139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5140 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); | 5121 TestObjectPythonV8Internal::voidMethodArrayBufferOrNullArgMethod(info); |
5141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5142 } | 5123 } |
5143 | 5124 |
5144 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5125 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5145 { | 5126 { |
5146 if (UNLIKELY(info.Length() < 1)) { | 5127 if (UNLIKELY(info.Length() < 1)) { |
5147 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); | 5128 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
5148 return; | 5129 return; |
5149 } | 5130 } |
5150 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5131 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5151 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); | 5132 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); |
5152 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 5133 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
5153 } | 5134 } |
5154 | 5135 |
5155 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5136 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5156 { | 5137 { |
5157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5158 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); | 5139 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); |
5159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5160 } | 5141 } |
5161 | 5142 |
5162 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5143 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5163 { | 5144 { |
5164 if (UNLIKELY(info.Length() < 1)) { | 5145 if (UNLIKELY(info.Length() < 1)) { |
5165 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 5146 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
5166 return; | 5147 return; |
5167 } | 5148 } |
5168 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5149 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5169 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); | 5150 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
5170 impl->voidMethodFloat32ArrayArg(float32ArrayArg); | 5151 impl->voidMethodFloat32ArrayArg(float32ArrayArg); |
5171 } | 5152 } |
5172 | 5153 |
5173 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5154 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5174 { | 5155 { |
5175 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5176 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); | 5157 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); |
5177 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5178 } | 5159 } |
5179 | 5160 |
5180 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5161 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5181 { | 5162 { |
5182 if (UNLIKELY(info.Length() < 1)) { | 5163 if (UNLIKELY(info.Length() < 1)) { |
5183 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5164 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
5184 return; | 5165 return; |
5185 } | 5166 } |
5186 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5167 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5187 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); | 5168 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
5188 impl->voidMethodInt32ArrayArg(int32ArrayArg); | 5169 impl->voidMethodInt32ArrayArg(int32ArrayArg); |
5189 } | 5170 } |
5190 | 5171 |
5191 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5172 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5192 { | 5173 { |
5193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5174 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5194 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); | 5175 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); |
5195 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5176 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5196 } | 5177 } |
5197 | 5178 |
5198 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5179 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5199 { | 5180 { |
5200 if (UNLIKELY(info.Length() < 1)) { | 5181 if (UNLIKELY(info.Length() < 1)) { |
5201 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5182 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
5202 return; | 5183 return; |
5203 } | 5184 } |
5204 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5185 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5205 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); | 5186 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
5206 impl->voidMethodUint8ArrayArg(uint8ArrayArg); | 5187 impl->voidMethodUint8ArrayArg(uint8ArrayArg); |
5207 } | 5188 } |
5208 | 5189 |
5209 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5190 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5210 { | 5191 { |
5211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5212 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); | 5193 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); |
5213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5214 } | 5195 } |
5215 | 5196 |
5216 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 5197 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
5217 { | 5198 { |
5218 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5199 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5219 v8SetReturnValue(info, v8Array(impl->longArrayMethod(), info.GetIsolate())); | 5200 v8SetReturnValue(info, v8Array(impl->longArrayMethod(), info.GetIsolate())); |
5220 } | 5201 } |
5221 | 5202 |
5222 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5203 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5223 { | 5204 { |
5224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5205 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5225 TestObjectV8Internal::longArrayMethodMethod(info); | 5206 TestObjectPythonV8Internal::longArrayMethodMethod(info); |
5226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5227 } | 5208 } |
5228 | 5209 |
5229 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5210 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5230 { | 5211 { |
5231 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5212 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5232 v8SetReturnValue(info, v8Array(impl->stringArrayMethod(), info.GetIsolate())
); | 5213 v8SetReturnValue(info, v8Array(impl->stringArrayMethod(), info.GetIsolate())
); |
5233 } | 5214 } |
5234 | 5215 |
5235 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5216 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5236 { | 5217 { |
5237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5238 TestObjectV8Internal::stringArrayMethodMethod(info); | 5219 TestObjectPythonV8Internal::stringArrayMethodMethod(info); |
5239 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5240 } | 5221 } |
5241 | 5222 |
5242 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5223 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5243 { | 5224 { |
5244 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5225 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5245 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayMethod(), info.G
etIsolate())); | 5226 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayMethod(), info.G
etIsolate())); |
5246 } | 5227 } |
5247 | 5228 |
5248 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5229 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5249 { | 5230 { |
5250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5251 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); | 5232 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); |
5252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5253 } | 5234 } |
5254 | 5235 |
5255 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5236 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5256 { | 5237 { |
5257 if (UNLIKELY(info.Length() < 1)) { | 5238 if (UNLIKELY(info.Length() < 1)) { |
5258 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); | 5239 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); |
5259 return; | 5240 return; |
5260 } | 5241 } |
5261 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5242 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5262 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); | 5243 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
5263 impl->voidMethodArrayLongArg(arrayLongArg); | 5244 impl->voidMethodArrayLongArg(arrayLongArg); |
5264 } | 5245 } |
5265 | 5246 |
5266 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5247 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5267 { | 5248 { |
5268 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5269 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 5250 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); |
5270 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5271 } | 5252 } |
5272 | 5253 |
5273 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5254 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5274 { | 5255 { |
5275 if (UNLIKELY(info.Length() < 1)) { | 5256 if (UNLIKELY(info.Length() < 1)) { |
5276 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 5257 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
5277 return; | 5258 return; |
5278 } | 5259 } |
5279 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5260 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5280 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); | 5261 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); |
5281 impl->voidMethodArrayStringArg(arrayStringArg); | 5262 impl->voidMethodArrayStringArg(arrayStringArg); |
5282 } | 5263 } |
5283 | 5264 |
5284 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5265 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5285 { | 5266 { |
5286 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5287 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 5268 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); |
5288 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5289 } | 5270 } |
5290 | 5271 |
5291 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5272 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5292 { | 5273 { |
5293 if (UNLIKELY(info.Length() < 1)) { | 5274 if (UNLIKELY(info.Length() < 1)) { |
5294 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); | 5275 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
5295 return; | 5276 return; |
5296 } | 5277 } |
5297 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5278 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5298 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); | 5279 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); |
5299 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 5280 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
5300 } | 5281 } |
5301 | 5282 |
5302 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5283 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
5303 { | 5284 { |
5304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5285 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5305 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); | 5286 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info)
; |
5306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5287 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5307 } | 5288 } |
5308 | 5289 |
5309 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5290 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5310 { | 5291 { |
5311 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5292 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5312 v8SetReturnValue(info, v8Array(impl->longSequenceMethod(), info.GetIsolate()
)); | 5293 v8SetReturnValue(info, v8Array(impl->longSequenceMethod(), info.GetIsolate()
)); |
5313 } | 5294 } |
5314 | 5295 |
5315 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5296 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5316 { | 5297 { |
5317 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5298 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5318 TestObjectV8Internal::longSequenceMethodMethod(info); | 5299 TestObjectPythonV8Internal::longSequenceMethodMethod(info); |
5319 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5300 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5320 } | 5301 } |
5321 | 5302 |
5322 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5303 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5323 { | 5304 { |
5324 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5305 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5325 v8SetReturnValue(info, v8Array(impl->stringSequenceMethod(), info.GetIsolate
())); | 5306 v8SetReturnValue(info, v8Array(impl->stringSequenceMethod(), info.GetIsolate
())); |
5326 } | 5307 } |
5327 | 5308 |
5328 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5309 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5329 { | 5310 { |
5330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5331 TestObjectV8Internal::stringSequenceMethodMethod(info); | 5312 TestObjectPythonV8Internal::stringSequenceMethodMethod(info); |
5332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5333 } | 5314 } |
5334 | 5315 |
5335 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5316 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5336 { | 5317 { |
5337 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5318 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5338 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptySequenceMethod(), inf
o.GetIsolate())); | 5319 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptySequenceMethod(), inf
o.GetIsolate())); |
5339 } | 5320 } |
5340 | 5321 |
5341 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5322 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5342 { | 5323 { |
5343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5344 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); | 5325 TestObjectPythonV8Internal::testInterfaceEmptySequenceMethodMethod(info); |
5345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5346 } | 5327 } |
5347 | 5328 |
5348 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5329 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5349 { | 5330 { |
5350 if (UNLIKELY(info.Length() < 1)) { | 5331 if (UNLIKELY(info.Length() < 1)) { |
5351 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 5332 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
5352 return; | 5333 return; |
5353 } | 5334 } |
5354 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5335 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5355 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); | 5336 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); |
5356 impl->voidMethodSequenceLongArg(longSequenceArg); | 5337 impl->voidMethodSequenceLongArg(longSequenceArg); |
5357 } | 5338 } |
5358 | 5339 |
5359 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5340 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5360 { | 5341 { |
5361 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5362 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 5343 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); |
5363 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5344 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5364 } | 5345 } |
5365 | 5346 |
5366 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5347 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5367 { | 5348 { |
5368 if (UNLIKELY(info.Length() < 1)) { | 5349 if (UNLIKELY(info.Length() < 1)) { |
5369 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 5350 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); |
5370 return; | 5351 return; |
5371 } | 5352 } |
5372 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5353 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5373 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); | 5354 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); |
5374 impl->voidMethodSequenceStringArg(stringSequenceArg); | 5355 impl->voidMethodSequenceStringArg(stringSequenceArg); |
5375 } | 5356 } |
5376 | 5357 |
5377 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5358 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5378 { | 5359 { |
5379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5380 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 5361 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); |
5381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5382 } | 5363 } |
5383 | 5364 |
5384 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5365 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5385 { | 5366 { |
5386 if (UNLIKELY(info.Length() < 1)) { | 5367 if (UNLIKELY(info.Length() < 1)) { |
5387 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info
.Length())), info.GetIsolate()); | 5368 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, info.Length())), info.GetIsolate()); |
5388 return; | 5369 return; |
5389 } | 5370 } |
5390 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5371 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5391 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque
nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); | 5372 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque
nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); |
5392 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 5373 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
5393 } | 5374 } |
5394 | 5375 |
5395 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5376 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5396 { | 5377 { |
5397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5398 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 5379 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in
fo); |
5399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5400 } | 5381 } |
5401 | 5382 |
5402 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5383 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5403 { | 5384 { |
5404 if (UNLIKELY(info.Length() < 1)) { | 5385 if (UNLIKELY(info.Length() < 1)) { |
5405 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyOrNullArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 5386 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyOrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1,
info.Length())), info.GetIsolate()); |
5406 return; | 5387 return; |
5407 } | 5388 } |
5408 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5389 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5409 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5390 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5410 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); | 5391 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); |
5411 } | 5392 } |
5412 | 5393 |
5413 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5394 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
5414 { | 5395 { |
5415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5416 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); | 5397 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info
); |
5417 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5418 } | 5399 } |
5419 | 5400 |
5420 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5401 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5421 { | 5402 { |
5422 if (UNLIKELY(info.Length() < 1)) { | 5403 if (UNLIKELY(info.Length() < 1)) { |
5423 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); | 5404 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); |
5424 return; | 5405 return; |
5425 } | 5406 } |
5426 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5407 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5427 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 5408 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
5428 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun
ction."), info.GetIsolate()); | 5409 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObjectPython", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); |
5429 return; | 5410 return; |
5430 } | 5411 } |
5431 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 5412 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
5432 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; | 5413 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; |
5433 } | 5414 } |
5434 | 5415 |
5435 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5416 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5436 { | 5417 { |
5437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5418 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5438 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); | 5419 TestObjectPythonV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); |
5439 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5420 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5440 } | 5421 } |
5441 | 5422 |
5442 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5423 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5443 { | 5424 { |
5444 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5425 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5445 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; | 5426 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; |
5446 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { | 5427 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { |
5447 if (!info[0]->IsFunction()) { | 5428 if (!info[0]->IsFunction()) { |
5448 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona
lTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1
is not a function."), info.GetIsolate()); | 5429 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona
lTestCallbackInterfaceArg", "TestObjectPython", "The callback provided as parame
ter 1 is not a function."), info.GetIsolate()); |
5449 return; | 5430 return; |
5450 } | 5431 } |
5451 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); | 5432 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); |
5452 } | 5433 } |
5453 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa
ceArg.release()); | 5434 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa
ceArg.release()); |
5454 } | 5435 } |
5455 | 5436 |
5456 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 5437 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
5457 { | 5438 { |
5458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5459 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info)
; | 5440 TestObjectPythonV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod
(info); |
5460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5461 } | 5442 } |
5462 | 5443 |
5463 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5444 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5464 { | 5445 { |
5465 if (UNLIKELY(info.Length() < 1)) { | 5446 if (UNLIKELY(info.Length() < 1)) { |
5466 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObject", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); | 5447 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); |
5467 return; | 5448 return; |
5468 } | 5449 } |
5469 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5450 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5470 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { | 5451 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { |
5471 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); | 5452 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObjectPython", "The callback provided as parameter 1
is not a function."), info.GetIsolate()); |
5472 return; | 5453 return; |
5473 } | 5454 } |
5474 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ?
nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0
]), currentExecutionContext(info.GetIsolate())); | 5455 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ?
nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0
]), currentExecutionContext(info.GetIsolate())); |
5475 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele
ase()); | 5456 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele
ase()); |
5476 } | 5457 } |
5477 | 5458 |
5478 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 5459 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
5479 { | 5460 { |
5480 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5461 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5481 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); | 5462 TestObjectPythonV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(i
nfo); |
5482 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5463 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5483 } | 5464 } |
5484 | 5465 |
5485 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) | 5466 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
5486 { | 5467 { |
5487 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5468 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5488 v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate()); | 5469 v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate()); |
5489 } | 5470 } |
5490 | 5471 |
5491 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5472 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5492 { | 5473 { |
5493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5494 TestObjectV8Internal::testEnumMethodMethod(info); | 5475 TestObjectPythonV8Internal::testEnumMethodMethod(info); |
5495 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5496 } | 5477 } |
5497 | 5478 |
5498 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5479 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5499 { | 5480 { |
5500 if (UNLIKELY(info.Length() < 1)) { | 5481 if (UNLIKELY(info.Length() < 1)) { |
5501 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.
GetIsolate()); | 5482 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
5502 return; | 5483 return; |
5503 } | 5484 } |
5504 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5485 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5505 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); | 5486 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); |
5506 String string = testEnumTypeArg; | 5487 String string = testEnumTypeArg; |
5507 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 5488 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { |
5508 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i
nfo.GetIsolate()); | 5489 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), info.GetIsolate()); |
5509 return; | 5490 return; |
5510 } | 5491 } |
5511 impl->voidMethodTestEnumArg(testEnumTypeArg); | 5492 impl->voidMethodTestEnumArg(testEnumTypeArg); |
5512 } | 5493 } |
5513 | 5494 |
5514 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5495 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5515 { | 5496 { |
5516 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5517 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); | 5498 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); |
5518 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5519 } | 5500 } |
5520 | 5501 |
5521 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5502 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5522 { | 5503 { |
5523 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5504 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5524 v8SetReturnValue(info, impl->dictionaryMethod()); | 5505 v8SetReturnValue(info, impl->dictionaryMethod()); |
5525 } | 5506 } |
5526 | 5507 |
5527 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5508 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5528 { | 5509 { |
5529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5510 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5530 TestObjectV8Internal::dictionaryMethodMethod(info); | 5511 TestObjectPythonV8Internal::dictionaryMethodMethod(info); |
5531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5512 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5532 } | 5513 } |
5533 | 5514 |
5534 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5515 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5535 { | 5516 { |
5536 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5517 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5537 v8SetReturnValue(info, impl->nodeFilterMethod()); | 5518 v8SetReturnValue(info, impl->nodeFilterMethod()); |
5538 } | 5519 } |
5539 | 5520 |
5540 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5521 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5541 { | 5522 { |
5542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5543 TestObjectV8Internal::nodeFilterMethodMethod(info); | 5524 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); |
5544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5545 } | 5526 } |
5546 | 5527 |
5547 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5528 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
5548 { | 5529 { |
5549 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5530 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5550 v8SetReturnValue(info, impl->promiseMethod().v8Value()); | 5531 v8SetReturnValue(info, impl->promiseMethod().v8Value()); |
5551 } | 5532 } |
5552 | 5533 |
5553 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5534 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5554 { | 5535 { |
5555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5556 TestObjectV8Internal::promiseMethodMethod(info); | 5537 TestObjectPythonV8Internal::promiseMethodMethod(info); |
5557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5558 } | 5539 } |
5559 | 5540 |
5560 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5541 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5561 { | 5542 { |
5562 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5543 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5563 v8SetReturnValue(info, impl->serializedScriptValueMethod() ? impl->serialize
dScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIso
late()))); | 5544 v8SetReturnValue(info, impl->serializedScriptValueMethod() ? impl->serialize
dScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIso
late()))); |
5564 } | 5545 } |
5565 | 5546 |
5566 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5547 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5567 { | 5548 { |
5568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5569 TestObjectV8Internal::serializedScriptValueMethodMethod(info); | 5550 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); |
5570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5571 } | 5552 } |
5572 | 5553 |
5573 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5554 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5574 { | 5555 { |
5575 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5556 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5576 v8SetReturnValue(info, impl->xPathNSResolverMethod()); | 5557 v8SetReturnValue(info, impl->xPathNSResolverMethod()); |
5577 } | 5558 } |
5578 | 5559 |
5579 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5560 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5580 { | 5561 { |
5581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5562 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5582 TestObjectV8Internal::xPathNSResolverMethodMethod(info); | 5563 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); |
5583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5564 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5584 } | 5565 } |
5585 | 5566 |
5586 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5567 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5587 { | 5568 { |
5588 if (UNLIKELY(info.Length() < 1)) { | 5569 if (UNLIKELY(info.Length() < 1)) { |
5589 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5570 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
5590 return; | 5571 return; |
5591 } | 5572 } |
5592 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5573 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5593 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); | 5574 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); |
5594 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 5575 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
5595 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI
solate()); | 5576 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf
o.GetIsolate()); |
5596 return; | 5577 return; |
5597 } | 5578 } |
5598 impl->voidMethodDictionaryArg(dictionaryArg); | 5579 impl->voidMethodDictionaryArg(dictionaryArg); |
5599 } | 5580 } |
5600 | 5581 |
5601 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5582 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5602 { | 5583 { |
5603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5584 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5604 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 5585 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); |
5605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5606 } | 5587 } |
5607 | 5588 |
5608 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5589 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5609 { | 5590 { |
5610 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); | 5591 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5611 if (UNLIKELY(info.Length() < 1)) { | 5592 if (UNLIKELY(info.Length() < 1)) { |
5612 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5593 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5613 exceptionState.throwIfNeeded(); | 5594 exceptionState.throwIfNeeded(); |
5614 return; | 5595 return; |
5615 } | 5596 } |
5616 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5597 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5617 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen
er(info[1], false, ListenerFindOrCreate); | 5598 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen
er(info[1], false, ListenerFindOrCreate); |
5618 impl->voidMethodEventListenerArg(eventListenerArg); | 5599 impl->voidMethodEventListenerArg(eventListenerArg); |
5619 if (listener && !impl->toNode()) | 5600 if (listener && !impl->toNode()) |
5620 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); | 5601 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
5621 } | 5602 } |
5622 | 5603 |
5623 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5604 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5624 { | 5605 { |
5625 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5606 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5626 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); | 5607 TestObjectPythonV8Internal::voidMethodEventListenerArgMethod(info); |
5627 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5608 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5628 } | 5609 } |
5629 | 5610 |
5630 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5611 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5631 { | 5612 { |
5632 if (UNLIKELY(info.Length() < 1)) { | 5613 if (UNLIKELY(info.Length() < 1)) { |
5633 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5614 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
5634 return; | 5615 return; |
5635 } | 5616 } |
5636 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5617 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5637 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); | 5618 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); |
5638 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); | 5619 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); |
5639 } | 5620 } |
5640 | 5621 |
5641 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5622 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5642 { | 5623 { |
5643 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5644 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); | 5625 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); |
5645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5626 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5646 } | 5627 } |
5647 | 5628 |
5648 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5629 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5649 { | 5630 { |
5650 if (UNLIKELY(info.Length() < 1)) { | 5631 if (UNLIKELY(info.Length() < 1)) { |
5651 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.G
etIsolate()); | 5632 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
5652 return; | 5633 return; |
5653 } | 5634 } |
5654 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5635 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5655 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs
olate())); | 5636 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs
olate())); |
5656 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 5637 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
5657 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate
()); | 5638 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI
solate()); |
5658 return; | 5639 return; |
5659 } | 5640 } |
5660 impl->voidMethodPromiseArg(promiseArg); | 5641 impl->voidMethodPromiseArg(promiseArg); |
5661 } | 5642 } |
5662 | 5643 |
5663 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5644 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5664 { | 5645 { |
5665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5646 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5666 TestObjectV8Internal::voidMethodPromiseArgMethod(info); | 5647 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); |
5667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5648 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5668 } | 5649 } |
5669 | 5650 |
5670 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5651 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5671 { | 5652 { |
5672 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 5653 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5673 if (UNLIKELY(info.Length() < 1)) { | 5654 if (UNLIKELY(info.Length() < 1)) { |
5674 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5655 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5675 exceptionState.throwIfNeeded(); | 5656 exceptionState.throwIfNeeded(); |
5676 return; | 5657 return; |
5677 } | 5658 } |
5678 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5659 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5679 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); | 5660 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); |
5680 if (exceptionState.throwIfNeeded()) | 5661 if (exceptionState.throwIfNeeded()) |
5681 return; | 5662 return; |
5682 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 5663 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
5683 } | 5664 } |
5684 | 5665 |
5685 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5666 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5686 { | 5667 { |
5687 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5688 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 5669 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
5689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5690 } | 5671 } |
5691 | 5672 |
5692 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5673 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5693 { | 5674 { |
5694 if (UNLIKELY(info.Length() < 1)) { | 5675 if (UNLIKELY(info.Length() < 1)) { |
5695 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); | 5676 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
5696 return; | 5677 return; |
5697 } | 5678 } |
5698 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5679 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5699 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX
PathNSResolver(info[0], info.GetIsolate())); | 5680 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX
PathNSResolver(info[0], info.GetIsolate())); |
5700 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 5681 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
5701 } | 5682 } |
5702 | 5683 |
5703 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5684 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5704 { | 5685 { |
5705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5706 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); | 5687 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); |
5707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5708 } | 5689 } |
5709 | 5690 |
5710 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5691 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5711 { | 5692 { |
5712 if (UNLIKELY(info.Length() < 1)) { | 5693 if (UNLIKELY(info.Length() < 1)) { |
5713 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryS
equenceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 5694 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic
tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
5714 return; | 5695 return; |
5715 } | 5696 } |
5716 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5697 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5717 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic
tionary>(info[0], 1, info.GetIsolate())); | 5698 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic
tionary>(info[0], 1, info.GetIsolate())); |
5718 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 5699 impl->voidMethodSequenceDictionaryArg(dictionarySequenceArg); |
5719 } | 5700 } |
5720 | 5701 |
5721 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5702 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5722 { | 5703 { |
5723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5724 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 5705 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); |
5725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5726 } | 5707 } |
5727 | 5708 |
5728 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5709 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5729 { | 5710 { |
5730 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5711 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5731 if (UNLIKELY(info.Length() < 2)) { | 5712 if (UNLIKELY(info.Length() < 2)) { |
5732 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 5713 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
5733 exceptionState.throwIfNeeded(); | 5714 exceptionState.throwIfNeeded(); |
5734 return; | 5715 return; |
5735 } | 5716 } |
5736 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5717 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5737 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 5718 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
5738 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); | 5719 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); |
5739 impl->voidMethodStringArgLongArg(stringArg, longArg); | 5720 impl->voidMethodStringArgLongArg(stringArg, longArg); |
5740 } | 5721 } |
5741 | 5722 |
5742 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5723 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5743 { | 5724 { |
5744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5745 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); | 5726 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); |
5746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5747 } | 5728 } |
5748 | 5729 |
5749 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5730 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5750 { | 5731 { |
5751 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5732 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5752 if (UNLIKELY(info.Length() <= 0)) { | 5733 if (UNLIKELY(info.Length() <= 0)) { |
5753 impl->voidMethodOptionalStringArg(); | 5734 impl->voidMethodOptionalStringArg(); |
5754 return; | 5735 return; |
5755 } | 5736 } |
5756 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); | 5737 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); |
5757 impl->voidMethodOptionalStringArg(optionalStringArg); | 5738 impl->voidMethodOptionalStringArg(optionalStringArg); |
5758 } | 5739 } |
5759 | 5740 |
5760 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5741 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5761 { | 5742 { |
5762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5763 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); | 5744 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); |
5764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5765 } | 5746 } |
5766 | 5747 |
5767 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5748 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5768 { | 5749 { |
5769 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5750 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5770 if (UNLIKELY(info.Length() <= 0)) { | 5751 if (UNLIKELY(info.Length() <= 0)) { |
5771 impl->voidMethodOptionalTestInterfaceEmptyArg(); | 5752 impl->voidMethodOptionalTestInterfaceEmptyArg(); |
5772 return; | 5753 return; |
5773 } | 5754 } |
5774 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5755 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5775 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg)
; | 5756 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg)
; |
5776 } | 5757 } |
5777 | 5758 |
5778 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5759 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5779 { | 5760 { |
5780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5781 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); | 5762 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in
fo); |
5782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5783 } | 5764 } |
5784 | 5765 |
5785 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5766 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5786 { | 5767 { |
5787 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5768 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5788 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5769 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5789 if (UNLIKELY(info.Length() <= 0)) { | 5770 if (UNLIKELY(info.Length() <= 0)) { |
5790 impl->voidMethodOptionalLongArg(); | 5771 impl->voidMethodOptionalLongArg(); |
5791 return; | 5772 return; |
5792 } | 5773 } |
5793 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5774 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5794 impl->voidMethodOptionalLongArg(optionalLongArg); | 5775 impl->voidMethodOptionalLongArg(optionalLongArg); |
5795 } | 5776 } |
5796 | 5777 |
5797 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5778 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5798 { | 5779 { |
5799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5800 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); | 5781 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); |
5801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5802 } | 5783 } |
5803 | 5784 |
5804 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5785 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5805 { | 5786 { |
5806 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5787 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5807 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5788 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5808 if (UNLIKELY(info.Length() <= 0)) { | 5789 if (UNLIKELY(info.Length() <= 0)) { |
5809 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G
etIsolate()); | 5790 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G
etIsolate()); |
5810 return; | 5791 return; |
5811 } | 5792 } |
5812 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5793 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5813 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); | 5794 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
5814 } | 5795 } |
5815 | 5796 |
5816 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5797 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5817 { | 5798 { |
5818 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5819 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); | 5800 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); |
5820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5821 } | 5802 } |
5822 | 5803 |
5823 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5804 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5824 { | 5805 { |
5825 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5806 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
5826 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5807 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5827 if (UNLIKELY(info.Length() <= 0)) { | 5808 if (UNLIKELY(info.Length() <= 0)) { |
5828 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); | 5809 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); |
5829 return; | 5810 return; |
5830 } | 5811 } |
5831 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5812 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5832 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); | 5813 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
5833 } | 5814 } |
5834 | 5815 |
5835 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5816 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5836 { | 5817 { |
5837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5818 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5838 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); | 5819 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in
fo); |
5839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5840 } | 5821 } |
5841 | 5822 |
5842 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5823 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5843 { | 5824 { |
5844 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5825 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5845 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5826 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5846 if (UNLIKELY(info.Length() <= 0)) { | 5827 if (UNLIKELY(info.Length() <= 0)) { |
5847 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); | 5828 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
5848 return; | 5829 return; |
5849 } | 5830 } |
5850 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5831 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5851 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); | 5832 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
5852 } | 5833 } |
5853 | 5834 |
5854 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5835 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5855 { | 5836 { |
5856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5857 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 5838 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); |
5858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5859 } | 5840 } |
5860 | 5841 |
5861 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5842 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5862 { | 5843 { |
5863 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5844 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5864 if (UNLIKELY(info.Length() < 1)) { | 5845 if (UNLIKELY(info.Length() < 1)) { |
5865 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5846 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5866 exceptionState.throwIfNeeded(); | 5847 exceptionState.throwIfNeeded(); |
5867 return; | 5848 return; |
5868 } | 5849 } |
5869 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5850 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5870 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5851 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5871 if (UNLIKELY(info.Length() <= 1)) { | 5852 if (UNLIKELY(info.Length() <= 1)) { |
5872 impl->voidMethodLongArgOptionalLongArg(longArg); | 5853 impl->voidMethodLongArgOptionalLongArg(longArg); |
5873 return; | 5854 return; |
5874 } | 5855 } |
5875 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt
ate), exceptionState); | 5856 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt
ate), exceptionState); |
5876 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 5857 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
5877 } | 5858 } |
5878 | 5859 |
5879 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5860 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5880 { | 5861 { |
5881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5882 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 5863 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
5883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5864 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5884 } | 5865 } |
5885 | 5866 |
5886 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5867 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5887 { | 5868 { |
5888 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 5869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
5889 if (UNLIKELY(info.Length() < 1)) { | 5870 if (UNLIKELY(info.Length() < 1)) { |
5890 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5871 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5891 exceptionState.throwIfNeeded(); | 5872 exceptionState.throwIfNeeded(); |
5892 return; | 5873 return; |
5893 } | 5874 } |
5894 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5875 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5895 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5876 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5896 if (UNLIKELY(info.Length() <= 1)) { | 5877 if (UNLIKELY(info.Length() <= 1)) { |
5897 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 5878 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
5898 return; | 5879 return; |
5899 } | 5880 } |
5900 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS
tate), exceptionState); | 5881 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS
tate), exceptionState); |
5901 if (UNLIKELY(info.Length() <= 2)) { | 5882 if (UNLIKELY(info.Length() <= 2)) { |
5902 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); | 5883 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); |
5903 return; | 5884 return; |
5904 } | 5885 } |
5905 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS
tate), exceptionState); | 5886 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS
tate), exceptionState); |
5906 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 5887 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
5907 } | 5888 } |
5908 | 5889 |
5909 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 5890 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5910 { | 5891 { |
5911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5912 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 5893 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(info); |
5913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5914 } | 5895 } |
5915 | 5896 |
5916 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5897 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5917 { | 5898 { |
5918 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 5899 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
5919 if (UNLIKELY(info.Length() < 1)) { | 5900 if (UNLIKELY(info.Length() < 1)) { |
5920 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5901 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5921 exceptionState.throwIfNeeded(); | 5902 exceptionState.throwIfNeeded(); |
5922 return; | 5903 return; |
5923 } | 5904 } |
5924 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5905 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5925 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5906 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5926 if (UNLIKELY(info.Length() <= 1)) { | 5907 if (UNLIKELY(info.Length() <= 1)) { |
5927 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 5908 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
5928 return; | 5909 return; |
5929 } | 5910 } |
5930 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 5911 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
5931 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 5912 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
5932 } | 5913 } |
5933 | 5914 |
5934 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 5915 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5935 { | 5916 { |
5936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5937 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); | 5918 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(info); |
5938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5919 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5939 } | 5920 } |
5940 | 5921 |
5941 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5922 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5942 { | 5923 { |
5943 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); | 5924 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
5944 if (UNLIKELY(info.Length() < 1)) { | 5925 if (UNLIKELY(info.Length() < 1)) { |
5945 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5926 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5946 exceptionState.throwIfNeeded(); | 5927 exceptionState.throwIfNeeded(); |
5947 return; | 5928 return; |
5948 } | 5929 } |
5949 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5930 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5950 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5931 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5951 if (UNLIKELY(info.Length() <= 1)) { | 5932 if (UNLIKELY(info.Length() <= 1)) { |
5952 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); | 5933 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); |
5953 return; | 5934 return; |
5954 } | 5935 } |
5955 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); | 5936 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); |
5956 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 5937 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
5957 } | 5938 } |
5958 | 5939 |
5959 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 5940 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5960 { | 5941 { |
5961 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5942 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5962 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); | 5943 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); |
5963 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5944 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5964 } | 5945 } |
5965 | 5946 |
5966 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5947 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5967 { | 5948 { |
5968 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5949 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5969 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); | 5950 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); |
5970 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | 5951 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { |
5971 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an obje
ct."), info.GetIsolate()); | 5952 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); |
5972 return; | 5953 return; |
5973 } | 5954 } |
5974 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 5955 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
5975 } | 5956 } |
5976 | 5957 |
5977 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5958 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5978 { | 5959 { |
5979 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5980 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 5961 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
5981 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5982 } | 5963 } |
5983 | 5964 |
5984 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5965 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5985 { | 5966 { |
5986 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5967 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5987 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); | 5968 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); |
5988 impl->voidMethodVariadicStringArg(variadicStringArgs); | 5969 impl->voidMethodVariadicStringArg(variadicStringArgs); |
5989 } | 5970 } |
5990 | 5971 |
5991 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5972 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5992 { | 5973 { |
5993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5994 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 5975 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); |
5995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5996 } | 5977 } |
5997 | 5978 |
5998 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5979 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5999 { | 5980 { |
6000 if (UNLIKELY(info.Length() < 1)) { | 5981 if (UNLIKELY(info.Length() < 1)) { |
6001 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); | 5982 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
6002 return; | 5983 return; |
6003 } | 5984 } |
6004 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5985 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6005 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 5986 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
6006 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); | 5987 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); |
6007 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 5988 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
6008 } | 5989 } |
6009 | 5990 |
6010 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5991 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6011 { | 5992 { |
6012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6013 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 5994 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info)
; |
6014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6015 } | 5996 } |
6016 | 5997 |
6017 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5998 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6018 { | 5999 { |
6019 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6000 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6020 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 6001 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
6021 for (int i = 0; i < info.Length(); ++i) { | 6002 for (int i = 0; i < info.Length(); ++i) { |
6022 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 6003 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { |
6023 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfac
eEmpty'."), info.GetIsolate()); | 6004 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); |
6024 return; | 6005 return; |
6025 } | 6006 } |
6026 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | 6007 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
6027 } | 6008 } |
6028 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs
); | 6009 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs
); |
6029 } | 6010 } |
6030 | 6011 |
6031 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6012 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6032 { | 6013 { |
6033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6014 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6034 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); | 6015 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in
fo); |
6035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6016 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6036 } | 6017 } |
6037 | 6018 |
6038 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 6019 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
6039 { | 6020 { |
6040 if (UNLIKELY(info.Length() < 1)) { | 6021 if (UNLIKELY(info.Length() < 1)) { |
6041 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEn
oughArguments(1, info.Length())), info.GetIsolate()); | 6022 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); |
6042 return; | 6023 return; |
6043 } | 6024 } |
6044 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6025 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6045 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6026 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6046 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 6027 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
6047 for (int i = 1; i < info.Length(); ++i) { | 6028 for (int i = 1; i < info.Length(); ++i) { |
6048 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 6029 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { |
6049 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not
of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 6030 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
6050 return; | 6031 return; |
6051 } | 6032 } |
6052 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | 6033 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
6053 } | 6034 } |
6054 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter
faceEmptyArg, variadicTestInterfaceEmptyArgs); | 6035 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter
faceEmptyArg, variadicTestInterfaceEmptyArgs); |
6055 } | 6036 } |
6056 | 6037 |
6057 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6038 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6058 { | 6039 { |
6059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6060 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm
ptyArgMethod(info); | 6041 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(info); |
6061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6062 } | 6043 } |
6063 | 6044 |
6064 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6045 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
6065 { | 6046 { |
6066 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6047 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6067 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v
ariadicTestInterfaceWillBeGarbageCollectedArg; | 6048 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v
ariadicTestInterfaceWillBeGarbageCollectedArg; |
6068 for (int i = 0; i < info.Length(); ++i) { | 6049 for (int i = 0; i < info.Length(); ++i) { |
6069 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge
tIsolate())) { | 6050 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge
tIsolate())) { |
6070 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceWillBeGarbageCollectedArg", "TestObject", "parameter 1 is not of t
ype 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); | 6051 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceWillBeGarbageCollectedArg", "TestObjectPython", "parameter 1 is no
t of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); |
6071 return; | 6052 return; |
6072 } | 6053 } |
6073 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil
lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); | 6054 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil
lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); |
6074 } | 6055 } |
6075 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI
nterfaceWillBeGarbageCollectedArg); | 6056 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI
nterfaceWillBeGarbageCollectedArg); |
6076 } | 6057 } |
6077 | 6058 |
6078 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 6059 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
6079 { | 6060 { |
6080 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6061 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6081 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); | 6062 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageColl
ectedArgMethod(info); |
6082 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6083 } | 6064 } |
6084 | 6065 |
6085 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6066 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6086 { | 6067 { |
6087 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6068 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6088 if (UNLIKELY(info.Length() < 1)) { | 6069 if (UNLIKELY(info.Length() < 1)) { |
6089 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6070 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6090 exceptionState.throwIfNeeded(); | 6071 exceptionState.throwIfNeeded(); |
6091 return; | 6072 return; |
6092 } | 6073 } |
6093 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6074 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6094 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6075 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6095 impl->overloadedMethodA(longArg); | 6076 impl->overloadedMethodA(longArg); |
6096 } | 6077 } |
6097 | 6078 |
6098 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6079 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6099 { | 6080 { |
6100 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6081 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6101 if (UNLIKELY(info.Length() < 2)) { | 6082 if (UNLIKELY(info.Length() < 2)) { |
6102 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 6083 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
6103 exceptionState.throwIfNeeded(); | 6084 exceptionState.throwIfNeeded(); |
6104 return; | 6085 return; |
6105 } | 6086 } |
6106 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6087 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6107 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 6088 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
6108 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 6089 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
6109 impl->overloadedMethodA(longArg1, longArg2); | 6090 impl->overloadedMethodA(longArg1, longArg2); |
6110 } | 6091 } |
6111 | 6092 |
6112 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6093 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6113 { | 6094 { |
6114 if (((info.Length() == 1))) { | 6095 if (((info.Length() == 1))) { |
6115 overloadedMethodA1Method(info); | 6096 overloadedMethodA1Method(info); |
6116 return; | 6097 return; |
6117 } | 6098 } |
6118 if (((info.Length() == 2))) { | 6099 if (((info.Length() == 2))) { |
6119 overloadedMethodA2Method(info); | 6100 overloadedMethodA2Method(info); |
6120 return; | 6101 return; |
6121 } | 6102 } |
6122 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6103 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6123 if (UNLIKELY(info.Length() < 1)) { | 6104 if (UNLIKELY(info.Length() < 1)) { |
6124 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6105 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6125 exceptionState.throwIfNeeded(); | 6106 exceptionState.throwIfNeeded(); |
6126 return; | 6107 return; |
6127 } | 6108 } |
6128 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6109 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6129 exceptionState.throwIfNeeded(); | 6110 exceptionState.throwIfNeeded(); |
6130 } | 6111 } |
6131 | 6112 |
6132 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6113 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6133 { | 6114 { |
6134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6135 TestObjectV8Internal::overloadedMethodAMethod(info); | 6116 TestObjectPythonV8Internal::overloadedMethodAMethod(info); |
6136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6137 } | 6118 } |
6138 | 6119 |
6139 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6120 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6140 { | 6121 { |
6141 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6122 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6142 if (UNLIKELY(info.Length() < 1)) { | 6123 if (UNLIKELY(info.Length() < 1)) { |
6143 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6124 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6144 exceptionState.throwIfNeeded(); | 6125 exceptionState.throwIfNeeded(); |
6145 return; | 6126 return; |
6146 } | 6127 } |
6147 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6128 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6148 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6129 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6149 impl->overloadedMethodB(longArg); | 6130 impl->overloadedMethodB(longArg); |
6150 } | 6131 } |
6151 | 6132 |
6152 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6133 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6153 { | 6134 { |
6154 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6155 if (UNLIKELY(info.Length() < 1)) { | 6136 if (UNLIKELY(info.Length() < 1)) { |
6156 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6137 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6157 exceptionState.throwIfNeeded(); | 6138 exceptionState.throwIfNeeded(); |
6158 return; | 6139 return; |
6159 } | 6140 } |
6160 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6141 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6161 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 6142 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
6162 if (UNLIKELY(info.Length() <= 1)) { | 6143 if (UNLIKELY(info.Length() <= 1)) { |
6163 impl->overloadedMethodB(longArg1); | 6144 impl->overloadedMethodB(longArg1); |
6164 return; | 6145 return; |
6165 } | 6146 } |
6166 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 6147 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
6167 impl->overloadedMethodB(longArg1, longArg2); | 6148 impl->overloadedMethodB(longArg1, longArg2); |
6168 } | 6149 } |
6169 | 6150 |
6170 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6151 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6171 { | 6152 { |
6172 if (((info.Length() == 1))) { | 6153 if (((info.Length() == 1))) { |
6173 overloadedMethodB1Method(info); | 6154 overloadedMethodB1Method(info); |
6174 return; | 6155 return; |
6175 } | 6156 } |
6176 if (((info.Length() == 1)) || ((info.Length() == 2))) { | 6157 if (((info.Length() == 1)) || ((info.Length() == 2))) { |
6177 overloadedMethodB2Method(info); | 6158 overloadedMethodB2Method(info); |
6178 return; | 6159 return; |
6179 } | 6160 } |
6180 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6161 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6181 if (UNLIKELY(info.Length() < 1)) { | 6162 if (UNLIKELY(info.Length() < 1)) { |
6182 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6163 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6183 exceptionState.throwIfNeeded(); | 6164 exceptionState.throwIfNeeded(); |
6184 return; | 6165 return; |
6185 } | 6166 } |
6186 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6167 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6187 exceptionState.throwIfNeeded(); | 6168 exceptionState.throwIfNeeded(); |
6188 } | 6169 } |
6189 | 6170 |
6190 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6171 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6191 { | 6172 { |
6192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6193 TestObjectV8Internal::overloadedMethodBMethod(info); | 6174 TestObjectPythonV8Internal::overloadedMethodBMethod(info); |
6194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6195 } | 6176 } |
6196 | 6177 |
6197 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6178 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6198 { | 6179 { |
6199 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 6180 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6200 if (UNLIKELY(info.Length() < 1)) { | 6181 if (UNLIKELY(info.Length() < 1)) { |
6201 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6182 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6202 exceptionState.throwIfNeeded(); | 6183 exceptionState.throwIfNeeded(); |
6203 return; | 6184 return; |
6204 } | 6185 } |
6205 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6186 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6206 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6187 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6207 impl->overloadedMethodC(longArg); | 6188 impl->overloadedMethodC(longArg); |
6208 } | 6189 } |
6209 | 6190 |
6210 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6191 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6211 { | 6192 { |
6212 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 6193 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6213 if (UNLIKELY(info.Length() < 1)) { | 6194 if (UNLIKELY(info.Length() < 1)) { |
6214 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6195 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6215 exceptionState.throwIfNeeded(); | 6196 exceptionState.throwIfNeeded(); |
6216 return; | 6197 return; |
6217 } | 6198 } |
6218 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6199 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6219 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6200 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6220 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); | 6201 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); |
6221 impl->overloadedMethodC(longArg, longArgs); | 6202 impl->overloadedMethodC(longArg, longArgs); |
6222 } | 6203 } |
6223 | 6204 |
6224 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6205 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6225 { | 6206 { |
6226 if (((info.Length() == 1))) { | 6207 if (((info.Length() == 1))) { |
6227 overloadedMethodC1Method(info); | 6208 overloadedMethodC1Method(info); |
6228 return; | 6209 return; |
6229 } | 6210 } |
6230 if () { | 6211 if () { |
6231 overloadedMethodC2Method(info); | 6212 overloadedMethodC2Method(info); |
6232 return; | 6213 return; |
6233 } | 6214 } |
6234 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 6215 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6235 if (UNLIKELY(info.Length() < 1)) { | 6216 if (UNLIKELY(info.Length() < 1)) { |
6236 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6217 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6237 exceptionState.throwIfNeeded(); | 6218 exceptionState.throwIfNeeded(); |
6238 return; | 6219 return; |
6239 } | 6220 } |
6240 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6221 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6241 exceptionState.throwIfNeeded(); | 6222 exceptionState.throwIfNeeded(); |
6242 } | 6223 } |
6243 | 6224 |
6244 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6225 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6245 { | 6226 { |
6246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6247 TestObjectV8Internal::overloadedMethodCMethod(info); | 6228 TestObjectPythonV8Internal::overloadedMethodCMethod(info); |
6248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6249 } | 6230 } |
6250 | 6231 |
6251 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6232 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6252 { | 6233 { |
6253 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 6234 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6254 if (UNLIKELY(info.Length() < 1)) { | 6235 if (UNLIKELY(info.Length() < 1)) { |
6255 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6236 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6256 exceptionState.throwIfNeeded(); | 6237 exceptionState.throwIfNeeded(); |
6257 return; | 6238 return; |
6258 } | 6239 } |
6259 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6240 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6260 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6241 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6261 impl->overloadedMethodD(longArg); | 6242 impl->overloadedMethodD(longArg); |
6262 } | 6243 } |
6263 | 6244 |
6264 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6245 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6265 { | 6246 { |
6266 if (UNLIKELY(info.Length() < 1)) { | 6247 if (UNLIKELY(info.Length() < 1)) { |
6267 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6248 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6268 return; | 6249 return; |
6269 } | 6250 } |
6270 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6251 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6271 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6252 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6272 impl->overloadedMethodD(testInterfaceEmptyArg); | 6253 impl->overloadedMethodD(testInterfaceEmptyArg); |
6273 } | 6254 } |
6274 | 6255 |
6275 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6256 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6276 { | 6257 { |
6277 if (((info.Length() == 1))) { | 6258 if (((info.Length() == 1))) { |
6278 overloadedMethodD1Method(info); | 6259 overloadedMethodD1Method(info); |
6279 return; | 6260 return; |
6280 } | 6261 } |
6281 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())))) { | 6262 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())))) { |
6282 overloadedMethodD2Method(info); | 6263 overloadedMethodD2Method(info); |
6283 return; | 6264 return; |
6284 } | 6265 } |
6285 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 6266 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6286 if (UNLIKELY(info.Length() < 1)) { | 6267 if (UNLIKELY(info.Length() < 1)) { |
6287 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6268 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6288 exceptionState.throwIfNeeded(); | 6269 exceptionState.throwIfNeeded(); |
6289 return; | 6270 return; |
6290 } | 6271 } |
6291 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6272 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6292 exceptionState.throwIfNeeded(); | 6273 exceptionState.throwIfNeeded(); |
6293 } | 6274 } |
6294 | 6275 |
6295 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6276 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6296 { | 6277 { |
6297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6298 TestObjectV8Internal::overloadedMethodDMethod(info); | 6279 TestObjectPythonV8Internal::overloadedMethodDMethod(info); |
6299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6300 } | 6281 } |
6301 | 6282 |
6302 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6283 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6303 { | 6284 { |
6304 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 6285 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6305 if (UNLIKELY(info.Length() < 1)) { | 6286 if (UNLIKELY(info.Length() < 1)) { |
6306 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6287 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6307 exceptionState.throwIfNeeded(); | 6288 exceptionState.throwIfNeeded(); |
6308 return; | 6289 return; |
6309 } | 6290 } |
6310 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6291 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6311 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6292 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6312 impl->overloadedMethodE(longArg); | 6293 impl->overloadedMethodE(longArg); |
6313 } | 6294 } |
6314 | 6295 |
6315 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6296 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6316 { | 6297 { |
6317 if (UNLIKELY(info.Length() < 1)) { | 6298 if (UNLIKELY(info.Length() < 1)) { |
6318 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6299 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6319 return; | 6300 return; |
6320 } | 6301 } |
6321 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6302 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6322 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); | 6303 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
6323 impl->overloadedMethodE(longArrayArg); | 6304 impl->overloadedMethodE(longArrayArg); |
6324 } | 6305 } |
6325 | 6306 |
6326 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6307 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6327 { | 6308 { |
6328 if (((info.Length() == 1))) { | 6309 if (((info.Length() == 1))) { |
6329 overloadedMethodE1Method(info); | 6310 overloadedMethodE1Method(info); |
6330 return; | 6311 return; |
6331 } | 6312 } |
6332 if (((info.Length() == 1) && (info[0]->IsArray()))) { | 6313 if (((info.Length() == 1) && (info[0]->IsArray()))) { |
6333 overloadedMethodE2Method(info); | 6314 overloadedMethodE2Method(info); |
6334 return; | 6315 return; |
6335 } | 6316 } |
6336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 6317 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6337 if (UNLIKELY(info.Length() < 1)) { | 6318 if (UNLIKELY(info.Length() < 1)) { |
6338 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6319 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6339 exceptionState.throwIfNeeded(); | 6320 exceptionState.throwIfNeeded(); |
6340 return; | 6321 return; |
6341 } | 6322 } |
6342 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6323 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6343 exceptionState.throwIfNeeded(); | 6324 exceptionState.throwIfNeeded(); |
6344 } | 6325 } |
6345 | 6326 |
6346 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6327 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6347 { | 6328 { |
6348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6349 TestObjectV8Internal::overloadedMethodEMethod(info); | 6330 TestObjectPythonV8Internal::overloadedMethodEMethod(info); |
6350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6351 } | 6332 } |
6352 | 6333 |
6353 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6334 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6354 { | 6335 { |
6355 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 6336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6356 if (UNLIKELY(info.Length() < 1)) { | 6337 if (UNLIKELY(info.Length() < 1)) { |
6357 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6338 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6358 exceptionState.throwIfNeeded(); | 6339 exceptionState.throwIfNeeded(); |
6359 return; | 6340 return; |
6360 } | 6341 } |
6361 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6342 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6362 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6343 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6363 impl->overloadedMethodF(longArg); | 6344 impl->overloadedMethodF(longArg); |
6364 } | 6345 } |
6365 | 6346 |
6366 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6347 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6367 { | 6348 { |
6368 if (UNLIKELY(info.Length() < 1)) { | 6349 if (UNLIKELY(info.Length() < 1)) { |
6369 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6350 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6370 return; | 6351 return; |
6371 } | 6352 } |
6372 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6353 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6373 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6354 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6374 impl->overloadedMethodF(testInterfaceEmptyNullableArg); | 6355 impl->overloadedMethodF(testInterfaceEmptyNullableArg); |
6375 } | 6356 } |
6376 | 6357 |
6377 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6358 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6378 { | 6359 { |
6379 if (((info.Length() == 1))) { | 6360 if (((info.Length() == 1))) { |
6380 overloadedMethodF1Method(info); | 6361 overloadedMethodF1Method(info); |
6381 return; | 6362 return; |
6382 } | 6363 } |
6383 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has
Instance(info[0], info.GetIsolate())))) { | 6364 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has
Instance(info[0], info.GetIsolate())))) { |
6384 overloadedMethodF2Method(info); | 6365 overloadedMethodF2Method(info); |
6385 return; | 6366 return; |
6386 } | 6367 } |
6387 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 6368 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6388 if (UNLIKELY(info.Length() < 1)) { | 6369 if (UNLIKELY(info.Length() < 1)) { |
6389 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6370 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6390 exceptionState.throwIfNeeded(); | 6371 exceptionState.throwIfNeeded(); |
6391 return; | 6372 return; |
6392 } | 6373 } |
6393 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6374 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6394 exceptionState.throwIfNeeded(); | 6375 exceptionState.throwIfNeeded(); |
6395 } | 6376 } |
6396 | 6377 |
6397 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6378 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6398 { | 6379 { |
6399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6380 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6400 TestObjectV8Internal::overloadedMethodFMethod(info); | 6381 TestObjectPythonV8Internal::overloadedMethodFMethod(info); |
6401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6402 } | 6383 } |
6403 | 6384 |
6404 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6385 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6405 { | 6386 { |
6406 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6387 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6407 impl->overloadedMethodG(); | 6388 impl->overloadedMethodG(); |
6408 } | 6389 } |
6409 | 6390 |
6410 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6391 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6411 { | 6392 { |
6412 if (UNLIKELY(info.Length() < 1)) { | 6393 if (UNLIKELY(info.Length() < 1)) { |
6413 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6394 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6414 return; | 6395 return; |
6415 } | 6396 } |
6416 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6397 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6417 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); | 6398 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); |
6418 impl->overloadedMethodG(strictTypeCheckingStringArg); | 6399 impl->overloadedMethodG(strictTypeCheckingStringArg); |
6419 } | 6400 } |
6420 | 6401 |
6421 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6402 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6422 { | 6403 { |
6423 if (((info.Length() == 0))) { | 6404 if (((info.Length() == 0))) { |
6424 overloadedMethodG1Method(info); | 6405 overloadedMethodG1Method(info); |
6425 return; | 6406 return; |
6426 } | 6407 } |
6427 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { | 6408 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { |
6428 overloadedMethodG2Method(info); | 6409 overloadedMethodG2Method(info); |
6429 return; | 6410 return; |
6430 } | 6411 } |
6431 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "Test
Object", "No function was found that matched the signature provided."), info.Get
Isolate()); | 6412 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); |
6432 } | 6413 } |
6433 | 6414 |
6434 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6415 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6435 { | 6416 { |
6436 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6437 TestObjectV8Internal::overloadedMethodGMethod(info); | 6418 TestObjectPythonV8Internal::overloadedMethodGMethod(info); |
6438 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6439 } | 6420 } |
6440 | 6421 |
6441 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6422 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6442 { | 6423 { |
6443 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6424 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6444 impl->overloadedMethodH(); | 6425 impl->overloadedMethodH(); |
6445 } | 6426 } |
6446 | 6427 |
6447 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6428 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6448 { | 6429 { |
6449 if (UNLIKELY(info.Length() < 1)) { | 6430 if (UNLIKELY(info.Length() < 1)) { |
6450 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6431 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6451 return; | 6432 return; |
6452 } | 6433 } |
6453 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6434 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6454 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 6435 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
6455 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObject", "The callback provided as parameter 1 is not a function."), info.Ge
tIsolate()); | 6436 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObjectPython", "The callback provided as parameter 1 is not a function."), i
nfo.GetIsolate()); |
6456 return; | 6437 return; |
6457 } | 6438 } |
6458 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 6439 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
6459 impl->overloadedMethodH(testCallbackInterfaceArg.release()); | 6440 impl->overloadedMethodH(testCallbackInterfaceArg.release()); |
6460 } | 6441 } |
6461 | 6442 |
6462 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6443 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6463 { | 6444 { |
6464 if (((info.Length() == 0))) { | 6445 if (((info.Length() == 0))) { |
6465 overloadedMethodH1Method(info); | 6446 overloadedMethodH1Method(info); |
6466 return; | 6447 return; |
6467 } | 6448 } |
6468 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsFunction())))
{ | 6449 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsFunction())))
{ |
6469 overloadedMethodH2Method(info); | 6450 overloadedMethodH2Method(info); |
6470 return; | 6451 return; |
6471 } | 6452 } |
6472 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "Test
Object", "No function was found that matched the signature provided."), info.Get
Isolate()); | 6453 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); |
6473 } | 6454 } |
6474 | 6455 |
6475 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6456 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6476 { | 6457 { |
6477 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6478 TestObjectV8Internal::overloadedMethodHMethod(info); | 6459 TestObjectPythonV8Internal::overloadedMethodHMethod(info); |
6479 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6480 } | 6461 } |
6481 | 6462 |
6482 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6463 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6483 { | 6464 { |
6484 if (UNLIKELY(info.Length() < 1)) { | 6465 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6485 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6466 impl->overloadedPerWorldBindingsMethod(); |
6486 return; | |
6487 } | |
6488 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
6489 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); | |
6490 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | |
6491 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", "
TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate
()); | |
6492 return; | |
6493 } | |
6494 impl->overloadedMethodI(dictionaryArg); | |
6495 } | 6467 } |
6496 | 6468 |
6497 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6469 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6498 { | 6470 { |
6499 if (UNLIKELY(info.Length() < 1)) { | 6471 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6500 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", "
TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI
solate()); | 6472 impl->overloadedPerWorldBindingsMethod(); |
6501 return; | |
6502 } | |
6503 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
6504 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); | |
6505 impl->overloadedMethodI(doubleArg); | |
6506 } | 6473 } |
6507 | 6474 |
6508 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6475 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6509 { | 6476 { |
6510 if (((info.Length() == 1) && (info[0]->IsObject()))) { | 6477 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6511 overloadedMethodI1Method(info); | |
6512 return; | |
6513 } | |
6514 if (((info.Length() == 1))) { | |
6515 overloadedMethodI2Method(info); | |
6516 return; | |
6517 } | |
6518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | |
6519 if (UNLIKELY(info.Length() < 1)) { | 6478 if (UNLIKELY(info.Length() < 1)) { |
6520 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6479 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6521 exceptionState.throwIfNeeded(); | 6480 exceptionState.throwIfNeeded(); |
6522 return; | 6481 return; |
6523 } | 6482 } |
6524 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6483 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6525 exceptionState.throwIfNeeded(); | |
6526 } | |
6527 | |
6528 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | |
6529 { | |
6530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
6531 TestObjectV8Internal::overloadedMethodIMethod(info); | |
6532 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
6533 } | |
6534 | |
6535 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | |
6536 { | |
6537 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
6538 impl->overloadedPerWorldBindingsMethod(); | |
6539 } | |
6540 | |
6541 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | |
6542 { | |
6543 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
6544 impl->overloadedPerWorldBindingsMethod(); | |
6545 } | |
6546 | |
6547 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | |
6548 { | |
6549 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | |
6550 if (UNLIKELY(info.Length() < 1)) { | |
6551 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | |
6552 exceptionState.throwIfNeeded(); | |
6553 return; | |
6554 } | |
6555 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
6556 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6484 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6557 impl->overloadedPerWorldBindingsMethod(longArg); | 6485 impl->overloadedPerWorldBindingsMethod(longArg); |
6558 } | 6486 } |
6559 | 6487 |
6560 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6488 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6561 { | 6489 { |
6562 if (((info.Length() == 0))) { | 6490 if (((info.Length() == 0))) { |
6563 overloadedPerWorldBindingsMethod1Method(info); | 6491 overloadedPerWorldBindingsMethod1Method(info); |
6564 return; | 6492 return; |
6565 } | 6493 } |
6566 if (((info.Length() == 1))) { | 6494 if (((info.Length() == 1))) { |
6567 overloadedPerWorldBindingsMethod2Method(info); | 6495 overloadedPerWorldBindingsMethod2Method(info); |
6568 return; | 6496 return; |
6569 } | 6497 } |
6570 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBinding
sMethod", "TestObject", "No function was found that matched the signature provid
ed."), info.GetIsolate()); | 6498 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBinding
sMethod", "TestObjectPython", "No function was found that matched the signature
provided."), info.GetIsolate()); |
6571 } | 6499 } |
6572 | 6500 |
6573 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6501 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6574 { | 6502 { |
6575 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6576 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 6504 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
6577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6505 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6578 } | 6506 } |
6579 | 6507 |
6580 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 6508 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6581 { | 6509 { |
6582 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6510 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6583 if (UNLIKELY(info.Length() < 1)) { | 6511 if (UNLIKELY(info.Length() < 1)) { |
6584 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6512 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6585 exceptionState.throwIfNeeded(); | 6513 exceptionState.throwIfNeeded(); |
6586 return; | 6514 return; |
6587 } | 6515 } |
6588 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6516 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6589 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6517 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6590 impl->overloadedPerWorldBindingsMethod(longArg); | 6518 impl->overloadedPerWorldBindingsMethod(longArg); |
6591 } | 6519 } |
6592 | 6520 |
6593 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6521 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6594 { | 6522 { |
6595 if (((info.Length() == 0))) { | 6523 if (((info.Length() == 0))) { |
6596 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 6524 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
6597 return; | 6525 return; |
6598 } | 6526 } |
6599 if (((info.Length() == 1))) { | 6527 if (((info.Length() == 1))) { |
6600 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 6528 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
6601 return; | 6529 return; |
6602 } | 6530 } |
6603 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBinding
sMethod", "TestObject", "No function was found that matched the signature provid
ed."), info.GetIsolate()); | 6531 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBinding
sMethod", "TestObjectPython", "No function was found that matched the signature
provided."), info.GetIsolate()); |
6604 } | 6532 } |
6605 | 6533 |
6606 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6534 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6607 { | 6535 { |
6608 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6609 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); | 6537 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethodForMainWor
ld(info); |
6610 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6611 } | 6539 } |
6612 | 6540 |
6613 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6541 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6614 { | 6542 { |
6615 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6543 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6616 if (UNLIKELY(info.Length() < 1)) { | 6544 if (UNLIKELY(info.Length() < 1)) { |
6617 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6545 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6618 exceptionState.throwIfNeeded(); | 6546 exceptionState.throwIfNeeded(); |
6619 return; | 6547 return; |
6620 } | 6548 } |
6621 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6549 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6622 TestObject::overloadedStaticMethod(longArg); | 6550 TestObjectPython::overloadedStaticMethod(longArg); |
6623 } | 6551 } |
6624 | 6552 |
6625 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6553 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6626 { | 6554 { |
6627 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6555 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6628 if (UNLIKELY(info.Length() < 2)) { | 6556 if (UNLIKELY(info.Length() < 2)) { |
6629 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 6557 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
6630 exceptionState.throwIfNeeded(); | 6558 exceptionState.throwIfNeeded(); |
6631 return; | 6559 return; |
6632 } | 6560 } |
6633 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 6561 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
6634 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 6562 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
6635 TestObject::overloadedStaticMethod(longArg1, longArg2); | 6563 TestObjectPython::overloadedStaticMethod(longArg1, longArg2); |
6636 } | 6564 } |
6637 | 6565 |
6638 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 6566 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
6639 { | 6567 { |
6640 if (((info.Length() == 1))) { | 6568 if (((info.Length() == 1))) { |
6641 overloadedStaticMethod1Method(info); | 6569 overloadedStaticMethod1Method(info); |
6642 return; | 6570 return; |
6643 } | 6571 } |
6644 if (((info.Length() == 2))) { | 6572 if (((info.Length() == 2))) { |
6645 overloadedStaticMethod2Method(info); | 6573 overloadedStaticMethod2Method(info); |
6646 return; | 6574 return; |
6647 } | 6575 } |
6648 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6576 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6649 if (UNLIKELY(info.Length() < 1)) { | 6577 if (UNLIKELY(info.Length() < 1)) { |
6650 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6578 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6651 exceptionState.throwIfNeeded(); | 6579 exceptionState.throwIfNeeded(); |
6652 return; | 6580 return; |
6653 } | 6581 } |
6654 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6582 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
6655 exceptionState.throwIfNeeded(); | 6583 exceptionState.throwIfNeeded(); |
6656 } | 6584 } |
6657 | 6585 |
6658 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6586 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6659 { | 6587 { |
6660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6661 TestObjectV8Internal::overloadedStaticMethodMethod(info); | 6589 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); |
6662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6663 } | 6591 } |
6664 | 6592 |
6665 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6593 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6666 { | 6594 { |
6667 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 6595 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6668 if (UNLIKELY(info.Length() < 1)) { | 6596 if (UNLIKELY(info.Length() < 1)) { |
6669 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6597 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6670 exceptionState.throwIfNeeded(); | 6598 exceptionState.throwIfNeeded(); |
6671 return; | 6599 return; |
6672 } | 6600 } |
6673 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6601 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6674 unsigned clampUnsignedShortArg = 0; | 6602 unsigned clampUnsignedShortArg = 0; |
6675 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); | 6603 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); |
6676 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 6604 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
6677 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 6605 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
6678 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 6606 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
6679 } | 6607 } |
6680 | 6608 |
6681 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6609 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
6682 { | 6610 { |
6683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6684 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 6612 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
6685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6686 } | 6614 } |
6687 | 6615 |
6688 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6616 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6689 { | 6617 { |
6690 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6618 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6691 if (UNLIKELY(info.Length() < 1)) { | 6619 if (UNLIKELY(info.Length() < 1)) { |
6692 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6620 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6693 exceptionState.throwIfNeeded(); | 6621 exceptionState.throwIfNeeded(); |
6694 return; | 6622 return; |
6695 } | 6623 } |
6696 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6624 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6697 unsigned clampUnsignedLongArg = 0; | 6625 unsigned clampUnsignedLongArg = 0; |
6698 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); | 6626 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); |
6699 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 6627 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
6700 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | 6628 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
6701 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 6629 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
6702 } | 6630 } |
6703 | 6631 |
6704 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6632 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6705 { | 6633 { |
6706 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6707 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 6635 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
6708 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6709 } | 6637 } |
6710 | 6638 |
6711 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6639 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6712 { | 6640 { |
6713 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6641 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6714 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6642 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6715 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn
terfaceEmptyArg); | 6643 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn
terfaceEmptyArg); |
6716 } | 6644 } |
6717 | 6645 |
6718 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6646 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
6719 { | 6647 { |
6720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6721 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); | 6649 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(info); |
6722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6723 } | 6651 } |
6724 | 6652 |
6725 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6653 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6726 { | 6654 { |
6727 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6655 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6728 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6656 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6729 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedLongArg, toInt32(info[0], exc
eptionState), exceptionState); | 6657 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedLongArg, toInt32(info[0], exc
eptionState), exceptionState); |
6730 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 6658 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
6731 } | 6659 } |
6732 | 6660 |
6733 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 6661 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
6734 { | 6662 { |
6735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6736 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 6664 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
6737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6665 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6738 } | 6666 } |
6739 | 6667 |
6740 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 6668 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
6741 { | 6669 { |
6742 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6670 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6743 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); | 6671 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); |
6744 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 6672 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
6745 } | 6673 } |
6746 | 6674 |
6747 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 6675 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
6748 { | 6676 { |
6749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6750 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 6678 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
6751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6752 } | 6680 } |
6753 | 6681 |
6754 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6682 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6755 { | 6683 { |
6756 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6684 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6757 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); | 6685 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); |
6758 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 6686 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
6759 } | 6687 } |
6760 | 6688 |
6761 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6689 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6762 { | 6690 { |
6763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6764 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); | 6692 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info)
; |
6765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6766 } | 6694 } |
6767 | 6695 |
6768 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6696 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6769 { | 6697 { |
6770 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6698 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6771 if (UNLIKELY(info.Length() < 1)) { | 6699 if (UNLIKELY(info.Length() < 1)) { |
6772 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6700 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6773 exceptionState.throwIfNeeded(); | 6701 exceptionState.throwIfNeeded(); |
6774 return; | 6702 return; |
6775 } | 6703 } |
6776 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6704 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6777 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce
Range, exceptionState), exceptionState); | 6705 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce
Range, exceptionState), exceptionState); |
6778 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 6706 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
6779 } | 6707 } |
6780 | 6708 |
6781 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6709 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6782 { | 6710 { |
6783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6784 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 6712 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
6785 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6786 } | 6714 } |
6787 | 6715 |
6788 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6716 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6789 { | 6717 { |
6790 if (UNLIKELY(info.Length() < 1)) { | 6718 if (UNLIKELY(info.Length() < 1)) { |
6791 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringStringArg", "TestObject", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); | 6719 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); |
6792 return; | 6720 return; |
6793 } | 6721 } |
6794 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6722 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6795 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); | 6723 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); |
6796 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 6724 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
6797 } | 6725 } |
6798 | 6726 |
6799 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 6727 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
6800 { | 6728 { |
6801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6802 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 6730 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i
nfo); |
6803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6804 } | 6732 } |
6805 | 6733 |
6806 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 6734 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
6807 { | 6735 { |
6808 if (UNLIKELY(info.Length() < 1)) { | 6736 if (UNLIKELY(info.Length() < 1)) { |
6809 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringTreatUndefinedAsNullStringStringArg", "TestObject", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); | 6737 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes
sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
6810 return; | 6738 return; |
6811 } | 6739 } |
6812 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6740 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6813 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); | 6741 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); |
6814 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 6742 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
6815 } | 6743 } |
6816 | 6744 |
6817 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6745 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6818 { | 6746 { |
6819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6747 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6820 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); | 6748 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN
ullStringStringArgMethod(info); |
6821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6749 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6822 } | 6750 } |
6823 | 6751 |
6824 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6752 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6825 { | 6753 { |
6826 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6754 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6827 impl->activityLoggingAccessForAllWorldsMethod(); | 6755 impl->activityLoggingAccessForAllWorldsMethod(); |
6828 } | 6756 } |
6829 | 6757 |
6830 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6758 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6831 { | 6759 { |
6832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6833 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6761 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
6834 if (contextData && contextData->activityLogger()) { | 6762 if (contextData && contextData->activityLogger()) { |
6835 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6763 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
6836 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsMethod", info.Length(), loggerArgs.data(), "Method"); | 6764 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); |
6837 } | 6765 } |
6838 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 6766 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in
fo); |
6839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6840 } | 6768 } |
6841 | 6769 |
6842 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6770 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6843 { | 6771 { |
6844 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6772 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6845 ScriptState* currentState = ScriptState::current(); | 6773 ScriptState* currentState = ScriptState::current(); |
6846 if (!currentState) | 6774 if (!currentState) |
6847 return; | 6775 return; |
6848 ScriptState& state = *currentState; | 6776 ScriptState& state = *currentState; |
6849 impl->callWithScriptStateVoidMethod(&state); | 6777 impl->callWithScriptStateVoidMethod(&state); |
6850 if (state.hadException()) { | 6778 if (state.hadException()) { |
6851 v8::Local<v8::Value> exception = state.exception(); | 6779 v8::Local<v8::Value> exception = state.exception(); |
6852 state.clearException(); | 6780 state.clearException(); |
6853 throwError(exception, info.GetIsolate()); | 6781 throwError(exception, info.GetIsolate()); |
6854 return; | 6782 return; |
6855 } | 6783 } |
6856 } | 6784 } |
6857 | 6785 |
6858 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6786 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6859 { | 6787 { |
6860 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6861 TestObjectV8Internal::callWithScriptStateVoidMethodMethod(info); | 6789 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); |
6862 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6863 } | 6791 } |
6864 | 6792 |
6865 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6793 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6866 { | 6794 { |
6867 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6795 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6868 ScriptState* currentState = ScriptState::current(); | 6796 ScriptState* currentState = ScriptState::current(); |
6869 if (!currentState) | 6797 if (!currentState) |
6870 return; | 6798 return; |
6871 ScriptState& state = *currentState; | 6799 ScriptState& state = *currentState; |
6872 int result = impl->callWithScriptStateLongMethod(&state); | 6800 int result = impl->callWithScriptStateLongMethod(&state); |
6873 if (state.hadException()) { | 6801 if (state.hadException()) { |
6874 v8::Local<v8::Value> exception = state.exception(); | 6802 v8::Local<v8::Value> exception = state.exception(); |
6875 state.clearException(); | 6803 state.clearException(); |
6876 throwError(exception, info.GetIsolate()); | 6804 throwError(exception, info.GetIsolate()); |
6877 return; | 6805 return; |
6878 } | 6806 } |
6879 v8SetReturnValueInt(info, result); | 6807 v8SetReturnValueInt(info, result); |
6880 } | 6808 } |
6881 | 6809 |
6882 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6810 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6883 { | 6811 { |
6884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6812 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6885 TestObjectV8Internal::callWithScriptStateLongMethodMethod(info); | 6813 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); |
6886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6814 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6887 } | 6815 } |
6888 | 6816 |
6889 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6817 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
6890 { | 6818 { |
6891 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6819 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6892 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 6820 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
6893 impl->callWithExecutionContextVoidMethod(scriptContext); | 6821 impl->callWithExecutionContextVoidMethod(scriptContext); |
6894 } | 6822 } |
6895 | 6823 |
6896 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 6824 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
6897 { | 6825 { |
6898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6899 TestObjectV8Internal::callWithExecutionContextVoidMethodMethod(info); | 6827 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); |
6900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6901 } | 6829 } |
6902 | 6830 |
6903 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 6831 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6904 { | 6832 { |
6905 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6833 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6906 ScriptState* currentState = ScriptState::current(); | 6834 ScriptState* currentState = ScriptState::current(); |
6907 if (!currentState) | 6835 if (!currentState) |
6908 return; | 6836 return; |
6909 ScriptState& state = *currentState; | 6837 ScriptState& state = *currentState; |
6910 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 6838 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
6911 impl->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); | 6839 impl->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); |
6912 if (state.hadException()) { | 6840 if (state.hadException()) { |
6913 v8::Local<v8::Value> exception = state.exception(); | 6841 v8::Local<v8::Value> exception = state.exception(); |
6914 state.clearException(); | 6842 state.clearException(); |
6915 throwError(exception, info.GetIsolate()); | 6843 throwError(exception, info.GetIsolate()); |
6916 return; | 6844 return; |
6917 } | 6845 } |
6918 } | 6846 } |
6919 | 6847 |
6920 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 6848 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
6921 { | 6849 { |
6922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6923 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in
fo); | 6851 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet
hod(info); |
6924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6925 } | 6853 } |
6926 | 6854 |
6927 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6855 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6928 { | 6856 { |
6929 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6857 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6930 ScriptState* currentState = ScriptState::current(); | 6858 ScriptState* currentState = ScriptState::current(); |
6931 if (!currentState) | 6859 if (!currentState) |
6932 return; | 6860 return; |
6933 ScriptState& state = *currentState; | 6861 ScriptState& state = *currentState; |
6934 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); | 6862 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); |
6935 impl->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.r
elease()); | 6863 impl->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.r
elease()); |
6936 if (state.hadException()) { | 6864 if (state.hadException()) { |
6937 v8::Local<v8::Value> exception = state.exception(); | 6865 v8::Local<v8::Value> exception = state.exception(); |
6938 state.clearException(); | 6866 state.clearException(); |
6939 throwError(exception, info.GetIsolate()); | 6867 throwError(exception, info.GetIsolate()); |
6940 return; | 6868 return; |
6941 } | 6869 } |
6942 } | 6870 } |
6943 | 6871 |
6944 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6872 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6945 { | 6873 { |
6946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6874 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6947 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf
o); | 6875 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth
od(info); |
6948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6876 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6949 } | 6877 } |
6950 | 6878 |
6951 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) | 6879 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) |
6952 { | 6880 { |
6953 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6881 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6954 if (UNLIKELY(info.Length() <= 0)) { | 6882 if (UNLIKELY(info.Length() <= 0)) { |
6955 ScriptState* currentState = ScriptState::current(); | 6883 ScriptState* currentState = ScriptState::current(); |
6956 if (!currentState) | 6884 if (!currentState) |
6957 return; | 6885 return; |
6958 ScriptState& state = *currentState; | 6886 ScriptState& state = *currentState; |
6959 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 6887 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); |
6960 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&st
ate, scriptArguments.release()); | 6888 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&st
ate, scriptArguments.release()); |
6961 if (state.hadException()) { | 6889 if (state.hadException()) { |
6962 v8::Local<v8::Value> exception = state.exception(); | 6890 v8::Local<v8::Value> exception = state.exception(); |
6963 state.clearException(); | 6891 state.clearException(); |
(...skipping 13 matching lines...) Expand all Loading... |
6977 v8::Local<v8::Value> exception = state.exception(); | 6905 v8::Local<v8::Value> exception = state.exception(); |
6978 state.clearException(); | 6906 state.clearException(); |
6979 throwError(exception, info.GetIsolate()); | 6907 throwError(exception, info.GetIsolate()); |
6980 return; | 6908 return; |
6981 } | 6909 } |
6982 } | 6910 } |
6983 | 6911 |
6984 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6912 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6985 { | 6913 { |
6986 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6987 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo
oleanArgMethod(info); | 6915 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti
onalBooleanArgMethod(info); |
6988 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6989 } | 6917 } |
6990 | 6918 |
6991 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 6919 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
6992 { | 6920 { |
6993 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6921 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6994 impl->callWithActiveWindow(callingDOMWindow(info.GetIsolate())); | 6922 impl->callWithActiveWindow(callingDOMWindow(info.GetIsolate())); |
6995 } | 6923 } |
6996 | 6924 |
6997 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 6925 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
6998 { | 6926 { |
6999 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7000 TestObjectV8Internal::callWithActiveWindowMethod(info); | 6928 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); |
7001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6929 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7002 } | 6930 } |
7003 | 6931 |
7004 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6932 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7005 { | 6933 { |
7006 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6934 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7007 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate())); | 6935 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate())); |
7008 } | 6936 } |
7009 | 6937 |
7010 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6938 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7011 { | 6939 { |
7012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7013 TestObjectV8Internal::callWithActiveWindowScriptWindowMethod(info); | 6941 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); |
7014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7015 } | 6943 } |
7016 | 6944 |
7017 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6945 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
7018 { | 6946 { |
7019 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6947 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7020 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeVoidMethod(exceptionState), exceptionState)) { | 6948 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeVoidMethod(exceptionState), exceptionState)) { |
7021 v8SetReturnValueNull(info); | 6949 v8SetReturnValueNull(info); |
7022 exceptionState.throwIfNeeded(); | 6950 exceptionState.throwIfNeeded(); |
7023 return; | 6951 return; |
7024 } | 6952 } |
7025 impl->checkSecurityForNodeVoidMethod(); | 6953 impl->checkSecurityForNodeVoidMethod(); |
7026 } | 6954 } |
7027 | 6955 |
7028 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6956 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7029 { | 6957 { |
7030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7031 TestObjectV8Internal::checkSecurityForNodeVoidMethodMethod(info); | 6959 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); |
7032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7033 } | 6961 } |
7034 | 6962 |
7035 #if ENABLE(CONDITION) | 6963 #if ENABLE(CONDITION) |
7036 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6964 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
7037 { | 6965 { |
7038 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6966 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7039 impl->conditionalConditionVoidMethod(); | 6967 impl->conditionalConditionVoidMethod(); |
7040 } | 6968 } |
7041 #endif // ENABLE(CONDITION) | 6969 #endif // ENABLE(CONDITION) |
7042 | 6970 |
7043 #if ENABLE(CONDITION) | 6971 #if ENABLE(CONDITION) |
7044 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6972 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7045 { | 6973 { |
7046 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7047 TestObjectV8Internal::conditionalConditionVoidMethodMethod(info); | 6975 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); |
7048 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7049 } | 6977 } |
7050 #endif // ENABLE(CONDITION) | 6978 #endif // ENABLE(CONDITION) |
7051 | 6979 |
7052 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6980 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7053 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6981 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7054 { | 6982 { |
7055 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6983 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7056 impl->conditionalCondition1AndCondition2VoidMethod(); | 6984 impl->conditionalCondition1AndCondition2VoidMethod(); |
7057 } | 6985 } |
7058 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6986 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7059 | 6987 |
7060 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6988 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7061 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6989 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
7062 { | 6990 { |
7063 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7064 TestObjectV8Internal::conditionalCondition1AndCondition2VoidMethodMethod(inf
o); | 6992 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth
od(info); |
7065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7066 } | 6994 } |
7067 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6995 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7068 | 6996 |
7069 #if ENABLE(CONDITION) | 6997 #if ENABLE(CONDITION) |
7070 static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6998 static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7071 { | 6999 { |
7072 TestObject::conditionalConditionStaticVoidMethod(); | 7000 TestObjectPython::conditionalConditionStaticVoidMethod(); |
7073 } | 7001 } |
7074 #endif // ENABLE(CONDITION) | 7002 #endif // ENABLE(CONDITION) |
7075 | 7003 |
7076 #if ENABLE(CONDITION) | 7004 #if ENABLE(CONDITION) |
7077 static void conditionalConditionStaticVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7005 static void conditionalConditionStaticVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7078 { | 7006 { |
7079 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7080 TestObjectV8Internal::conditionalConditionStaticVoidMethodMethod(info); | 7008 TestObjectPythonV8Internal::conditionalConditionStaticVoidMethodMethod(info)
; |
7081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7082 } | 7010 } |
7083 #endif // ENABLE(CONDITION) | 7011 #endif // ENABLE(CONDITION) |
7084 | 7012 |
7085 static void customVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 7013 static void customVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
7086 { | 7014 { |
7087 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7015 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7088 V8TestObject::customVoidMethodMethodCustom(info); | 7016 V8TestObjectPython::customVoidMethodMethodCustom(info); |
7089 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7017 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7090 } | 7018 } |
7091 | 7019 |
7092 #if ENABLE(CONDITION) | 7020 #if ENABLE(CONDITION) |
7093 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7021 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7094 { | 7022 { |
7095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7096 V8TestObject::conditionalConditionCustomVoidMethodMethodCustom(info); | 7024 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); |
7097 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7098 } | 7026 } |
7099 #endif // ENABLE(CONDITION) | 7027 #endif // ENABLE(CONDITION) |
7100 | 7028 |
7101 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7029 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7102 { | 7030 { |
7103 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7031 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7104 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 7032 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
7105 impl->customElementCallbacksVoidMethod(); | 7033 impl->customElementCallbacksVoidMethod(); |
7106 } | 7034 } |
7107 | 7035 |
7108 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7036 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7109 { | 7037 { |
7110 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7038 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7111 TestObjectV8Internal::customElementCallbacksVoidMethodMethod(info); | 7039 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); |
7112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7040 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7113 } | 7041 } |
7114 | 7042 |
7115 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 7043 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
7116 { | 7044 { |
7117 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7045 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7118 impl->deprecatedVoidMethod(); | 7046 impl->deprecatedVoidMethod(); |
7119 } | 7047 } |
7120 | 7048 |
7121 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7049 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7122 { | 7050 { |
7123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7124 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::voidMethod); | 7052 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::voidMethod); |
7125 TestObjectV8Internal::deprecatedVoidMethodMethod(info); | 7053 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); |
7126 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7127 } | 7055 } |
7128 | 7056 |
7129 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7057 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
7130 { | 7058 { |
7131 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7059 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7132 impl->doNotCheckSignatureVoidMethod(); | 7060 impl->doNotCheckSignatureVoidMethod(); |
7133 } | 7061 } |
7134 | 7062 |
7135 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 7063 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
7136 { | 7064 { |
7137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7138 TestObjectV8Internal::doNotCheckSignatureVoidMethodMethod(info); | 7066 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); |
7139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7140 } | 7068 } |
7141 | 7069 |
7142 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 7070 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
7143 { | 7071 { |
7144 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7072 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7145 impl->implementedAsMethodName(); | 7073 impl->implementedAsMethodName(); |
7146 } | 7074 } |
7147 | 7075 |
7148 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7076 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7149 { | 7077 { |
7150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7078 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7151 TestObjectV8Internal::implementedAsVoidMethodMethod(info); | 7079 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); |
7152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7080 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7153 } | 7081 } |
7154 | 7082 |
7155 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7083 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7156 { | 7084 { |
7157 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7085 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7158 impl->measureAsVoidMethod(); | 7086 impl->measureAsVoidMethod(); |
7159 } | 7087 } |
7160 | 7088 |
7161 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7089 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7162 { | 7090 { |
7163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7164 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 7092 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
7165 TestObjectV8Internal::measureAsVoidMethodMethod(info); | 7093 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); |
7166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7167 } | 7095 } |
7168 | 7096 |
7169 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 7097 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
7170 { | 7098 { |
7171 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7099 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7172 impl->notEnumerableVoidMethod(); | 7100 impl->notEnumerableVoidMethod(); |
7173 } | 7101 } |
7174 | 7102 |
7175 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7103 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7176 { | 7104 { |
7177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7178 TestObjectV8Internal::notEnumerableVoidMethodMethod(info); | 7106 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); |
7179 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7180 } | 7108 } |
7181 | 7109 |
7182 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7110 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7183 { | 7111 { |
7184 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7112 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7185 impl->perContextEnabledVoidMethod(); | 7113 impl->perContextEnabledVoidMethod(); |
7186 } | 7114 } |
7187 | 7115 |
7188 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7116 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7189 { | 7117 { |
7190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7191 TestObjectV8Internal::perContextEnabledVoidMethodMethod(info); | 7119 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); |
7192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7193 } | 7121 } |
7194 | 7122 |
7195 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7123 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7196 { | 7124 { |
7197 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7125 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7198 impl->perWorldBindingsVoidMethod(); | 7126 impl->perWorldBindingsVoidMethod(); |
7199 } | 7127 } |
7200 | 7128 |
7201 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7129 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7202 { | 7130 { |
7203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7204 TestObjectV8Internal::perWorldBindingsVoidMethodMethod(info); | 7132 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); |
7205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7206 } | 7134 } |
7207 | 7135 |
7208 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7136 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7209 { | 7137 { |
7210 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7138 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7211 impl->perWorldBindingsVoidMethod(); | 7139 impl->perWorldBindingsVoidMethod(); |
7212 } | 7140 } |
7213 | 7141 |
7214 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7142 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7215 { | 7143 { |
7216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7217 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info); | 7145 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf
o); |
7218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7219 } | 7147 } |
7220 | 7148 |
7221 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7149 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7222 { | 7150 { |
7223 if (UNLIKELY(info.Length() < 1)) { | 7151 if (UNLIKELY(info.Length() < 1)) { |
7224 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments
(1, info.Length())), info.GetIsolate()); | 7152 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
7225 return; | 7153 return; |
7226 } | 7154 } |
7227 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7155 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7228 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7156 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
7229 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; | 7157 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
7230 } | 7158 } |
7231 | 7159 |
7232 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7160 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7233 { | 7161 { |
7234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7235 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(
info); | 7163 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethod(info); |
7236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7237 } | 7165 } |
7238 | 7166 |
7239 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 7167 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
7240 { | 7168 { |
7241 if (UNLIKELY(info.Length() < 1)) { | 7169 if (UNLIKELY(info.Length() < 1)) { |
7242 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments
(1, info.Length())), info.GetIsolate()); | 7170 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
7243 return; | 7171 return; |
7244 } | 7172 } |
7245 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7173 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7246 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7174 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
7247 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; | 7175 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
7248 } | 7176 } |
7249 | 7177 |
7250 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) | 7178 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) |
7251 { | 7179 { |
7252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7253 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF
orMainWorld(info); | 7181 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethodForMainWorld(info); |
7254 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7255 } | 7183 } |
7256 | 7184 |
7257 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7185 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
7258 { | 7186 { |
7259 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7187 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7260 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 7188 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
7261 } | 7189 } |
7262 | 7190 |
7263 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7191 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
7264 { | 7192 { |
7265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7266 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7194 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
7267 if (contextData && contextData->activityLogger()) { | 7195 if (contextData && contextData->activityLogger()) { |
7268 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7196 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
7269 contextData->activityLogger()->log("TestObject.activityLoggingForAllWorl
dsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); | 7197 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; |
7270 } | 7198 } |
7271 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); | 7199 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethod(info); |
7272 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7200 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7273 } | 7201 } |
7274 | 7202 |
7275 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7203 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
7276 { | 7204 { |
7277 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7205 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7278 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 7206 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
7279 } | 7207 } |
7280 | 7208 |
7281 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7209 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
7282 { | 7210 { |
7283 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7284 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7212 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
7285 if (contextData && contextData->activityLogger()) { | 7213 if (contextData && contextData->activityLogger()) { |
7286 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7214 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
7287 contextData->activityLogger()->log("TestObject.activityLoggingForAllWorl
dsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); | 7215 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; |
7288 } | 7216 } |
7289 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); | 7217 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethodForMainWorld(info); |
7290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7291 } | 7219 } |
7292 | 7220 |
7293 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 7221 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
7294 { | 7222 { |
7295 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7223 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7296 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 7224 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
7297 } | 7225 } |
7298 | 7226 |
7299 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 7227 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
7300 { | 7228 { |
7301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7302 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7230 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
7303 if (contextData && contextData->activityLogger()) { | 7231 if (contextData && contextData->activityLogger()) { |
7304 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7232 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
7305 contextData->activityLogger()->log("TestObject.activityLoggingForIsolate
dWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); | 7233 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met
hod"); |
7306 } | 7234 } |
7307 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); | 7235 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethod(info); |
7308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7309 } | 7237 } |
7310 | 7238 |
7311 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7239 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
7312 { | 7240 { |
7313 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7241 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7314 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 7242 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
7315 } | 7243 } |
7316 | 7244 |
7317 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7245 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
7318 { | 7246 { |
7319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7320 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethodForMainWorld(info); | 7248 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethodForMainWorld(info); |
7321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7322 } | 7250 } |
7323 | 7251 |
7324 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7252 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
7325 { | 7253 { |
7326 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7254 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
7327 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7255 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7328 impl->raisesExceptionVoidMethod(exceptionState); | 7256 impl->raisesExceptionVoidMethod(exceptionState); |
7329 if (exceptionState.throwIfNeeded()) | 7257 if (exceptionState.throwIfNeeded()) |
7330 return; | 7258 return; |
7331 } | 7259 } |
7332 | 7260 |
7333 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7261 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
7334 { | 7262 { |
7335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7336 TestObjectV8Internal::raisesExceptionVoidMethodMethod(info); | 7264 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); |
7337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7338 } | 7266 } |
7339 | 7267 |
7340 static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7268 static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7341 { | 7269 { |
7342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionStringMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7270 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
7343 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7271 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7344 String result = impl->raisesExceptionStringMethod(exceptionState); | 7272 String result = impl->raisesExceptionStringMethod(exceptionState); |
7345 if (exceptionState.throwIfNeeded()) | 7273 if (exceptionState.throwIfNeeded()) |
7346 return; | 7274 return; |
7347 v8SetReturnValueString(info, result, info.GetIsolate()); | 7275 v8SetReturnValueString(info, result, info.GetIsolate()); |
7348 } | 7276 } |
7349 | 7277 |
7350 static void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7278 static void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7351 { | 7279 { |
7352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7353 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); | 7281 TestObjectPythonV8Internal::raisesExceptionStringMethodMethod(info); |
7354 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7282 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7355 } | 7283 } |
7356 | 7284 |
7357 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7285 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7358 { | 7286 { |
7359 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7287 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsola
te()); |
7360 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7288 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7361 if (UNLIKELY(info.Length() <= 0)) { | 7289 if (UNLIKELY(info.Length() <= 0)) { |
7362 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 7290 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
7363 if (exceptionState.throwIfNeeded()) | 7291 if (exceptionState.throwIfNeeded()) |
7364 return; | 7292 return; |
7365 return; | 7293 return; |
7366 } | 7294 } |
7367 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 7295 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
7368 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); | 7296 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
7369 if (exceptionState.throwIfNeeded()) | 7297 if (exceptionState.throwIfNeeded()) |
7370 return; | 7298 return; |
7371 } | 7299 } |
7372 | 7300 |
7373 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7301 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7374 { | 7302 { |
7375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7303 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7376 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); | 7304 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i
nfo); |
7377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7378 } | 7306 } |
7379 | 7307 |
7380 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7308 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7381 { | 7309 { |
7382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs
olate()); | 7310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObjectPython", info.Holder(), info
.GetIsolate()); |
7383 if (UNLIKELY(info.Length() < 1)) { | 7311 if (UNLIKELY(info.Length() < 1)) { |
7384 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 7312 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
7385 exceptionState.throwIfNeeded(); | 7313 exceptionState.throwIfNeeded(); |
7386 return; | 7314 return; |
7387 } | 7315 } |
7388 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7316 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7389 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 7317 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
7390 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); | 7318 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); |
7391 exceptionState.throwIfNeeded(); | 7319 exceptionState.throwIfNeeded(); |
7392 return; | 7320 return; |
7393 } | 7321 } |
7394 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 7322 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
7395 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); | 7323 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); |
7396 if (exceptionState.throwIfNeeded()) | 7324 if (exceptionState.throwIfNeeded()) |
7397 return; | 7325 return; |
7398 } | 7326 } |
7399 | 7327 |
7400 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 7328 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
7401 { | 7329 { |
7402 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7403 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho
d(info); | 7331 TestObjectPythonV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceAr
gMethod(info); |
7404 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7405 } | 7333 } |
7406 | 7334 |
7407 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 7335 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
7408 { | 7336 { |
7409 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in
fo.GetIsolate()); | 7337 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObjectPython", info.Holder
(), info.GetIsolate()); |
7410 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7338 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7411 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; | 7339 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; |
7412 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { | 7340 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { |
7413 if (!info[0]->IsFunction()) { | 7341 if (!info[0]->IsFunction()) { |
7414 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 7342 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
7415 exceptionState.throwIfNeeded(); | 7343 exceptionState.throwIfNeeded(); |
7416 return; | 7344 return; |
7417 } | 7345 } |
7418 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); | 7346 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); |
7419 } | 7347 } |
7420 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest
CallbackInterfaceArg.release(), exceptionState); | 7348 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest
CallbackInterfaceArg.release(), exceptionState); |
7421 if (exceptionState.throwIfNeeded()) | 7349 if (exceptionState.throwIfNeeded()) |
7422 return; | 7350 return; |
7423 } | 7351 } |
7424 | 7352 |
7425 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) | 7353 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
7426 { | 7354 { |
7427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7355 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7428 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface
ArgMethod(info); | 7356 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInt
erfaceArgMethod(info); |
7429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7357 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7430 } | 7358 } |
7431 | 7359 |
7432 static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 7360 static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
7433 { | 7361 { |
7434 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionTestInterfaceEmptyVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); | 7362 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionTestInterfaceEmptyVoidMethod", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
7435 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7363 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7436 RefPtr<TestInterfaceEmpty> result = impl->raisesExceptionTestInterfaceEmptyV
oidMethod(exceptionState); | 7364 RefPtr<TestInterfaceEmpty> result = impl->raisesExceptionTestInterfaceEmptyV
oidMethod(exceptionState); |
7437 if (exceptionState.throwIfNeeded()) | 7365 if (exceptionState.throwIfNeeded()) |
7438 return; | 7366 return; |
7439 v8SetReturnValue(info, result.release()); | 7367 v8SetReturnValue(info, result.release()); |
7440 } | 7368 } |
7441 | 7369 |
7442 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 7370 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
7443 { | 7371 { |
7444 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7445 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info
); | 7373 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMetho
d(info); |
7446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
7447 } | |
7448 | |
7449 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | |
7450 { | |
7451 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | |
7452 if (UNLIKELY(info.Length() < 1)) { | |
7453 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | |
7454 exceptionState.throwIfNeeded(); | |
7455 return; | |
7456 } | |
7457 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
7458 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | |
7459 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | |
7460 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); | |
7461 if (exceptionState.throwIfNeeded()) | |
7462 return; | |
7463 } | |
7464 | |
7465 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | |
7466 { | |
7467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
7468 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); | |
7469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7470 } | 7375 } |
7471 | 7376 |
7472 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7377 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7473 { | 7378 { |
7474 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7379 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7475 impl->readOnlyVoidMethod(); | 7380 impl->readOnlyVoidMethod(); |
7476 } | 7381 } |
7477 | 7382 |
7478 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7383 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7479 { | 7384 { |
7480 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7385 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7481 TestObjectV8Internal::readOnlyVoidMethodMethod(info); | 7386 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); |
7482 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7387 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7483 } | 7388 } |
7484 | 7389 |
7485 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7390 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7486 { | 7391 { |
7487 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7392 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7488 impl->notEnumerableReadOnlyVoidMethod(); | 7393 impl->notEnumerableReadOnlyVoidMethod(); |
7489 } | 7394 } |
7490 | 7395 |
7491 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7396 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7492 { | 7397 { |
7493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7494 TestObjectV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); | 7399 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); |
7495 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7496 } | 7401 } |
7497 | 7402 |
7498 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 7403 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
7499 { | 7404 { |
7500 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7405 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7501 impl->runtimeEnabledVoidMethod(); | 7406 impl->runtimeEnabledVoidMethod(); |
7502 } | 7407 } |
7503 | 7408 |
7504 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7409 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7505 { | 7410 { |
7506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7507 TestObjectV8Internal::runtimeEnabledVoidMethodMethod(info); | 7412 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); |
7508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7509 } | 7414 } |
7510 | 7415 |
7511 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7416 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7512 { | 7417 { |
7513 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7418 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7514 impl->perWorldBindingsRuntimeEnabledVoidMethod(); | 7419 impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
7515 } | 7420 } |
7516 | 7421 |
7517 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7422 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7518 { | 7423 { |
7519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7520 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(info); | 7425 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i
nfo); |
7521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7522 } | 7427 } |
7523 | 7428 |
7524 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7429 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
7525 { | 7430 { |
7526 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7431 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7527 impl->perWorldBindingsRuntimeEnabledVoidMethod(); | 7432 impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
7528 } | 7433 } |
7529 | 7434 |
7530 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 7435 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
7531 { | 7436 { |
7532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7533 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); | 7438 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo
rMainWorld(info); |
7534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7439 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7535 } | 7440 } |
7536 | 7441 |
7537 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7442 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7538 { | 7443 { |
7539 if (UNLIKELY(info.Length() < 1)) { | 7444 if (UNLIKELY(info.Length() < 1)) { |
7540 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArgumen
ts(1, info.Length())), info.GetIsolate()); | 7445 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA
rguments(1, info.Length())), info.GetIsolate()); |
7541 return; | 7446 return; |
7542 } | 7447 } |
7543 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7448 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7544 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { | 7449 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { |
7545 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); | 7450 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type '
TestInterfaceEmpty'."), info.GetIsolate()); |
7546 return; | 7451 return; |
7547 } | 7452 } |
7548 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7453 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
7549 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr
g); | 7454 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr
g); |
7550 } | 7455 } |
7551 | 7456 |
7552 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 7457 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
7553 { | 7458 { |
7554 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7555 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMetho
d(info); | 7460 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr
gMethod(info); |
7556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7557 } | 7462 } |
7558 | 7463 |
7559 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7464 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7560 { | 7465 { |
7561 if (UNLIKELY(info.Length() < 1)) { | 7466 if (UNLIKELY(info.Length() < 1)) { |
7562 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObject", ExceptionMessages::notEnoughA
rguments(1, info.Length())), info.GetIsolate()); | 7467 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObjectPython", ExceptionMessages::notE
noughArguments(1, info.Length())), info.GetIsolate()); |
7563 return; | 7468 return; |
7564 } | 7469 } |
7565 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7470 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7566 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { | 7471 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { |
7567 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type '
TestInterfaceEmpty'."), info.GetIsolate()); | 7472 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObjectPython", "parameter 1 is not of
type 'TestInterfaceEmpty'."), info.GetIsolate()); |
7568 return; | 7473 return; |
7569 } | 7474 } |
7570 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7475 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
7571 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE
mptyArg); | 7476 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE
mptyArg); |
7572 } | 7477 } |
7573 | 7478 |
7574 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) | 7479 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
7575 { | 7480 { |
7576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7481 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7577 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullAr
gMethod(info); | 7482 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOr
NullArgMethod(info); |
7578 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7579 } | 7484 } |
7580 | 7485 |
7581 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 7486 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
7582 { | 7487 { |
7583 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7488 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7584 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Method(), info.GetIsolate()); | 7489 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Method(), info.GetIsolate()); |
7585 } | 7490 } |
7586 | 7491 |
7587 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7492 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7588 { | 7493 { |
7589 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7494 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7590 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info); | 7495 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod(
info); |
7591 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7592 } | 7497 } |
7593 | 7498 |
7594 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7499 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7595 { | 7500 { |
7596 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7501 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7597 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringMethod(), info.GetIsolate()); | 7502 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringMethod(), info.GetIsolate()); |
7598 } | 7503 } |
7599 | 7504 |
7600 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7505 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
7601 { | 7506 { |
7602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7507 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7603 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i
nfo); | 7508 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe
thod(info); |
7604 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7509 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7605 } | 7510 } |
7606 | 7511 |
7607 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7512 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
7608 { | 7513 { |
7609 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7514 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7610 impl->unforgeableVoidMethod(); | 7515 impl->unforgeableVoidMethod(); |
7611 } | 7516 } |
7612 | 7517 |
7613 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7518 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
7614 { | 7519 { |
7615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7616 TestObjectV8Internal::unforgeableVoidMethodMethod(info); | 7521 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); |
7617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7618 } | 7523 } |
7619 | 7524 |
7620 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7525 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7621 { | 7526 { |
7622 if (UNLIKELY(info.Length() < 1)) { | 7527 if (UNLIKELY(info.Length() < 1)) { |
7623 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedSequenceArg", "TestObject", ExceptionMessages::notEnough
Arguments(1, info.Length())), info.GetIsolate()); | 7528 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedSequenceArg", "TestObjectPython", ExceptionMessages::not
EnoughArguments(1, info.Length())), info.GetIsolate()); |
7624 return; | 7529 return; |
7625 } | 7530 } |
7626 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7531 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7627 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toMemberNativeA
rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>
(info[0], 1, info.GetIsolate()))); | 7532 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toMemberNativeA
rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>
(info[0], 1, info.GetIsolate()))); |
7628 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 7533 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
7629 } | 7534 } |
7630 | 7535 |
7631 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 7536 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
7632 { | 7537 { |
7633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7634 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 7539 TestObjectPythonV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSeq
uenceArgMethod(info); |
7635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7636 } | 7541 } |
7637 | 7542 |
7638 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7543 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
7639 { | 7544 { |
7640 if (UNLIKELY(info.Length() < 1)) { | 7545 if (UNLIKELY(info.Length() < 1)) { |
7641 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedArrayArg", "TestObject", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); | 7546 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedArrayArg", "TestObjectPython", ExceptionMessages::notEno
ughArguments(1, info.Length())), info.GetIsolate()); |
7642 return; | 7547 return; |
7643 } | 7548 } |
7644 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7549 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7645 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toMemberNativeArra
y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in
fo[0], 1, info.GetIsolate()))); | 7550 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toMemberNativeArra
y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in
fo[0], 1, info.GetIsolate()))); |
7646 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 7551 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
7647 } | 7552 } |
7648 | 7553 |
7649 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7554 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
7650 { | 7555 { |
7651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7652 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); | 7557 TestObjectPythonV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArr
ayArgMethod(info); |
7653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7654 } | 7559 } |
7655 | 7560 |
7656 } // namespace TestObjectV8Internal | 7561 } // namespace TestObjectPythonV8Internal |
7657 | 7562 |
7658 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { | 7563 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { |
7659 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7564 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7660 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}, | 7565 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
7661 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7566 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7662 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 7567 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
7663 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 7568 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
7664 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu
teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7569 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
7665 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa
llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 7570 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
7666 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback
, TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 7571 {"byteAttribute", TestObjectPythonV8Internal::byteAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::byteAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
7667 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall
back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 7572 {"doubleAttribute", TestObjectPythonV8Internal::doubleAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::doubleAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
7668 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba
ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 7573 {"floatAttribute", TestObjectPythonV8Internal::floatAttributeAttributeGetter
Callback, TestObjectPythonV8Internal::floatAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
7669 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback
, TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 7574 {"longAttribute", TestObjectPythonV8Internal::longAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::longAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
7670 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter
Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 7575 {"longLongAttribute", TestObjectPythonV8Internal::longLongAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::longLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
7671 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba
ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 7576 {"octetAttribute", TestObjectPythonV8Internal::octetAttributeAttributeGetter
Callback, TestObjectPythonV8Internal::octetAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
7672 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 7577 {"shortAttribute", TestObjectPythonV8Internal::shortAttributeAttributeGetter
Callback, TestObjectPythonV8Internal::shortAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
7673 {"unsignedLongAttribute", TestObjectV8Internal::unsignedLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::unsignedLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7578 {"unsignedLongAttribute", TestObjectPythonV8Internal::unsignedLongAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::unsignedLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7674 {"unsignedLongLongAttribute", TestObjectV8Internal::unsignedLongLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::unsignedLongLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7579 {"unsignedLongLongAttribute", TestObjectPythonV8Internal::unsignedLongLongAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::unsignedLongLongAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7675 {"unsignedShortAttribute", TestObjectV8Internal::unsignedShortAttributeAttri
buteGetterCallback, TestObjectV8Internal::unsignedShortAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 7580 {"unsignedShortAttribute", TestObjectPythonV8Internal::unsignedShortAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::unsignedShortAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7676 {"testInterfaceEmptyAttribute", TestObjectV8Internal::testInterfaceEmptyAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmptyAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7581 {"testInterfaceEmptyAttribute", TestObjectPythonV8Internal::testInterfaceEmp
tyAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testInterfaceEmp
tyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7677 {"testObjectAttribute", TestObjectV8Internal::testObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::testObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7582 {"testObjectPythonAttribute", TestObjectPythonV8Internal::testObjectPythonAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::testObjectPythonAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7678 {"voidCallbackFunctionAttribute", TestObjectV8Internal::voidCallbackFunction
AttributeAttributeGetterCallback, TestObjectV8Internal::voidCallbackFunctionAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7583 {"voidCallbackFunctionAttribute", TestObjectPythonV8Internal::voidCallbackFu
nctionAttributeAttributeGetterCallback, TestObjectPythonV8Internal::voidCallback
FunctionAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, |
7679 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectV8Internal::anyCall
backFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectV8Internal
::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 7584 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectPythonV8Internal::a
nyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectPyth
onV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
7680 {"cssAttribute", TestObjectV8Internal::cssAttributeAttributeGetterCallback,
TestObjectV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 7585 {"cssAttribute", TestObjectPythonV8Internal::cssAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
7681 {"imeAttribute", TestObjectV8Internal::imeAttributeAttributeGetterCallback,
TestObjectV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 7586 {"imeAttribute", TestObjectPythonV8Internal::imeAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
7682 {"svgAttribute", TestObjectV8Internal::svgAttributeAttributeGetterCallback,
TestObjectV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 7587 {"svgAttribute", TestObjectPythonV8Internal::svgAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
7683 {"xmlAttribute", TestObjectV8Internal::xmlAttributeAttributeGetterCallback,
TestObjectV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 7588 {"xmlAttribute", TestObjectPythonV8Internal::xmlAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
7684 {"nodeFilterAttribute", TestObjectV8Internal::nodeFilterAttributeAttributeGe
tterCallback, TestObjectV8Internal::nodeFilterAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7589 {"nodeFilterAttribute", TestObjectPythonV8Internal::nodeFilterAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::nodeFilterAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7685 {"serializedScriptValueAttribute", TestObjectV8Internal::serializedScriptVal
ueAttributeAttributeGetterCallback, TestObjectV8Internal::serializedScriptValueA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7590 {"serializedScriptValueAttribute", TestObjectPythonV8Internal::serializedScr
iptValueAttributeAttributeGetterCallback, TestObjectPythonV8Internal::serialized
ScriptValueAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
7686 {"anyAttribute", TestObjectV8Internal::anyAttributeAttributeGetterCallback,
TestObjectV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 7591 {"anyAttribute", TestObjectPythonV8Internal::anyAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
7687 {"promiseAttribute", TestObjectV8Internal::promiseAttributeAttributeGetterCa
llback, TestObjectV8Internal::promiseAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 7592 {"promiseAttribute", TestObjectPythonV8Internal::promiseAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::promiseAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
7688 {"windowAttribute", TestObjectV8Internal::windowAttributeAttributeGetterCall
back, TestObjectV8Internal::windowAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 7593 {"windowAttribute", TestObjectPythonV8Internal::windowAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::windowAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
7689 {"documentAttribute", TestObjectV8Internal::documentAttributeAttributeGetter
Callback, TestObjectV8Internal::documentAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 7594 {"documentAttribute", TestObjectPythonV8Internal::documentAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::documentAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
7690 {"documentFragmentAttribute", TestObjectV8Internal::documentFragmentAttribut
eAttributeGetterCallback, TestObjectV8Internal::documentFragmentAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7595 {"documentFragmentAttribute", TestObjectPythonV8Internal::documentFragmentAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::documentFragmentAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7691 {"documentTypeAttribute", TestObjectV8Internal::documentTypeAttributeAttribu
teGetterCallback, TestObjectV8Internal::documentTypeAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7596 {"documentTypeAttribute", TestObjectPythonV8Internal::documentTypeAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::documentTypeAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7692 {"elementAttribute", TestObjectV8Internal::elementAttributeAttributeGetterCa
llback, TestObjectV8Internal::elementAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 7597 {"elementAttribute", TestObjectPythonV8Internal::elementAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::elementAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
7693 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 7598 {"nodeAttribute", TestObjectPythonV8Internal::nodeAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::nodeAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
7694 {"shadowRootAttribute", TestObjectV8Internal::shadowRootAttributeAttributeGe
tterCallback, TestObjectV8Internal::shadowRootAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7599 {"shadowRootAttribute", TestObjectPythonV8Internal::shadowRootAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::shadowRootAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7695 {"arrayBufferAttribute", TestObjectV8Internal::arrayBufferAttributeAttribute
GetterCallback, TestObjectV8Internal::arrayBufferAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 7600 {"arrayBufferAttribute", TestObjectPythonV8Internal::arrayBufferAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::arrayBufferAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7696 {"float32ArrayAttribute", TestObjectV8Internal::float32ArrayAttributeAttribu
teGetterCallback, TestObjectV8Internal::float32ArrayAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7601 {"float32ArrayAttribute", TestObjectPythonV8Internal::float32ArrayAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::float32ArrayAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7697 {"uint8ArrayAttribute", TestObjectV8Internal::uint8ArrayAttributeAttributeGe
tterCallback, TestObjectV8Internal::uint8ArrayAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7602 {"uint8ArrayAttribute", TestObjectPythonV8Internal::uint8ArrayAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7698 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), 0 /* on instance */}, | 7603 {"self", TestObjectPythonV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
7699 {"readonlyEventTargetAttribute", TestObjectV8Internal::readonlyEventTargetAt
tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7604 {"readonlyEventTargetAttribute", TestObjectPythonV8Internal::readonlyEventTa
rgetAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, |
7700 {"readonlyEventTargetOrNullAttribute", TestObjectV8Internal::readonlyEventTa
rgetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 7605 {"readonlyEventTargetOrNullAttribute", TestObjectPythonV8Internal::readonlyE
ventTargetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
7701 {"readonlyWindowAttribute", TestObjectV8Internal::readonlyWindowAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7606 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7702 {"htmlCollectionAttribute", TestObjectV8Internal::htmlCollectionAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7607 {"htmlCollectionAttribute", TestObjectPythonV8Internal::htmlCollectionAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7703 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute
GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7608 {"htmlElementAttribute", TestObjectPythonV8Internal::htmlElementAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7704 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute
GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 7609 {"stringArrayAttribute", TestObjectPythonV8Internal::stringArrayAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::stringArrayAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7705 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt
yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty
ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7610 {"testInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::testInterfa
ceEmptyArrayAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testIn
terfaceEmptyArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
7706 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe
tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7611 {"floatArrayAttribute", TestObjectPythonV8Internal::floatArrayAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::floatArrayAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7707 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu
teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7612 {"stringOrNullAttribute", TestObjectPythonV8Internal::stringOrNullAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::stringOrNullAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7708 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe
tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7613 {"longOrNullAttribute", TestObjectPythonV8Internal::longOrNullAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::longOrNullAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7709 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt
tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7614 {"testInterfaceOrNullAttribute", TestObjectPythonV8Internal::testInterfaceOr
NullAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testInterfaceO
rNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7710 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter
Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 7615 {"testEnumAttribute", TestObjectPythonV8Internal::testEnumAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::testEnumAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
7711 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu
teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7616 {"testObjectAConstructorAttribute", TestObjectPythonV8Internal::TestObjectPy
thonConstructorGetter, TestObjectPythonV8Internal::TestObjectPythonReplaceableAt
tributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestObjectA::wrappe
rTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::DontEnum), 0 /* on instance */}, |
7712 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 7617 {"eventHandlerAttribute", TestObjectPythonV8Internal::eventHandlerAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::eventHandlerAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7713 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 7618 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7714 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 7619 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7715 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7620 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7716 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu
tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx
ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 7621 {"cachedAttributeAnyAttribute", TestObjectPythonV8Internal::cachedAttributeA
nyAttributeAttributeGetterCallback, TestObjectPythonV8Internal::cachedAttributeA
nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7717 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec
kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 7622 {"callWithExecutionContextAnyAttribute", TestObjectPythonV8Internal::callWit
hExecutionContextAnyAttributeAttributeGetterCallback, TestObjectPythonV8Internal
::callWithExecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
7718 #if ENABLE(CONDITION) | 7623 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
7719 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7624 #if ENABLE(CONDITION) |
| 7625 {"conditionalLongAttribute", TestObjectPythonV8Internal::conditionalLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::conditionalLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7720 #endif // ENABLE(CONDITION) | 7626 #endif // ENABLE(CONDITION) |
7721 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 7627 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7722 {"conditionalAndLongAttribute", TestObjectV8Internal::conditionalAndLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::conditionalAndLongAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7628 {"conditionalAndLongAttribute", TestObjectPythonV8Internal::conditionalAndLo
ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::conditionalAndLo
ngAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7723 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 7629 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7724 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 7630 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
7725 {"conditionalOrLongAttribute", TestObjectV8Internal::conditionalOrLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::conditionalOrLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7631 {"conditionalOrLongAttribute", TestObjectPythonV8Internal::conditionalOrLong
AttributeAttributeGetterCallback, TestObjectPythonV8Internal::conditionalOrLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7726 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 7632 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
7727 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::TestObjectC
onstructorGetter, TestObjectV8Internal::TestObjectReplaceableAttributeSetterCall
back, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo)
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::DontEnum), 0 /* on instance */}, | 7633 {"customObjectAttribute", TestObjectPythonV8Internal::customObjectAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::customObjectAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7728 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa
ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::Test
ObjectReplaceableAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8
TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */}, | 7634 {"customGetterLongAttribute", TestObjectPythonV8Internal::customGetterLongAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::customGetterLongAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7729 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I
nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe
tterCallback, TestObjectV8Internal::TestObjectReplaceableAttributeSetterCallback
, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::DontEnum), 0 /* on instance */}, | 7635 {"customGetterReadonlyObjectAttribute", TestObjectPythonV8Internal::customGe
tterReadonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
7730 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu
teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7636 {"customSetterLongAttribute", TestObjectPythonV8Internal::customSetterLongAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::customSetterLongAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7731 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7637 #if ENABLE(CONDITION) |
7732 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe
adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}, | 7638 {"customLongAttribute", TestObjectPythonV8Internal::customLongAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::customLongAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7733 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7639 #endif // ENABLE(CONDITION) |
7734 #if ENABLE(CONDITION) | 7640 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal:
:customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
7735 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe
tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7641 {"deprecatedLongAttribute", TestObjectPythonV8Internal::deprecatedLongAttrib
uteAttributeGetterCallback, TestObjectPythonV8Internal::deprecatedLongAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7736 #endif // ENABLE(CONDITION) | 7642 {"enforceRangeLongAttribute", TestObjectPythonV8Internal::enforceRangeLongAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::enforceRangeLongAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7737 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo
mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), 0 /* on instance */}, | 7643 {"implementedAsLongAttribute", TestObjectPythonV8Internal::implementedAsLong
AttributeAttributeGetterCallback, TestObjectPythonV8Internal::implementedAsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7738 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt
ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7644 {"customImplementedAsLongAttribute", TestObjectPythonV8Internal::customImple
mentedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::custom
ImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
7739 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7645 {"customGetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo
mGetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte
rnal::customGetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
7740 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7646 {"customSetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo
mSetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte
rnal::customSetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
7741 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented
AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA
sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7647 {"measureAsLongAttribute", TestObjectPythonV8Internal::measureAsLongAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::measureAsLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7742 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette
rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom
GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 7648 {"notEnumerableLongAttribute", TestObjectPythonV8Internal::notEnumerableLong
AttributeAttributeGetterCallback, TestObjectPythonV8Internal::notEnumerableLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */}, |
7743 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette
rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom
SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 7649 {"perWorldBindingsLongAttribute", TestObjectPythonV8Internal::perWorldBindin
gsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perWorldBind
ingsLongAttributeAttributeSetterCallback, TestObjectPythonV8Internal::perWorldBi
ndingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Intern
al::perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static_
cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non
e), 0 /* on instance */}, |
7744 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri
buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 7650 {"perWorldBindingsReadonlyLongAttribute", TestObjectPythonV8Internal::perWor
ldBindingsReadonlyLongAttributeAttributeGetterCallback, 0, TestObjectPythonV8Int
ernal::perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainWorld,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, |
7745 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */}, | 7651 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectPythonV8In
ternal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallba
ck, 0, TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAtt
ributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, |
7746 {"perWorldBindingsLongAttribute", TestObjectV8Internal::perWorldBindingsLong
AttributeAttributeGetterCallback, TestObjectV8Internal::perWorldBindingsLongAttr
ibuteAttributeSetterCallback, TestObjectV8Internal::perWorldBindingsLongAttribut
eAttributeGetterCallbackForMainWorld, TestObjectV8Internal::perWorldBindingsLong
AttributeAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, | 7652 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectPythonV8Int
ernal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback
, TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribute
AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingAccessPerWor
ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In
ternal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbac
kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
7747 {"perWorldBindingsReadonlyLongAttribute", TestObjectV8Internal::perWorldBind
ingsReadonlyLongAttributeAttributeGetterCallback, 0, TestObjectV8Internal::perWo
rldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainWorld, 0, 0, stati
c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N
one), 0 /* on instance */}, | 7653 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo
ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingA
ccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test
ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo
ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti
vityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa
llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7748 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal
::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0,
TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib
uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7654 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectPythonV8Int
ernal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback
, TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribute
AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingGetterPerWor
ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In
ternal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbac
kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
7749 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal:
:activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet
terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr
ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA
ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 7655 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo
ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingG
etterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test
ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo
ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti
vityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa
llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7750 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte
rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu
teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, | 7656 {"location", TestObjectPythonV8Internal::locationAttributeGetterCallback, Te
stObjectPythonV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
7751 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal:
:activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet
terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr
ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG
etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 7657 {"locationWithException", TestObjectPythonV8Internal::locationWithExceptionA
ttributeGetterCallback, TestObjectPythonV8Internal::locationWithExceptionAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7752 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte
rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu
teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, | 7658 {"locationWithCallWith", TestObjectPythonV8Internal::locationWithCallWithAtt
ributeGetterCallback, TestObjectPythonV8Internal::locationWithCallWithAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7753 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje
ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 7659 {"locationWithPerWorldBindings", TestObjectPythonV8Internal::locationWithPer
WorldBindingsAttributeGetterCallback, TestObjectPythonV8Internal::locationWithPe
rWorldBindingsAttributeSetterCallback, TestObjectPythonV8Internal::locationWithP
erWorldBindingsAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::
locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
7754 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu
teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 7660 {"locationWillBeGarbageCollected", TestObjectPythonV8Internal::locationWillB
eGarbageCollectedAttributeGetterCallback, TestObjectPythonV8Internal::locationWi
llBeGarbageCollectedAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
7755 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute
GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 7661 {"raisesExceptionLongAttribute", TestObjectPythonV8Internal::raisesException
LongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::raisesExceptio
nLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7756 {"locationWithPerWorldBindings", TestObjectV8Internal::locationWithPerWorldB
indingsAttributeGetterCallback, TestObjectV8Internal::locationWithPerWorldBindin
gsAttributeSetterCallback, TestObjectV8Internal::locationWithPerWorldBindingsAtt
ributeGetterCallbackForMainWorld, TestObjectV8Internal::locationWithPerWorldBind
ingsAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7662 {"raisesExceptionGetterLongAttribute", TestObjectPythonV8Internal::raisesExc
eptionGetterLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::ra
isesExceptionGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
7757 {"locationWillBeGarbageCollected", TestObjectV8Internal::locationWillBeGarba
geCollectedAttributeGetterCallback, TestObjectV8Internal::locationWillBeGarbageC
ollectedAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7663 {"setterRaisesExceptionLongAttribute", TestObjectPythonV8Internal::setterRai
sesExceptionLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::se
tterRaisesExceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
7758 {"raisesExceptionLongAttribute", TestObjectV8Internal::raisesExceptionLongAt
tributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptionLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7664 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::r
aisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectPyth
onV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
7759 {"raisesExceptionGetterLongAttribute", TestObjectV8Internal::raisesException
GetterLongAttributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptio
nGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 7665 {"cachedAttributeRaisesExceptionGetterAnyAttribute", TestObjectPythonV8Inter
nal::cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, Te
stObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7760 {"setterRaisesExceptionLongAttribute", TestObjectV8Internal::setterRaisesExc
eptionLongAttributeAttributeGetterCallback, TestObjectV8Internal::setterRaisesEx
ceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 7666 {"reflectTestInterfaceAttribute", TestObjectPythonV8Internal::reflectTestInt
erfaceAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectTestI
nterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, |
7761 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectV8Internal::raisesE
xceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectV8Internal
::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 7667 {"reflectReflectedNameAttributeTestAttribute", TestObjectPythonV8Internal::r
eflectReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectPyth
onV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
7762 {"cachedAttributeRaisesExceptionGetterAnyAttribute", TestObjectV8Internal::c
achedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, TestObje
ctV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 7668 {"reflectBooleanAttribute", TestObjectPythonV8Internal::reflectBooleanAttrib
uteAttributeGetterCallback, TestObjectPythonV8Internal::reflectBooleanAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7763 {"reflectTestInterfaceAttribute", TestObjectV8Internal::reflectTestInterface
AttributeAttributeGetterCallback, TestObjectV8Internal::reflectTestInterfaceAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7669 {"reflectLongAttribute", TestObjectPythonV8Internal::reflectLongAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::reflectLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7764 {"reflectReflectedNameAttributeTestAttribute", TestObjectV8Internal::reflect
ReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectV8Internal
::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 7670 {"reflectUnsignedShortAttribute", TestObjectPythonV8Internal::reflectUnsigne
dShortAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectUnsig
nedShortAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, |
7765 {"reflectBooleanAttribute", TestObjectV8Internal::reflectBooleanAttributeAtt
ributeGetterCallback, TestObjectV8Internal::reflectBooleanAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7671 {"reflectUnsignedLongAttribute", TestObjectPythonV8Internal::reflectUnsigned
LongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectUnsigne
dLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7766 {"reflectLongAttribute", TestObjectV8Internal::reflectLongAttributeAttribute
GetterCallback, TestObjectV8Internal::reflectLongAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 7672 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, TestObjectPyth
onV8Internal::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, |
7767 {"reflectUnsignedShortAttribute", TestObjectV8Internal::reflectUnsignedShort
AttributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedShortAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7673 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, TestObject
PythonV8Internal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
7768 {"reflectUnsignedLongAttribute", TestObjectV8Internal::reflectUnsignedLongAt
tributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7674 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, TestObje
ctPythonV8Internal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on in
stance */}, |
7769 {"id", TestObjectV8Internal::idAttributeGetterCallback, TestObjectV8Internal
::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7675 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba
ck, TestObjectPythonV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, |
7770 {"name", TestObjectV8Internal::nameAttributeGetterCallback, TestObjectV8Inte
rnal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7676 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, TestObjectPythonV8Internal::reflectedNameAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
7771 {"class", TestObjectV8Internal::classAttributeGetterCallback, TestObjectV8In
ternal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7677 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, TestObjectPythonV8Internal::reflectedClassAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
7772 {"reflectedId", TestObjectV8Internal::reflectedIdAttributeGetterCallback, Te
stObjectV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 7678 {"limitedToOnlyOneAttribute", TestObjectPythonV8Internal::limitedToOnlyOneAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOneAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7773 {"reflectedName", TestObjectV8Internal::reflectedNameAttributeGetterCallback
, TestObjectV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 7679 {"limitedToOnlyAttribute", TestObjectPythonV8Internal::limitedToOnlyAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7774 {"reflectedClass", TestObjectV8Internal::reflectedClassAttributeGetterCallba
ck, TestObjectV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 7680 {"limitedToOnlyOtherAttribute", TestObjectPythonV8Internal::limitedToOnlyOth
erAttributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOth
erAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7775 {"limitedToOnlyOneAttribute", TestObjectV8Internal::limitedToOnlyOneAttribut
eAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOneAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7681 {"limitedWithMissingDefaultAttribute", TestObjectPythonV8Internal::limitedWi
thMissingDefaultAttributeAttributeGetterCallback, TestObjectPythonV8Internal::li
mitedWithMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
7776 {"limitedToOnlyAttribute", TestObjectV8Internal::limitedToOnlyAttributeAttri
buteGetterCallback, TestObjectV8Internal::limitedToOnlyAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 7682 {"limitedWithInvalidMissingDefaultAttribute", TestObjectPythonV8Internal::li
mitedWithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectPython
V8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, |
7777 {"limitedToOnlyOtherAttribute", TestObjectV8Internal::limitedToOnlyOtherAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOtherAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7683 {"corsSettingAttribute", TestObjectPythonV8Internal::corsSettingAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7778 {"limitedWithMissingDefaultAttribute", TestObjectV8Internal::limitedWithMiss
ingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::limitedWithMis
singDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 7684 {"limitedWithEmptyMissingInvalidAttribute", TestObjectPythonV8Internal::limi
tedWithEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
7779 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW
ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::
limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati
c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N
one), 0 /* on instance */}, | 7685 {"replaceableReadonlyLongAttribute", TestObjectPythonV8Internal::replaceable
ReadonlyLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::TestOb
jectPythonReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan
ce */}, |
7780 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute
GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7686 {"locationReplaceable", TestObjectPythonV8Internal::locationReplaceableAttri
buteGetterCallback, TestObjectPythonV8Internal::locationReplaceableAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7781 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit
hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 7687 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectPython
V8Internal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindow
StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, |
7782 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon
lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectReplacea
bleAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7688 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal
::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje
ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
7783 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe
tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 7689 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC
heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict
TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
7784 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte
rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall
back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7690 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str
ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8
Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
7785 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett
erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In
ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, | 7691 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu
llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal
::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
7786 {"strictTypeCheckingFloatAttribute", TestObjectV8Internal::strictTypeCheckin
gFloatAttributeAttributeGetterCallback, TestObjectV8Internal::strictTypeChecking
FloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7692 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal:
:treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject
PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
7787 {"strictTypeCheckingTestInterfaceAttribute", TestObjectV8Internal::strictTyp
eCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Internal::st
rictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 7693 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte
rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback,
TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7788 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu
llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA
sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 7694 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu
teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
7789 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat
ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 7695 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu
teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
7790 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb
jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 7696 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS
_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta
nce */}, |
7791 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 7697 {"anotherStringAttribute", TestObjectPythonV8Internal::anotherStringAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::anotherStringAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7792 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 7698 {"testInterfacePythonAttribute", TestObjectPythonV8Internal::testInterfacePy
thonAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testInterfaceP
ythonAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7793 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */}, | 7699 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectPythonV8Internal:
:testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObject
PythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
7794 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 7700 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectPythonV8Int
ernal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback
, TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribute
AttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7795 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | |
7796 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | |
7797 }; | 7701 }; |
7798 | 7702 |
7799 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 7703 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectPythonAccesso
rs[] = { |
7800 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None)}, | 7704 {"exposeJSAccessorsLongAttribute", TestObjectPythonV8Internal::exposeJSAcces
sorsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::exposeJSAc
cessorsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)}, |
7801 }; | 7705 }; |
7802 | 7706 |
7803 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 7707 static const V8DOMConfiguration::MethodConfiguration V8TestObjectPythonMethods[]
= { |
7804 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, | 7708 {"voidMethod", TestObjectPythonV8Internal::voidMethodMethodCallback, 0, 0}, |
7805 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0}, | 7709 {"dateMethod", TestObjectPythonV8Internal::dateMethodMethodCallback, 0, 0}, |
7806 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0}, | 7710 {"stringMethod", TestObjectPythonV8Internal::stringMethodMethodCallback, 0,
0}, |
7807 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0}, | 7711 {"readonlyDOMTimeStampMethod", TestObjectPythonV8Internal::readonlyDOMTimeSt
ampMethodMethodCallback, 0, 0}, |
7808 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0}, | 7712 {"booleanMethod", TestObjectPythonV8Internal::booleanMethodMethodCallback, 0
, 0}, |
7809 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0}, | 7713 {"byteMethod", TestObjectPythonV8Internal::byteMethodMethodCallback, 0, 0}, |
7810 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0}, | 7714 {"doubleMethod", TestObjectPythonV8Internal::doubleMethodMethodCallback, 0,
0}, |
7811 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0}, | 7715 {"floatMethod", TestObjectPythonV8Internal::floatMethodMethodCallback, 0, 0}
, |
7812 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0}, | 7716 {"longMethod", TestObjectPythonV8Internal::longMethodMethodCallback, 0, 0}, |
7813 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0}
, | 7717 {"longLongMethod", TestObjectPythonV8Internal::longLongMethodMethodCallback,
0, 0}, |
7814 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0}, | 7718 {"octetMethod", TestObjectPythonV8Internal::octetMethodMethodCallback, 0, 0}
, |
7815 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0}, | 7719 {"shortMethod", TestObjectPythonV8Internal::shortMethodMethodCallback, 0, 0}
, |
7816 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac
k, 0, 0}, | 7720 {"unsignedLongMethod", TestObjectPythonV8Internal::unsignedLongMethodMethodC
allback, 0, 0}, |
7817 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho
dCallback, 0, 0}, | 7721 {"unsignedLongLongMethod", TestObjectPythonV8Internal::unsignedLongLongMetho
dMethodCallback, 0, 0}, |
7818 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb
ack, 0, 0}, | 7722 {"unsignedShortMethod", TestObjectPythonV8Internal::unsignedShortMethodMetho
dCallback, 0, 0}, |
7819 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback,
0, 1}, | 7723 {"voidMethodDateArg", TestObjectPythonV8Internal::voidMethodDateArgMethodCal
lback, 0, 1}, |
7820 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb
ack, 0, 1}, | 7724 {"voidMethodStringArg", TestObjectPythonV8Internal::voidMethodStringArgMetho
dCallback, 0, 1}, |
7821 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr
gMethodCallback, 0, 1}, | 7725 {"voidMethodBooleanArg", TestObjectPythonV8Internal::voidMethodBooleanArgMet
hodCallback, 0, 1}, |
7822 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal
lback, 0, 1}, | 7726 {"voidMethodByteArg", TestObjectPythonV8Internal::voidMethodByteArgMethodCal
lback, 0, 1}, |
7823 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback,
0, 1}, | 7727 {"voidMethodDoubleArg", TestObjectPythonV8Internal::voidMethodDoubleArgMetho
dCallback, 0, 1}, |
7824 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb
ack, 0, 1}, | 7728 {"voidMethodFloatArg", TestObjectPythonV8Internal::voidMethodFloatArgMethodC
allback, 0, 1}, |
7825 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac
k, 0, 1}, | 7729 {"voidMethodLongArg", TestObjectPythonV8Internal::voidMethodLongArgMethodCal
lback, 0, 1}, |
7826 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback,
0, 1}, | 7730 {"voidMethodLongLongArg", TestObjectPythonV8Internal::voidMethodLongLongArgM
ethodCallback, 0, 1}, |
7827 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC
allback, 0, 1}, | 7731 {"voidMethodOctetArg", TestObjectPythonV8Internal::voidMethodOctetArgMethodC
allback, 0, 1}, |
7828 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac
k, 0, 1}, | 7732 {"voidMethodShortArg", TestObjectPythonV8Internal::voidMethodShortArgMethodC
allback, 0, 1}, |
7829 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac
k, 0, 1}, | 7733 {"voidMethodUnsignedLongArg", TestObjectPythonV8Internal::voidMethodUnsigned
LongArgMethodCallback, 0, 1}, |
7830 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr
gMethodCallback, 0, 1}, | 7734 {"voidMethodUnsignedLongLongArg", TestObjectPythonV8Internal::voidMethodUnsi
gnedLongLongArgMethodCallback, 0, 1}, |
7831 {"voidMethodUnsignedLongLongArg", TestObjectV8Internal::voidMethodUnsignedLo
ngLongArgMethodCallback, 0, 1}, | 7735 {"voidMethodUnsignedShortArg", TestObjectPythonV8Internal::voidMethodUnsigne
dShortArgMethodCallback, 0, 1}, |
7832 {"voidMethodUnsignedShortArg", TestObjectV8Internal::voidMethodUnsignedShort
ArgMethodCallback, 0, 1}, | 7736 {"testInterfaceEmptyMethod", TestObjectPythonV8Internal::testInterfaceEmptyM
ethodMethodCallback, 0, 0}, |
7833 {"testInterfaceEmptyMethod", TestObjectV8Internal::testInterfaceEmptyMethodM
ethodCallback, 0, 0}, | 7737 {"voidMethodTestInterfaceEmptyArg", TestObjectPythonV8Internal::voidMethodTe
stInterfaceEmptyArgMethodCallback, 0, 1}, |
7834 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1}, | 7738 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectPythonV8Internal::voidM
ethodLongArgTestInterfaceEmptyArgMethodCallback, 0, 2}, |
7835 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2}, | 7739 {"voidCallbackFunctionMethod", TestObjectPythonV8Internal::voidCallbackFunct
ionMethodMethodCallback, 0, 0}, |
7836 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0}, | 7740 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectPythonV8Internal::anyC
allbackFunctionOptionalAnyArgMethodMethodCallback, 0, 0}, |
7837 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0}, | 7741 {"voidMethodVoidCallbackFunctionArg", TestObjectPythonV8Internal::voidMethod
VoidCallbackFunctionArgMethodCallback, 0, 1}, |
7838 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1}, | 7742 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectPythonV8Internal::
voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1}, |
7839 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1}, | 7743 {"compareHowMethod", TestObjectPythonV8Internal::compareHowMethodMethodCallb
ack, 0, 0}, |
7840 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0}, | 7744 {"anyMethod", TestObjectPythonV8Internal::anyMethodMethodCallback, 0, 0}, |
7841 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0}, | 7745 {"voidMethodCompareHowArg", TestObjectPythonV8Internal::voidMethodCompareHow
ArgMethodCallback, 0, 1}, |
7842 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1}, | 7746 {"voidMethodEventTargetArg", TestObjectPythonV8Internal::voidMethodEventTarg
etArgMethodCallback, 0, 1}, |
7843 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1}, | 7747 {"voidMethodMediaQueryListListenerArg", TestObjectPythonV8Internal::voidMeth
odMediaQueryListListenerArgMethodCallback, 0, 1}, |
7844 {"voidMethodMediaQueryListListenerArg", TestObjectV8Internal::voidMethodMedi
aQueryListListenerArgMethodCallback, 0, 1}, | 7748 {"voidMethodAnyArg", TestObjectPythonV8Internal::voidMethodAnyArgMethodCallb
ack, 0, 1}, |
7845 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1}, | 7749 {"voidMethodAttrArg", TestObjectPythonV8Internal::voidMethodAttrArgMethodCal
lback, 0, 1}, |
7846 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1}, | 7750 {"voidMethodDocumentArg", TestObjectPythonV8Internal::voidMethodDocumentArgM
ethodCallback, 0, 1}, |
7847 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1}, | 7751 {"voidMethodDocumentTypeArg", TestObjectPythonV8Internal::voidMethodDocument
TypeArgMethodCallback, 0, 1}, |
7848 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1}, | 7752 {"voidMethodElementArg", TestObjectPythonV8Internal::voidMethodElementArgMet
hodCallback, 0, 1}, |
7849 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1}, | 7753 {"voidMethodNodeArg", TestObjectPythonV8Internal::voidMethodNodeArgMethodCal
lback, 0, 1}, |
7850 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1}, | 7754 {"arrayBufferMethod", TestObjectPythonV8Internal::arrayBufferMethodMethodCal
lback, 0, 0}, |
7851 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0}, | 7755 {"arrayBufferViewMethod", TestObjectPythonV8Internal::arrayBufferViewMethodM
ethodCallback, 0, 0}, |
7852 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0}, | 7756 {"float32ArrayMethod", TestObjectPythonV8Internal::float32ArrayMethodMethodC
allback, 0, 0}, |
7853 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0}, | 7757 {"int32ArrayMethod", TestObjectPythonV8Internal::int32ArrayMethodMethodCallb
ack, 0, 0}, |
7854 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0}, | 7758 {"uint8ArrayMethod", TestObjectPythonV8Internal::uint8ArrayMethodMethodCallb
ack, 0, 0}, |
7855 {"uint8ArrayMethod", TestObjectV8Internal::uint8ArrayMethodMethodCallback, 0
, 0}, | 7759 {"voidMethodArrayBufferArg", TestObjectPythonV8Internal::voidMethodArrayBuff
erArgMethodCallback, 0, 1}, |
7856 {"voidMethodArrayBufferArg", TestObjectV8Internal::voidMethodArrayBufferArgM
ethodCallback, 0, 1}, | 7760 {"voidMethodArrayBufferOrNullArg", TestObjectPythonV8Internal::voidMethodArr
ayBufferOrNullArgMethodCallback, 0, 1}, |
7857 {"voidMethodArrayBufferOrNullArg", TestObjectV8Internal::voidMethodArrayBuff
erOrNullArgMethodCallback, 0, 1}, | 7761 {"voidMethodArrayBufferViewArg", TestObjectPythonV8Internal::voidMethodArray
BufferViewArgMethodCallback, 0, 1}, |
7858 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer
ViewArgMethodCallback, 0, 1}, | 7762 {"voidMethodFloat32ArrayArg", TestObjectPythonV8Internal::voidMethodFloat32A
rrayArgMethodCallback, 0, 1}, |
7859 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr
gMethodCallback, 0, 1}, | 7763 {"voidMethodInt32ArrayArg", TestObjectPythonV8Internal::voidMethodInt32Array
ArgMethodCallback, 0, 1}, |
7860 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet
hodCallback, 0, 1}, | 7764 {"voidMethodUint8ArrayArg", TestObjectPythonV8Internal::voidMethodUint8Array
ArgMethodCallback, 0, 1}, |
7861 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet
hodCallback, 0, 1}, | 7765 {"longArrayMethod", TestObjectPythonV8Internal::longArrayMethodMethodCallbac
k, 0, 0}, |
7862 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0,
0}, | 7766 {"stringArrayMethod", TestObjectPythonV8Internal::stringArrayMethodMethodCal
lback, 0, 0}, |
7863 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback,
0, 0}, | 7767 {"testInterfaceEmptyArrayMethod", TestObjectPythonV8Internal::testInterfaceE
mptyArrayMethodMethodCallback, 0, 0}, |
7864 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0}, | 7768 {"voidMethodArrayLongArg", TestObjectPythonV8Internal::voidMethodArrayLongAr
gMethodCallback, 0, 1}, |
7865 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1}, | 7769 {"voidMethodArrayStringArg", TestObjectPythonV8Internal::voidMethodArrayStri
ngArgMethodCallback, 0, 1}, |
7866 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1}, | 7770 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectPythonV8Internal::voidMet
hodArrayTestInterfaceEmptyArgMethodCallback, 0, 1}, |
7867 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1}, | 7771 {"longSequenceMethod", TestObjectPythonV8Internal::longSequenceMethodMethodC
allback, 0, 0}, |
7868 {"longSequenceMethod", TestObjectV8Internal::longSequenceMethodMethodCallbac
k, 0, 0}, | 7772 {"stringSequenceMethod", TestObjectPythonV8Internal::stringSequenceMethodMet
hodCallback, 0, 0}, |
7869 {"stringSequenceMethod", TestObjectV8Internal::stringSequenceMethodMethodCal
lback, 0, 0}, | 7773 {"testInterfaceEmptySequenceMethod", TestObjectPythonV8Internal::testInterfa
ceEmptySequenceMethodMethodCallback, 0, 0}, |
7870 {"testInterfaceEmptySequenceMethod", TestObjectV8Internal::testInterfaceEmpt
ySequenceMethodMethodCallback, 0, 0}, | 7774 {"voidMethodSequenceLongArg", TestObjectPythonV8Internal::voidMethodSequence
LongArgMethodCallback, 0, 1}, |
7871 {"voidMethodSequenceLongArg", TestObjectV8Internal::voidMethodSequenceLongAr
gMethodCallback, 0, 1}, | 7775 {"voidMethodSequenceStringArg", TestObjectPythonV8Internal::voidMethodSequen
ceStringArgMethodCallback, 0, 1}, |
7872 {"voidMethodSequenceStringArg", TestObjectV8Internal::voidMethodSequenceStri
ngArgMethodCallback, 0, 1}, | 7776 {"voidMethodSequenceTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodSequenceTestInterfaceEmptyArgMethodCallback, 0, 1}, |
7873 {"voidMethodSequenceTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
SequenceTestInterfaceEmptyArgMethodCallback, 0, 1}, | 7777 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectPythonV8Internal::voidMe
thodTestInterfaceEmptyOrNullArgMethodCallback, 0, 1}, |
7874 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1}, | 7778 {"voidMethodTestCallbackInterfaceArg", TestObjectPythonV8Internal::voidMetho
dTestCallbackInterfaceArgMethodCallback, 0, 1}, |
7875 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1}, | 7779 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectPythonV8Internal::v
oidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, |
7876 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, | 7780 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectPythonV8Internal::voi
dMethodTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, |
7877 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, | 7781 {"testEnumMethod", TestObjectPythonV8Internal::testEnumMethodMethodCallback,
0, 0}, |
7878 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, | 7782 {"voidMethodTestEnumArg", TestObjectPythonV8Internal::voidMethodTestEnumArgM
ethodCallback, 0, 1}, |
7879 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, | 7783 {"dictionaryMethod", TestObjectPythonV8Internal::dictionaryMethodMethodCallb
ack, 0, 0}, |
7880 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, | 7784 {"nodeFilterMethod", TestObjectPythonV8Internal::nodeFilterMethodMethodCallb
ack, 0, 0}, |
7881 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, | 7785 {"promiseMethod", TestObjectPythonV8Internal::promiseMethodMethodCallback, 0
, 0}, |
7882 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, | 7786 {"serializedScriptValueMethod", TestObjectPythonV8Internal::serializedScript
ValueMethodMethodCallback, 0, 0}, |
7883 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, | 7787 {"xPathNSResolverMethod", TestObjectPythonV8Internal::xPathNSResolverMethodM
ethodCallback, 0, 0}, |
7884 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0}, | 7788 {"voidMethodDictionaryArg", TestObjectPythonV8Internal::voidMethodDictionary
ArgMethodCallback, 0, 1}, |
7885 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1}, | 7789 {"voidMethodEventListenerArg", TestObjectPythonV8Internal::voidMethodEventLi
stenerArgMethodCallback, 0, 1}, |
7886 {"voidMethodEventListenerArg", TestObjectV8Internal::voidMethodEventListener
ArgMethodCallback, 0, 1}, | 7790 {"voidMethodNodeFilterArg", TestObjectPythonV8Internal::voidMethodNodeFilter
ArgMethodCallback, 0, 1}, |
7887 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1}, | 7791 {"voidMethodPromiseArg", TestObjectPythonV8Internal::voidMethodPromiseArgMet
hodCallback, 0, 1}, |
7888 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1}, | 7792 {"voidMethodSerializedScriptValueArg", TestObjectPythonV8Internal::voidMetho
dSerializedScriptValueArgMethodCallback, 0, 1}, |
7889 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1}, | 7793 {"voidMethodXPathNSResolverArg", TestObjectPythonV8Internal::voidMethodXPath
NSResolverArgMethodCallback, 0, 1}, |
7890 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1}, | 7794 {"voidMethodSequenceDictionaryArg", TestObjectPythonV8Internal::voidMethodSe
quenceDictionaryArgMethodCallback, 0, 1}, |
7891 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona
rySequenceArgMethodCallback, 0, 1}, | 7795 {"voidMethodStringArgLongArg", TestObjectPythonV8Internal::voidMethodStringA
rgLongArgMethodCallback, 0, 2}, |
7892 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong
ArgMethodCallback, 0, 2}, | 7796 {"voidMethodOptionalStringArg", TestObjectPythonV8Internal::voidMethodOption
alStringArgMethodCallback, 0, 0}, |
7893 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri
ngArgMethodCallback, 0, 0}, | 7797 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodOptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, |
7894 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, | 7798 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, |
7895 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr
gMethodCallback, 0, 0}, | 7799 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, |
7896 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo
ngArgMethodCallback, 0, 0}, | 7800 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, |
7897 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf
aceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, | 7801 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, |
7898 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr
gMethodCallback, 0, 0}, | 7802 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, |
7899 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg
OptionalLongArgMethodCallback, 0, 1}, | 7803 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, |
7900 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo
idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, | 7804 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, |
7901 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi
dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, | 7805 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, |
7902 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi
dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, | 7806 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp
tionalDictionaryArgMethodCallback, 0, 0}, |
7903 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional
DictionaryArgMethodCallback, 0, 0}, | 7807 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, |
7904 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri
ngArgMethodCallback, 0, 1}, | 7808 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, |
7905 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr
ingArgVariadicStringArgMethodCallback, 0, 2}, | 7809 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectPythonV8Internal::void
MethodVariadicTestInterfaceEmptyArgMethodCallback, 0, 1}, |
7906 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
VariadicTestInterfaceEmptyArgMethodCallback, 0, 1}, | 7810 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectP
ythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMet
hodCallback, 0, 2}, |
7907 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV
8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal
lback, 0, 2}, | 7811 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectPytho
nV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallb
ack, 0, 1}, |
7908 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int
ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0
, 1}, | 7812 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal
lback, 0, 1}, |
7909 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback,
0, 1}, | 7813 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal
lback, 0, 1}, |
7910 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback,
0, 1}, | 7814 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal
lback, 0, 1}, |
7911 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback,
0, 1}, | 7815 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal
lback, 0, 1}, |
7912 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback,
0, 1}, | 7816 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal
lback, 0, 1}, |
7913 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback,
0, 1}, | 7817 {"overloadedMethodF", TestObjectPythonV8Internal::overloadedMethodFMethodCal
lback, 0, 1}, |
7914 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback,
0, 1}, | 7818 {"overloadedMethodG", TestObjectPythonV8Internal::overloadedMethodGMethodCal
lback, 0, 0}, |
7915 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback,
0, 0}, | 7819 {"overloadedMethodH", TestObjectPythonV8Internal::overloadedMethodHMethodCal
lback, 0, 0}, |
7916 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback,
0, 0}, | 7820 {"overloadedPerWorldBindingsMethod", TestObjectPythonV8Internal::overloadedP
erWorldBindingsMethodMethodCallback, TestObjectPythonV8Internal::overloadedPerWo
rldBindingsMethodMethodCallbackForMainWorld, 0}, |
7917 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback,
0, 1}, | 7821 {"voidMethodClampUnsignedShortArg", TestObjectPythonV8Internal::voidMethodCl
ampUnsignedShortArgMethodCallback, 0, 1}, |
7918 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl
dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM
ethodMethodCallbackForMainWorld, 0}, | 7822 {"voidMethodClampUnsignedLongArg", TestObjectPythonV8Internal::voidMethodCla
mpUnsignedLongArgMethodCallback, 0, 1}, |
7919 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns
ignedShortArgMethodCallback, 0, 1}, | 7823 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectPythonV8Intern
al::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0}, |
7920 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi
gnedLongArgMethodCallback, 0, 1}, | 7824 {"voidMethodDefaultUndefinedLongArg", TestObjectPythonV8Internal::voidMethod
DefaultUndefinedLongArgMethodCallback, 0, 0}, |
7921 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo
idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0}, | 7825 {"voidMethodDefaultUndefinedStringArg", TestObjectPythonV8Internal::voidMeth
odDefaultUndefinedStringArgMethodCallback, 0, 0}, |
7922 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul
tUndefinedLongArgMethodCallback, 0, 0}, | 7826 {"voidMethodDefaultNullStringStringArg", TestObjectPythonV8Internal::voidMet
hodDefaultNullStringStringArgMethodCallback, 0, 0}, |
7923 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa
ultUndefinedStringArgMethodCallback, 0, 0}, | 7827 {"voidMethodEnforceRangeLongArg", TestObjectPythonV8Internal::voidMethodEnfo
rceRangeLongArgMethodCallback, 0, 1}, |
7924 {"voidMethodDefaultNullStringStringArg", TestObjectV8Internal::voidMethodDef
aultNullStringStringArgMethodCallback, 0, 0}, | 7828 {"voidMethodTreatNullAsNullStringStringArg", TestObjectPythonV8Internal::voi
dMethodTreatNullAsNullStringStringArgMethodCallback, 0, 1}, |
7925 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan
geLongArgMethodCallback, 0, 1}, | 7829 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO
bjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullString
StringArgMethodCallback, 0, 1}, |
7926 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho
dTreatNullAsNullStringStringArgMethodCallback, 0, 1}, | 7830 {"activityLoggingAccessForAllWorldsMethod", TestObjectPythonV8Internal::acti
vityLoggingAccessForAllWorldsMethodMethodCallback, 0, 0}, |
7927 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO
bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString
ArgMethodCallback, 0, 1}, | 7831 {"callWithScriptStateVoidMethod", TestObjectPythonV8Internal::callWithScript
StateVoidMethodMethodCallback, 0, 0}, |
7928 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo
ggingAccessForAllWorldsMethodMethodCallback, 0, 0}, | 7832 {"callWithScriptStateLongMethod", TestObjectPythonV8Internal::callWithScript
StateLongMethodMethodCallback, 0, 0}, |
7929 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV
oidMethodMethodCallback, 0, 0}, | 7833 {"callWithExecutionContextVoidMethod", TestObjectPythonV8Internal::callWithE
xecutionContextVoidMethodMethodCallback, 0, 0}, |
7930 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL
ongMethodMethodCallback, 0, 0}, | 7834 {"callWithScriptStateExecutionContextVoidMethod", TestObjectPythonV8Internal
::callWithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0}, |
7931 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti
onContextVoidMethodMethodCallback, 0, 0}, | 7835 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectPythonV8Internal:
:callWithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0}, |
7932 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call
WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0}, | 7836 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec
tPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanAr
gMethodCallback, 0, 0}, |
7933 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW
ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0}, | 7837 {"callWithActiveWindow", TestObjectPythonV8Internal::callWithActiveWindowMet
hodCallback, 0, 0}, |
7934 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec
tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho
dCallback, 0, 0}, | 7838 {"callWithActiveWindowScriptWindow", TestObjectPythonV8Internal::callWithAct
iveWindowScriptWindowMethodCallback, 0, 0}, |
7935 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal
lback, 0, 0}, | 7839 {"checkSecurityForNodeVoidMethod", TestObjectPythonV8Internal::checkSecurity
ForNodeVoidMethodMethodCallback, 0, 0}, |
7936 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin
dowScriptWindowMethodCallback, 0, 0}, | 7840 #if ENABLE(CONDITION) |
7937 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod
eVoidMethodMethodCallback, 0, 0}, | 7841 {"conditionalConditionVoidMethod", TestObjectPythonV8Internal::conditionalCo
nditionVoidMethodMethodCallback, 0, 0}, |
7938 #if ENABLE(CONDITION) | |
7939 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio
nVoidMethodMethodCallback, 0, 0}, | |
7940 #endif // ENABLE(CONDITION) | 7842 #endif // ENABLE(CONDITION) |
7941 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 7843 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7942 {"conditionalCondition1AndCondition2VoidMethod", TestObjectV8Internal::condi
tionalCondition1AndCondition2VoidMethodMethodCallback, 0, 0}, | 7844 {"conditionalCondition1AndCondition2VoidMethod", TestObjectPythonV8Internal:
:conditionalCondition1AndCondition2VoidMethodMethodCallback, 0, 0}, |
7943 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 7845 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
7944 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0
, 0}, | 7846 {"customVoidMethod", TestObjectPythonV8Internal::customVoidMethodMethodCallb
ack, 0, 0}, |
7945 #if ENABLE(CONDITION) | 7847 #if ENABLE(CONDITION) |
7946 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo
nditionCustomVoidMethodMethodCallback, 0, 0}, | 7848 {"conditionalConditionCustomVoidMethod", TestObjectPythonV8Internal::conditi
onalConditionCustomVoidMethodMethodCallback, 0, 0}, |
7947 #endif // ENABLE(CONDITION) | 7849 #endif // ENABLE(CONDITION) |
7948 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall
backsVoidMethodMethodCallback, 0, 0}, | 7850 {"customElementCallbacksVoidMethod", TestObjectPythonV8Internal::customEleme
ntCallbacksVoidMethodMethodCallback, 0, 0}, |
7949 {"deprecatedVoidMethod", TestObjectV8Internal::deprecatedVoidMethodMethodCal
lback, 0, 0}, | 7851 {"deprecatedVoidMethod", TestObjectPythonV8Internal::deprecatedVoidMethodMet
hodCallback, 0, 0}, |
7950 {"implementedAsVoidMethod", TestObjectV8Internal::implementedAsVoidMethodMet
hodCallback, 0, 0}, | 7852 {"implementedAsVoidMethod", TestObjectPythonV8Internal::implementedAsVoidMet
hodMethodCallback, 0, 0}, |
7951 {"measureAsVoidMethod", TestObjectV8Internal::measureAsVoidMethodMethodCallb
ack, 0, 0}, | 7853 {"measureAsVoidMethod", TestObjectPythonV8Internal::measureAsVoidMethodMetho
dCallback, 0, 0}, |
7952 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet
hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac
kForMainWorld, 0}, | 7854 {"perWorldBindingsVoidMethod", TestObjectPythonV8Internal::perWorldBindingsV
oidMethodMethodCallback, TestObjectPythonV8Internal::perWorldBindingsVoidMethodM
ethodCallbackForMainWorld, 0}, |
7953 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe
rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna
l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1}
, | 7855 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Intern
al::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectPyt
honV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForM
ainWorld, 1}, |
7954 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern
al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj
ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba
ckForMainWorld, 0}, | 7856 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectPythonV8
Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, T
estObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethod
MethodCallbackForMainWorld, 0}, |
7955 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I
nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac
k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet
hodMethodCallbackForMainWorld, 0}, | 7857 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectPyt
honV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodC
allback, TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBin
dingsVoidMethodMethodCallbackForMainWorld, 0}, |
7956 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho
dMethodCallback, 0, 0}, | 7858 {"raisesExceptionVoidMethod", TestObjectPythonV8Internal::raisesExceptionVoi
dMethodMethodCallback, 0, 0}, |
7957 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM
ethodMethodCallback, 0, 0}, | 7859 {"raisesExceptionStringMethod", TestObjectPythonV8Internal::raisesExceptionS
tringMethodMethodCallback, 0, 0}, |
7958 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc
eptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, | 7860 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectPythonV8Internal::rai
sesExceptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, |
7959 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal::
raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, | 7861 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectPythonV8Inte
rnal::raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, |
7960 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In
ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback,
0, 0}, | 7862 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectPyth
onV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCal
lback, 0, 0}, |
7961 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, | 7863 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectPythonV8Internal::
raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, |
7962 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, | 7864 {"strictTypeCheckingVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Inte
rnal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
7963 {"strictTypeCheckingVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::
strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, | 7865 {"strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg", TestObjectPython
V8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac
k, 0, 1}, |
7964 {"strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Inte
rnal::strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallback, 0,
1}, | 7866 {"treatReturnedNullStringAsNullStringMethod", TestObjectPythonV8Internal::tr
eatReturnedNullStringAsNullStringMethodMethodCallback, 0, 0}, |
7965 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, | 7867 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectPythonV8Interna
l::treatReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, |
7966 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, | 7868 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectPytho
nV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallb
ack, 0, 1}, |
7967 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, | 7869 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectPythonV8
Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0
, 1}, |
7968 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, | |
7969 }; | 7870 }; |
7970 | 7871 |
7971 static void configureV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) | 7872 static void configureV8TestObjectPythonTemplate(v8::Handle<v8::FunctionTemplate>
functionTemplate, v8::Isolate* isolate) |
7972 { | 7873 { |
7973 functionTemplate->ReadOnlyPrototype(); | 7874 functionTemplate->ReadOnlyPrototype(); |
7974 | 7875 |
7975 v8::Local<v8::Signature> defaultSignature; | 7876 v8::Local<v8::Signature> defaultSignature; |
7976 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFiel
dCount, | 7877 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestObjectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::
internalFieldCount, |
7977 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), | 7878 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
7978 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), | 7879 V8TestObjectPythonAccessors, WTF_ARRAY_LENGTH(V8TestObjectPythonAccessor
s), |
7979 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods), | 7880 V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods), |
7980 isolate); | 7881 isolate); |
7981 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla
te->InstanceTemplate(); | 7882 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla
te->InstanceTemplate(); |
7982 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl
ate->PrototypeTemplate(); | 7883 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl
ate->PrototypeTemplate(); |
7983 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 7884 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
7984 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 7885 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
7985 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}; | 7886 {"runtimeEnabledLongAttribute", TestObjectPythonV8Internal::runtimeEnabl
edLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::runtimeEnabl
edLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
; |
7986 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 7887 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
7987 } | 7888 } |
7988 #if ENABLE(CONDITION) | 7889 #if ENABLE(CONDITION) |
7989 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 7890 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
7990 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 7891 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
7991 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi
onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co
nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}; | 7892 {"conditionalRuntimeEnabledLongAttribute", TestObjectPythonV8Internal::c
onditionalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8
Internal::conditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}; |
7992 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 7893 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
7993 } | 7894 } |
7994 #endif // ENABLE(CONDITION) | 7895 #endif // ENABLE(CONDITION) |
7995 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants
[] = { | 7896 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectPythonCon
stants[] = { |
7996 {"CONST_VALUE_0", 0}, | 7897 {"CONST_VALUE_0", 0}, |
7997 {"CONST_VALUE_1", 1}, | 7898 {"CONST_VALUE_1", 1}, |
7998 {"CONST_VALUE_2", 2}, | 7899 {"CONST_VALUE_2", 2}, |
7999 {"CONST_VALUE_4", 4}, | 7900 {"CONST_VALUE_4", 4}, |
8000 {"CONST_VALUE_8", 8}, | 7901 {"CONST_VALUE_8", 8}, |
8001 {"CONST_VALUE_9", -1}, | 7902 {"CONST_VALUE_9", -1}, |
8002 {"CONST_VALUE_10", "my constant string"}, | 7903 {"CONST_VALUE_10", "my constant string"}, |
8003 {"CONST_VALUE_11", 0xffffffff}, | 7904 {"CONST_VALUE_11", 0xffffffff}, |
8004 {"CONST_VALUE_12", 0x01}, | 7905 {"CONST_VALUE_12", 0x01}, |
8005 {"CONST_VALUE_13", 0X20}, | 7906 {"CONST_VALUE_13", 0X20}, |
8006 {"CONST_VALUE_14", 0x1abc}, | 7907 {"CONST_VALUE_14", 0x1abc}, |
8007 {"CONST_VALUE_15", 010}, | 7908 {"CONST_VALUE_15", 010}, |
8008 {"CONST_VALUE_16", -010}, | 7909 {"CONST_VALUE_16", -010}, |
8009 {"CONST_VALUE_16", -0x1A}, | 7910 {"CONST_VALUE_16", -0x1A}, |
8010 {"CONST_VALUE_17", -0X1a}, | 7911 {"CONST_VALUE_17", -0X1a}, |
8011 {"DEPRECATED_CONSTANT", 1}, | 7912 {"DEPRECATED_CONSTANT", 1}, |
8012 {"CONST_JAVASCRIPT", 1}, | 7913 {"CONST_JAVASCRIPT", 1}, |
8013 }; | 7914 }; |
8014 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants), isolate); | 7915 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestObjectPythonConstants, WTF_ARRAY_LENGTH(V8TestObjectPythonConstants), isolat
e); |
8015 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 7916 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
8016 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"FEATURE_ENABLED_CONST", static_cast<signed int>(1)}; | 7917 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"FEATURE_ENABLED_CONST", static_cast<signed int>(1)}; |
8017 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); | 7918 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); |
8018 } | 7919 } |
8019 COMPILE_ASSERT(0 == TestObject::CONST_VALUE_0, TheValueOfTestObject_CONST_VA
LUE_0DoesntMatchWithImplementation); | 7920 COMPILE_ASSERT(0 == TestObjectPython::CONST_VALUE_0, TheValueOfTestObjectPyt
hon_CONST_VALUE_0DoesntMatchWithImplementation); |
8020 COMPILE_ASSERT(1 == TestObject::CONST_VALUE_1, TheValueOfTestObject_CONST_VA
LUE_1DoesntMatchWithImplementation); | 7921 COMPILE_ASSERT(1 == TestObjectPython::CONST_VALUE_1, TheValueOfTestObjectPyt
hon_CONST_VALUE_1DoesntMatchWithImplementation); |
8021 COMPILE_ASSERT(2 == TestObject::CONST_VALUE_2, TheValueOfTestObject_CONST_VA
LUE_2DoesntMatchWithImplementation); | 7922 COMPILE_ASSERT(2 == TestObjectPython::CONST_VALUE_2, TheValueOfTestObjectPyt
hon_CONST_VALUE_2DoesntMatchWithImplementation); |
8022 COMPILE_ASSERT(4 == TestObject::CONST_VALUE_4, TheValueOfTestObject_CONST_VA
LUE_4DoesntMatchWithImplementation); | 7923 COMPILE_ASSERT(4 == TestObjectPython::CONST_VALUE_4, TheValueOfTestObjectPyt
hon_CONST_VALUE_4DoesntMatchWithImplementation); |
8023 COMPILE_ASSERT(8 == TestObject::CONST_VALUE_8, TheValueOfTestObject_CONST_VA
LUE_8DoesntMatchWithImplementation); | 7924 COMPILE_ASSERT(8 == TestObjectPython::CONST_VALUE_8, TheValueOfTestObjectPyt
hon_CONST_VALUE_8DoesntMatchWithImplementation); |
8024 COMPILE_ASSERT(-1 == TestObject::CONST_VALUE_9, TheValueOfTestObject_CONST_V
ALUE_9DoesntMatchWithImplementation); | 7925 COMPILE_ASSERT(-1 == TestObjectPython::CONST_VALUE_9, TheValueOfTestObjectPy
thon_CONST_VALUE_9DoesntMatchWithImplementation); |
8025 COMPILE_ASSERT("my constant string" == TestObject::CONST_VALUE_10, TheValueO
fTestObject_CONST_VALUE_10DoesntMatchWithImplementation); | 7926 COMPILE_ASSERT("my constant string" == TestObjectPython::CONST_VALUE_10, The
ValueOfTestObjectPython_CONST_VALUE_10DoesntMatchWithImplementation); |
8026 COMPILE_ASSERT(0xffffffff == TestObject::CONST_VALUE_11, TheValueOfTestObjec
t_CONST_VALUE_11DoesntMatchWithImplementation); | 7927 COMPILE_ASSERT(0xffffffff == TestObjectPython::CONST_VALUE_11, TheValueOfTes
tObjectPython_CONST_VALUE_11DoesntMatchWithImplementation); |
8027 COMPILE_ASSERT(0x01 == TestObject::CONST_VALUE_12, TheValueOfTestObject_CONS
T_VALUE_12DoesntMatchWithImplementation); | 7928 COMPILE_ASSERT(0x01 == TestObjectPython::CONST_VALUE_12, TheValueOfTestObjec
tPython_CONST_VALUE_12DoesntMatchWithImplementation); |
8028 COMPILE_ASSERT(0X20 == TestObject::CONST_VALUE_13, TheValueOfTestObject_CONS
T_VALUE_13DoesntMatchWithImplementation); | 7929 COMPILE_ASSERT(0X20 == TestObjectPython::CONST_VALUE_13, TheValueOfTestObjec
tPython_CONST_VALUE_13DoesntMatchWithImplementation); |
8029 COMPILE_ASSERT(0x1abc == TestObject::CONST_VALUE_14, TheValueOfTestObject_CO
NST_VALUE_14DoesntMatchWithImplementation); | 7930 COMPILE_ASSERT(0x1abc == TestObjectPython::CONST_VALUE_14, TheValueOfTestObj
ectPython_CONST_VALUE_14DoesntMatchWithImplementation); |
8030 COMPILE_ASSERT(010 == TestObject::CONST_VALUE_15, TheValueOfTestObject_CONST
_VALUE_15DoesntMatchWithImplementation); | 7931 COMPILE_ASSERT(010 == TestObjectPython::CONST_VALUE_15, TheValueOfTestObject
Python_CONST_VALUE_15DoesntMatchWithImplementation); |
8031 COMPILE_ASSERT(-010 == TestObject::CONST_VALUE_16, TheValueOfTestObject_CONS
T_VALUE_16DoesntMatchWithImplementation); | 7932 COMPILE_ASSERT(-010 == TestObjectPython::CONST_VALUE_16, TheValueOfTestObjec
tPython_CONST_VALUE_16DoesntMatchWithImplementation); |
8032 COMPILE_ASSERT(-0x1A == TestObject::CONST_VALUE_16, TheValueOfTestObject_CON
ST_VALUE_16DoesntMatchWithImplementation); | 7933 COMPILE_ASSERT(-0x1A == TestObjectPython::CONST_VALUE_16, TheValueOfTestObje
ctPython_CONST_VALUE_16DoesntMatchWithImplementation); |
8033 COMPILE_ASSERT(-0X1a == TestObject::CONST_VALUE_17, TheValueOfTestObject_CON
ST_VALUE_17DoesntMatchWithImplementation); | 7934 COMPILE_ASSERT(-0X1a == TestObjectPython::CONST_VALUE_17, TheValueOfTestObje
ctPython_CONST_VALUE_17DoesntMatchWithImplementation); |
8034 COMPILE_ASSERT(1 == TestObject::DEPRECATED_CONSTANT, TheValueOfTestObject_DE
PRECATED_CONSTANTDoesntMatchWithImplementation); | 7935 COMPILE_ASSERT(1 == TestObjectPython::DEPRECATED_CONSTANT, TheValueOfTestObj
ectPython_DEPRECATED_CONSTANTDoesntMatchWithImplementation); |
8035 COMPILE_ASSERT(1 == TestObject::FEATURE_ENABLED_CONST, TheValueOfTestObject_
FEATURE_ENABLED_CONSTDoesntMatchWithImplementation); | 7936 COMPILE_ASSERT(1 == TestObjectPython::FEATURE_ENABLED_CONST, TheValueOfTestO
bjectPython_FEATURE_ENABLED_CONSTDoesntMatchWithImplementation); |
8036 COMPILE_ASSERT(1 == TestObject::CONST_IMPL, TheValueOfTestObject_CONST_IMPLD
oesntMatchWithImplementation); | 7937 COMPILE_ASSERT(1 == TestObjectPython::CONST_IMPL, TheValueOfTestObjectPython
_CONST_IMPLDoesntMatchWithImplementation); |
8037 functionTemplate->Set(v8AtomicString(isolate, "staticVoidMethod"), v8::Funct
ionTemplate::New(isolate, TestObjectV8Internal::staticVoidMethodMethodCallback,
v8Undefined(), v8::Local<v8::Signature>(), 0)); | 7938 functionTemplate->Set(v8AtomicString(isolate, "staticVoidMethod"), v8::Funct
ionTemplate::New(isolate, TestObjectPythonV8Internal::staticVoidMethodMethodCall
back, v8Undefined(), v8::Local<v8::Signature>(), 0)); |
8038 functionTemplate->Set(v8AtomicString(isolate, "overloadedStaticMethod"), v8:
:FunctionTemplate::New(isolate, TestObjectV8Internal::overloadedStaticMethodMeth
odCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); | 7939 functionTemplate->Set(v8AtomicString(isolate, "overloadedStaticMethod"), v8:
:FunctionTemplate::New(isolate, TestObjectPythonV8Internal::overloadedStaticMeth
odMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); |
8039 #if ENABLE(CONDITION) | 7940 #if ENABLE(CONDITION) |
8040 functionTemplate->Set(v8AtomicString(isolate, "conditionalConditionStaticVoi
dMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::conditionalC
onditionStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(
), 0)); | 7941 functionTemplate->Set(v8AtomicString(isolate, "conditionalConditionStaticVoi
dMethod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::condit
ionalConditionStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signa
ture>(), 0)); |
8041 #endif // ENABLE(CONDITION) | 7942 #endif // ENABLE(CONDITION) |
8042 prototypeTemplate->Set(v8AtomicString(isolate, "doNotCheckSignatureVoidMetho
d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::doNotCheckSignatur
eVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 7943 prototypeTemplate->Set(v8AtomicString(isolate, "doNotCheckSignatureVoidMetho
d"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::doNotCheckSi
gnatureVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); |
8043 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableVoidMethod"), v
8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableVoidMethodM
ethodCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttr
ibute>(v8::DontDelete | v8::DontEnum)); | 7944 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableVoidMethod"), v
8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::notEnumerableVoidM
ethodMethodCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::Proper
tyAttribute>(v8::DontDelete | v8::DontEnum)); |
8044 prototypeTemplate->Set(v8AtomicString(isolate, "readOnlyVoidMethod"), v8::Fu
nctionTemplate::New(isolate, TestObjectV8Internal::readOnlyVoidMethodMethodCallb
ack, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8:
:DontDelete | v8::ReadOnly)); | 7945 prototypeTemplate->Set(v8AtomicString(isolate, "readOnlyVoidMethod"), v8::Fu
nctionTemplate::New(isolate, TestObjectPythonV8Internal::readOnlyVoidMethodMetho
dCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribut
e>(v8::DontDelete | v8::ReadOnly)); |
8045 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableReadOnlyVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableRea
dOnlyVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0), static_cast<
v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8::ReadOnly)); | 7946 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableReadOnlyVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::notEnumera
bleReadOnlyVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0), static
_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8::ReadOnly)); |
8046 if (RuntimeEnabledFeatures::featureNameEnabled()) | 7947 if (RuntimeEnabledFeatures::featureNameEnabled()) |
8047 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledVoidMethod
"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEnabledVoidM
ethodMethodCallback, v8Undefined(), defaultSignature, 0)); | 7948 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledVoidMethod
"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::runtimeEnable
dVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); |
8048 if (DOMWrapperWorld::current(isolate).isMainWorld()) { | 7949 if (DOMWrapperWorld::current(isolate)->isMainWorld()) { |
8049 if (RuntimeEnabledFeatures::featureNameEnabled()) | 7950 if (RuntimeEnabledFeatures::featureNameEnabled()) |
8050 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal:
:perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, v8Undefined
(), defaultSignature, 0)); | 7951 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Int
ernal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, v8Und
efined(), defaultSignature, 0)); |
8051 } else { | 7952 } else { |
8052 if (RuntimeEnabledFeatures::featureNameEnabled()) | 7953 if (RuntimeEnabledFeatures::featureNameEnabled()) |
8053 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal:
:perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, v8Undefined(), defaultS
ignature, 0)); | 7954 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Int
ernal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, v8Undefined(), de
faultSignature, 0)); |
8054 } | 7955 } |
8055 instanceTemplate->Set(v8AtomicString(isolate, "unforgeableVoidMethod"), v8::
FunctionTemplate::New(isolate, TestObjectV8Internal::unforgeableVoidMethodMethod
Callback, v8Undefined(), defaultSignature, 0)); | 7956 instanceTemplate->Set(v8AtomicString(isolate, "unforgeableVoidMethod"), v8::
FunctionTemplate::New(isolate, TestObjectPythonV8Internal::unforgeableVoidMethod
MethodCallback, v8Undefined(), defaultSignature, 0)); |
8056 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8
::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 7957 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectPythonV8Internal::staticStringAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::staticStringAttributeAttributeSetterCallback
, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v
8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT))
; |
8057 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce
ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 7958 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectPythonV8Internal::staticLongAttributeAttributeGetterCallba
ck, TestObjectPythonV8Internal::staticLongAttributeAttributeSetterCallback, v8::
External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Han
dle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
8058 | 7959 |
8059 // Custom toString template | 7960 // Custom toString template |
8060 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:current()->toStringTemplate()); | 7961 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:current()->toStringTemplate()); |
8061 } | 7962 } |
8062 | 7963 |
8063 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) | 7964 v8::Handle<v8::FunctionTemplate> V8TestObjectPython::domTemplate(v8::Isolate* is
olate) |
8064 { | 7965 { |
8065 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 7966 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
8066 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | 7967 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); |
8067 if (!result.IsEmpty()) | 7968 if (!result.IsEmpty()) |
8068 return result; | 7969 return result; |
8069 | 7970 |
8070 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 7971 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
8071 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 7972 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
8072 configureV8TestObjectTemplate(result, isolate); | 7973 configureV8TestObjectPythonTemplate(result, isolate); |
8073 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 7974 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
8074 return result; | 7975 return result; |
8075 } | 7976 } |
8076 | 7977 |
8077 bool V8TestObject::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isola
te) | 7978 bool V8TestObjectPython::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate*
isolate) |
8078 { | 7979 { |
8079 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 7980 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
8080 } | 7981 } |
8081 | 7982 |
8082 v8::Handle<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Handle<v8:
:Value> v8Value, v8::Isolate* isolate) | 7983 v8::Handle<v8::Object> V8TestObjectPython::findInstanceInPrototypeChain(v8::Hand
le<v8::Value> v8Value, v8::Isolate* isolate) |
8083 { | 7984 { |
8084 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 7985 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
8085 } | 7986 } |
8086 | 7987 |
8087 TestObject* V8TestObject::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle
<v8::Value> value) | 7988 TestObjectPython* V8TestObjectPython::toNativeWithTypeCheck(v8::Isolate* isolate
, v8::Handle<v8::Value> value) |
8088 { | 7989 { |
8089 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 7990 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
8090 } | 7991 } |
8091 | 7992 |
8092 void V8TestObject::installPerContextEnabledProperties(v8::Handle<v8::Object> ins
tanceTemplate, TestObject* impl, v8::Isolate* isolate) | 7993 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec
t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate) |
8093 { | 7994 { |
8094 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan
ceTemplate->GetPrototype()); | 7995 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan
ceTemplate->GetPrototype()); |
8095 if (ContextFeatures::featureNameEnabled(impl->document())) { | 7996 if (ContextFeatures::featureNameEnabled(impl->document())) { |
8096 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 7997 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
8097 {"perContextEnabledLongAttribute", TestObjectV8Internal::perContextEnabl
edLongAttributeAttributeGetterCallback, TestObjectV8Internal::perContextEnabledL
ongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:
:DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}; | 7998 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex
tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon
textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}; |
8098 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 7999 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
8099 } | 8000 } |
8100 if (ContextFeatures::featureNameEnabled(impl->document())) { | 8001 if (ContextFeatures::featureNameEnabled(impl->document())) { |
8101 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 8002 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
8102 {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectV8Internal::p
erContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8
Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback, 0
, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAtt
ribute>(v8::None), 0 /* on instance */}; | 8003 {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectPythonV8Inter
nal::perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSette
rCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:
:PropertyAttribute>(v8::None), 0 /* on instance */}; |
8103 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 8004 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
8104 } | 8005 } |
8105 } | 8006 } |
8106 | 8007 |
8107 void V8TestObject::installPerContextEnabledMethods(v8::Handle<v8::Object> protot
ypeTemplate, v8::Isolate* isolate) | 8008 void V8TestObjectPython::installPerContextEnabledMethods(v8::Handle<v8::Object>
prototypeTemplate, v8::Isolate* isolate) |
8108 { | 8009 { |
8109 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 8010 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
8110 | 8011 |
8111 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo
ntext()); | 8012 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo
ntext()); |
8112 if (context && context->isDocument() && ContextFeatures::featureNameEnabled(
toDocument(context))) | 8013 if (context && context->isDocument() && ContextFeatures::featureNameEnabled(
toDocument(context))) |
8113 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnable
dVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 8014 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::perContext
EnabledVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunctio
n()); |
8114 } | 8015 } |
8115 | 8016 |
8116 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObject> impl,
v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 8017 v8::Handle<v8::Object> V8TestObjectPython::createWrapper(PassRefPtr<TestObjectPy
thon> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
8117 { | 8018 { |
8118 ASSERT(impl); | 8019 ASSERT(impl); |
8119 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl.get(), isolate)); | 8020 ASSERT(!DOMDataStore::containsWrapper<V8TestObjectPython>(impl.get(), isolat
e)); |
8120 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 8021 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
8121 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); | 8022 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); |
8122 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 8023 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
8123 // the same object de-ref functions, though, so use that as the basis of
the check. | 8024 // the same object de-ref functions, though, so use that as the basis of
the check. |
8124 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 8025 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
8125 } | 8026 } |
8126 | 8027 |
8127 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 8028 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
8128 if (UNLIKELY(wrapper.IsEmpty())) | 8029 if (UNLIKELY(wrapper.IsEmpty())) |
8129 return wrapper; | 8030 return wrapper; |
8130 | 8031 |
8131 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 8032 installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
8132 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf
o, wrapper, isolate, WrapperConfiguration::Independent); | 8033 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
8133 return wrapper; | 8034 return wrapper; |
8134 } | 8035 } |
8135 | 8036 |
8136 void V8TestObject::derefObject(void* object) | 8037 void V8TestObjectPython::derefObject(void* object) |
8137 { | 8038 { |
8138 fromInternalPointer(object)->deref(); | 8039 fromInternalPointer(object)->deref(); |
8139 } | 8040 } |
8140 | 8041 |
8141 template<> | 8042 template<> |
8142 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 8043 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
8143 { | 8044 { |
8144 return toV8(impl, creationContext, isolate); | 8045 return toV8(impl, creationContext, isolate); |
8145 } | 8046 } |
8146 | 8047 |
8147 } // namespace WebCore | 8048 } // namespace WebCore |
OLD | NEW |