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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfacePython.cpp

Issue 214143003: Bindings: use |holder| local variable in attribute getters and setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterfacePython.h" 9 #include "V8TestInterfacePython.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 namespace WebCore { 49 namespace WebCore {
50 const WrapperTypeInfo V8TestInterfacePython::wrapperTypeInfo = { gin::kEmbedderB link, V8TestInterfacePython::domTemplate, V8TestInterfacePython::derefObject, V8 TestInterfacePython::toActiveDOMObject, 0, V8TestInterfacePython::visitDOMWrappe r, V8TestInterfacePython::installPerContextEnabledMethods, &V8TestInterfaceEmpty ::wrapperTypeInfo, WrapperTypeObjectPrototype, false }; 50 const WrapperTypeInfo V8TestInterfacePython::wrapperTypeInfo = { gin::kEmbedderB link, V8TestInterfacePython::domTemplate, V8TestInterfacePython::derefObject, V8 TestInterfacePython::toActiveDOMObject, 0, V8TestInterfacePython::visitDOMWrappe r, V8TestInterfacePython::installPerContextEnabledMethods, &V8TestInterfaceEmpty ::wrapperTypeInfo, WrapperTypeObjectPrototype, false };
51 51
52 namespace TestInterfacePythonImplementationV8Internal { 52 namespace TestInterfacePythonImplementationV8Internal {
53 53
54 template <typename T> void V8_USE(T) { } 54 template <typename T> void V8_USE(T) { }
55 55
56 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 56 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
57 { 57 {
58 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 58 v8::Handle<v8::Object> holder = info.Holder();
59 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
59 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfacePythonAttribute()) , impl); 60 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfacePythonAttribute()) , impl);
60 } 61 }
61 62
62 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 63 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
63 { 64 {
64 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 65 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
65 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt ributeGetter(info); 66 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt ributeGetter(info);
66 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 67 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
67 } 68 }
68 69
69 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 70 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info)
70 { 71 {
71 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceP ythonAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); 72 v8::Handle<v8::Object> holder = info.Holder();
73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceP ythonAttribute", "TestInterfacePython", holder, info.GetIsolate());
72 if (!isUndefinedOrNull(jsValue) && !V8TestInterfacePython::hasInstance(jsVal ue, info.GetIsolate())) { 74 if (!isUndefinedOrNull(jsValue) && !V8TestInterfacePython::hasInstance(jsVal ue, info.GetIsolate())) {
73 exceptionState.throwTypeError("The provided value is not of type 'TestIn terfacePython'."); 75 exceptionState.throwTypeError("The provided value is not of type 'TestIn terfacePython'.");
74 exceptionState.throwIfNeeded(); 76 exceptionState.throwIfNeeded();
75 return; 77 return;
76 } 78 }
77 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 79 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
78 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); 80 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::toNativeWithTypeCheck(info.GetIsolate(), jsValue));
79 impl->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); 81 impl->setTestInterfacePythonAttribute(WTF::getPtr(cppValue));
80 } 82 }
81 83
82 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 84 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
83 { 85 {
84 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
85 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt ributeSetter(jsValue, info); 87 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt ributeSetter(jsValue, info);
86 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
87 } 89 }
(...skipping 18 matching lines...) Expand all
106 108
107 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 109 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
108 { 110 {
109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
110 TestInterfacePythonImplementationV8Internal::staticStringAttributeAttributeS etter(jsValue, info); 112 TestInterfacePythonImplementationV8Internal::staticStringAttributeAttributeS etter(jsValue, info);
111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
112 } 114 }
113 115
114 static void perWorldBindingsStringAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 116 static void perWorldBindingsStringAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
115 { 117 {
116 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 118 v8::Handle<v8::Object> holder = info.Holder();
119 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
117 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G etIsolate()); 120 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G etIsolate());
118 } 121 }
119 122
120 static void perWorldBindingsStringAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 123 static void perWorldBindingsStringAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
121 { 124 {
122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
123 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeGetter(info); 126 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeGetter(info);
124 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
125 } 128 }
126 129
127 static void perWorldBindingsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 130 static void perWorldBindingsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
128 { 131 {
129 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 132 v8::Handle<v8::Object> holder = info.Holder();
133 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
130 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 134 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
131 impl->setPerWorldBindingsStringAttribute(cppValue); 135 impl->setPerWorldBindingsStringAttribute(cppValue);
132 } 136 }
133 137
134 static void perWorldBindingsStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 138 static void perWorldBindingsStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
135 { 139 {
136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
137 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeSetter(jsValue, info); 141 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeSetter(jsValue, info);
138 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
139 } 143 }
140 144
141 static void perWorldBindingsStringAttributeAttributeGetterForMainWorld(const v8: :PropertyCallbackInfo<v8::Value>& info) 145 static void perWorldBindingsStringAttributeAttributeGetterForMainWorld(const v8: :PropertyCallbackInfo<v8::Value>& info)
142 { 146 {
143 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 147 v8::Handle<v8::Object> holder = info.Holder();
148 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
144 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G etIsolate()); 149 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G etIsolate());
145 } 150 }
146 151
147 static void perWorldBindingsStringAttributeAttributeGetterCallbackForMainWorld(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 152 static void perWorldBindingsStringAttributeAttributeGetterCallbackForMainWorld(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
148 { 153 {
149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
150 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeGetterForMainWorld(info); 155 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeGetterForMainWorld(info);
151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
152 } 157 }
153 158
154 static void perWorldBindingsStringAttributeAttributeSetterForMainWorld(v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 159 static void perWorldBindingsStringAttributeAttributeSetterForMainWorld(v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
155 { 160 {
156 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 161 v8::Handle<v8::Object> holder = info.Holder();
162 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
157 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 163 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
158 impl->setPerWorldBindingsStringAttribute(cppValue); 164 impl->setPerWorldBindingsStringAttribute(cppValue);
159 } 165 }
160 166
161 static void perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld(v 8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackIn fo<void>& info) 167 static void perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld(v 8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackIn fo<void>& info)
162 { 168 {
163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
164 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeSetterForMainWorld(jsValue, info); 170 TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttribute AttributeSetterForMainWorld(jsValue, info);
165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
166 } 172 }
(...skipping 30 matching lines...) Expand all
197 203
198 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 204 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
199 { 205 {
200 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 206 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
201 TestInterfacePythonImplementationV8Internal::implementsStaticStringAttribute AttributeSetter(jsValue, info); 207 TestInterfacePythonImplementationV8Internal::implementsStaticStringAttribute AttributeSetter(jsValue, info);
202 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 208 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
203 } 209 }
204 210
205 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info) 211 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info)
206 { 212 {
207 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 213 v8::Handle<v8::Object> holder = info.Holder();
214 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
208 ASSERT(impl); 215 ASSERT(impl);
209 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu te(*impl), info.GetIsolate()); 216 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu te(*impl), info.GetIsolate());
210 } 217 }
211 218
212 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 219 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
213 { 220 {
214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
215 TestInterfacePythonImplementationV8Internal::implementsReadonlyStringAttribu teAttributeGetter(info); 222 TestInterfacePythonImplementationV8Internal::implementsReadonlyStringAttribu teAttributeGetter(info);
216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
217 } 224 }
218 225
219 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 226 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
220 { 227 {
221 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 228 v8::Handle<v8::Object> holder = info.Holder();
229 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
222 ASSERT(impl); 230 ASSERT(impl);
223 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl ), info.GetIsolate()); 231 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl ), info.GetIsolate());
224 } 232 }
225 233
226 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 234 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
227 { 235 {
228 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
229 TestInterfacePythonImplementationV8Internal::implementsStringAttributeAttrib uteGetter(info); 237 TestInterfacePythonImplementationV8Internal::implementsStringAttributeAttrib uteGetter(info);
230 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
231 } 239 }
232 240
233 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 241 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
234 { 242 {
235 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 243 v8::Handle<v8::Object> holder = info.Holder();
244 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
236 ASSERT(impl); 245 ASSERT(impl);
237 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 246 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
238 TestImplements::setImplementsStringAttribute(*impl, cppValue); 247 TestImplements::setImplementsStringAttribute(*impl, cppValue);
239 } 248 }
240 249
241 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 250 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
242 { 251 {
243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
244 TestInterfacePythonImplementationV8Internal::implementsStringAttributeAttrib uteSetter(jsValue, info); 253 TestInterfacePythonImplementationV8Internal::implementsStringAttributeAttrib uteSetter(jsValue, info);
245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 254 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
246 } 255 }
247 256
248 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 257 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
249 { 258 {
250 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 259 v8::Handle<v8::Object> holder = info.Holder();
260 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
251 ASSERT(impl); 261 ASSERT(impl);
252 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu te(*impl)), impl); 262 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu te(*impl)), impl);
253 } 263 }
254 264
255 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 265 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
256 { 266 {
257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
258 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut eGetter(info); 268 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut eGetter(info);
259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
260 } 270 }
261 271
262 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 272 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
263 { 273 {
264 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); 274 v8::Handle<v8::Object> holder = info.Holder();
275 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterfacePython", holder, info.GetIsolate());
265 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso late())) { 276 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso late())) {
266 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 277 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
267 exceptionState.throwIfNeeded(); 278 exceptionState.throwIfNeeded();
268 return; 279 return;
269 } 280 }
270 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 281 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
271 ASSERT(impl); 282 ASSERT(impl);
272 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 283 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
273 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); 284 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue));
274 } 285 }
275 286
276 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 287 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
277 { 288 {
278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
279 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut eSetter(jsValue, info); 290 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut eSetter(jsValue, info);
280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
281 } 292 }
282 293
283 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 294 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
284 { 295 {
285 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 296 v8::Handle<v8::Object> holder = info.Holder();
297 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
286 ASSERT(impl); 298 ASSERT(impl);
287 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im pl); 299 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im pl);
288 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate()))); 300 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate())));
289 } 301 }
290 302
291 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 303 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
292 { 304 {
293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
294 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute AttributeGetter(info); 306 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute AttributeGetter(info);
295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
296 } 308 }
297 309
298 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 310 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
299 { 311 {
300 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 312 v8::Handle<v8::Object> holder = info.Holder();
313 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
301 ASSERT(impl); 314 ASSERT(impl);
302 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent HandlerAttribute(*impl), jsValue, V8TestInterfacePython::eventListenerCacheIndex , info.GetIsolate()); 315 moveEventListenerToNewWrapper(holder, TestImplements::implementsEventHandler Attribute(*impl), jsValue, V8TestInterfacePython::eventListenerCacheIndex, info. GetIsolate());
303 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis t::getEventListener(jsValue, true, ListenerFindOrCreate)); 316 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis t::getEventListener(jsValue, true, ListenerFindOrCreate));
304 } 317 }
305 318
306 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 319 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
307 { 320 {
308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 321 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
309 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute AttributeSetter(jsValue, info); 322 TestInterfacePythonImplementationV8Internal::implementsEventHandlerAttribute AttributeSetter(jsValue, info);
310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 323 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
311 } 324 }
312 325
313 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 326 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
314 { 327 {
315 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 328 v8::Handle<v8::Object> holder = info.Holder();
329 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
316 ASSERT(impl); 330 ASSERT(impl);
317 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab ledNodeAttribute(*impl)), impl); 331 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab ledNodeAttribute(*impl)), impl);
318 } 332 }
319 333
320 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 334 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
321 { 335 {
322 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
323 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt ributeAttributeGetter(info); 337 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt ributeAttributeGetter(info);
324 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
325 } 339 }
326 340
327 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 341 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
328 { 342 {
329 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate( )); 343 v8::Handle<v8::Object> holder = info.Holder();
344 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterfacePython", holder, info.GetIsolate());
330 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso late())) { 345 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso late())) {
331 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 346 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
332 exceptionState.throwIfNeeded(); 347 exceptionState.throwIfNeeded();
333 return; 348 return;
334 } 349 }
335 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 350 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
336 ASSERT(impl); 351 ASSERT(impl);
337 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 352 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
338 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr( cppValue)); 353 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr( cppValue));
339 } 354 }
340 355
341 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 356 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info)
342 { 357 {
343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
344 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt ributeAttributeSetter(jsValue, info); 359 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt ributeAttributeSetter(jsValue, info);
345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
346 } 361 }
347 362
348 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 363 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
349 { 364 {
350 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 365 v8::Handle<v8::Object> holder = info.Holder();
366 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
351 ASSERT(impl); 367 ASSERT(impl);
352 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE nabledNodeAttribute(*impl)), impl); 368 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE nabledNodeAttribute(*impl)), impl);
353 } 369 }
354 370
355 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 371 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
356 { 372 {
357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
358 TestInterfacePythonImplementationV8Internal::implementsPerContextEnabledNode AttributeAttributeGetter(info); 374 TestInterfacePythonImplementationV8Internal::implementsPerContextEnabledNode AttributeAttributeGetter(info);
359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
360 } 376 }
361 377
362 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 378 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
363 { 379 {
364 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterfacePython", info.Holder(), info.GetIsola te()); 380 v8::Handle<v8::Object> holder = info.Holder();
381 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterfacePython", holder, info.GetIsolate());
365 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso late())) { 382 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso late())) {
366 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 383 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
367 exceptionState.throwIfNeeded(); 384 exceptionState.throwIfNeeded();
368 return; 385 return;
369 } 386 }
370 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 387 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
371 ASSERT(impl); 388 ASSERT(impl);
372 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 389 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
373 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP tr(cppValue)); 390 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP tr(cppValue));
374 } 391 }
375 392
376 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 393 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
377 { 394 {
378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 395 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
379 TestInterfacePythonImplementationV8Internal::implementsPerContextEnabledNode AttributeAttributeSetter(jsValue, info); 396 TestInterfacePythonImplementationV8Internal::implementsPerContextEnabledNode AttributeAttributeSetter(jsValue, info);
380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 19 matching lines...) Expand all
400 417
401 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 418 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo)
402 { 419 {
403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 420 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
404 TestInterfacePythonImplementationV8Internal::implements2StaticStringAttribut eAttributeSetter(jsValue, info); 421 TestInterfacePythonImplementationV8Internal::implements2StaticStringAttribut eAttributeSetter(jsValue, info);
405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
406 } 423 }
407 424
408 static void implements2StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 425 static void implements2StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
409 { 426 {
410 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 427 v8::Handle<v8::Object> holder = info.Holder();
428 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
411 ASSERT(impl); 429 ASSERT(impl);
412 v8SetReturnValueString(info, TestImplements2Implementation::implements2Strin gAttribute(*impl), info.GetIsolate()); 430 v8SetReturnValueString(info, TestImplements2Implementation::implements2Strin gAttribute(*impl), info.GetIsolate());
413 } 431 }
414 432
415 static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 433 static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
416 { 434 {
417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
418 TestInterfacePythonImplementationV8Internal::implements2StringAttributeAttri buteGetter(info); 436 TestInterfacePythonImplementationV8Internal::implements2StringAttributeAttri buteGetter(info);
419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
420 } 438 }
421 439
422 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 440 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info)
423 { 441 {
424 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 442 v8::Handle<v8::Object> holder = info.Holder();
443 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
425 ASSERT(impl); 444 ASSERT(impl);
426 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 445 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
427 TestImplements2Implementation::setImplements2StringAttribute(*impl, cppValue ); 446 TestImplements2Implementation::setImplements2StringAttribute(*impl, cppValue );
428 } 447 }
429 448
430 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 449 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
431 { 450 {
432 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 451 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
433 TestInterfacePythonImplementationV8Internal::implements2StringAttributeAttri buteSetter(jsValue, info); 452 TestInterfacePythonImplementationV8Internal::implements2StringAttributeAttri buteSetter(jsValue, info);
434 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 453 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
435 } 454 }
436 455
437 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 456 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
438 { 457 {
439 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 458 v8::Handle<v8::Object> holder = info.Holder();
459 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
440 v8SetReturnValueString(info, impl->implements3StringAttribute(), info.GetIso late()); 460 v8SetReturnValueString(info, impl->implements3StringAttribute(), info.GetIso late());
441 } 461 }
442 462
443 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 463 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
444 { 464 {
445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 465 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
446 TestInterfacePythonImplementationV8Internal::implements3StringAttributeAttri buteGetter(info); 466 TestInterfacePythonImplementationV8Internal::implements3StringAttributeAttri buteGetter(info);
447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 467 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
448 } 468 }
449 469
450 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 470 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info)
451 { 471 {
452 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 472 v8::Handle<v8::Object> holder = info.Holder();
473 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
453 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 474 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
454 impl->setImplements3StringAttribute(cppValue); 475 impl->setImplements3StringAttribute(cppValue);
455 } 476 }
456 477
457 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 478 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
458 { 479 {
459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 480 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
460 TestInterfacePythonImplementationV8Internal::implements3StringAttributeAttri buteSetter(jsValue, info); 481 TestInterfacePythonImplementationV8Internal::implements3StringAttributeAttri buteSetter(jsValue, info);
461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 482 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
462 } 483 }
(...skipping 19 matching lines...) Expand all
482 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 503 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo)
483 { 504 {
484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 505 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
485 TestInterfacePythonImplementationV8Internal::implements3StaticStringAttribut eAttributeSetter(jsValue, info); 506 TestInterfacePythonImplementationV8Internal::implements3StaticStringAttribut eAttributeSetter(jsValue, info);
486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 507 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
487 } 508 }
488 509
489 #if ENABLE(PARTIAL_CONDITION) 510 #if ENABLE(PARTIAL_CONDITION)
490 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 511 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
491 { 512 {
492 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 513 v8::Handle<v8::Object> holder = info.Holder();
514 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
493 ASSERT(impl); 515 ASSERT(impl);
494 v8SetReturnValueInt(info, TestPartialInterfacePython::partialLongAttribute(* impl)); 516 v8SetReturnValueInt(info, TestPartialInterfacePython::partialLongAttribute(* impl));
495 } 517 }
496 #endif // ENABLE(PARTIAL_CONDITION) 518 #endif // ENABLE(PARTIAL_CONDITION)
497 519
498 #if ENABLE(PARTIAL_CONDITION) 520 #if ENABLE(PARTIAL_CONDITION)
499 static void partialLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 521 static void partialLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
500 { 522 {
501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
502 TestInterfacePythonImplementationV8Internal::partialLongAttributeAttributeGe tter(info); 524 TestInterfacePythonImplementationV8Internal::partialLongAttributeAttributeGe tter(info);
503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
504 } 526 }
505 #endif // ENABLE(PARTIAL_CONDITION) 527 #endif // ENABLE(PARTIAL_CONDITION)
506 528
507 #if ENABLE(PARTIAL_CONDITION) 529 #if ENABLE(PARTIAL_CONDITION)
508 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 530 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
509 { 531 {
510 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt ribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); 532 v8::Handle<v8::Object> holder = info.Holder();
511 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 533 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt ribute", "TestInterfacePython", holder, info.GetIsolate());
534 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
512 ASSERT(impl); 535 ASSERT(impl);
513 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 536 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
514 TestPartialInterfacePython::setPartialLongAttribute(*impl, cppValue); 537 TestPartialInterfacePython::setPartialLongAttribute(*impl, cppValue);
515 } 538 }
516 #endif // ENABLE(PARTIAL_CONDITION) 539 #endif // ENABLE(PARTIAL_CONDITION)
517 540
518 #if ENABLE(PARTIAL_CONDITION) 541 #if ENABLE(PARTIAL_CONDITION)
519 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 542 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
520 { 543 {
521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 544 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
(...skipping 14 matching lines...) Expand all
536 { 559 {
537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 560 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
538 TestInterfacePythonImplementationV8Internal::partialStaticLongAttributeAttri buteGetter(info); 561 TestInterfacePythonImplementationV8Internal::partialStaticLongAttributeAttri buteGetter(info);
539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 562 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
540 } 563 }
541 #endif // ENABLE(PARTIAL_CONDITION) 564 #endif // ENABLE(PARTIAL_CONDITION)
542 565
543 #if ENABLE(PARTIAL_CONDITION) 566 #if ENABLE(PARTIAL_CONDITION)
544 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 567 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info)
545 { 568 {
546 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL ongAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); 569 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL ongAttribute", "TestInterfacePython", holder, info.GetIsolate());
547 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 570 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
548 TestPartialInterfacePython::setPartialStaticLongAttribute(cppValue); 571 TestPartialInterfacePython::setPartialStaticLongAttribute(cppValue);
549 } 572 }
550 #endif // ENABLE(PARTIAL_CONDITION) 573 #endif // ENABLE(PARTIAL_CONDITION)
551 574
552 #if ENABLE(PARTIAL_CONDITION) 575 #if ENABLE(PARTIAL_CONDITION)
553 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 576 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
554 { 577 {
555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 578 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
556 TestInterfacePythonImplementationV8Internal::partialStaticLongAttributeAttri buteSetter(jsValue, info); 579 TestInterfacePythonImplementationV8Internal::partialStaticLongAttributeAttri buteSetter(jsValue, info);
557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 580 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
558 } 581 }
559 #endif // ENABLE(PARTIAL_CONDITION) 582 #endif // ENABLE(PARTIAL_CONDITION)
560 583
561 #if ENABLE(PARTIAL_CONDITION) 584 #if ENABLE(PARTIAL_CONDITION)
562 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 585 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
563 { 586 {
564 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 587 v8::Handle<v8::Object> holder = info.Holder();
588 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
565 ASSERT(impl); 589 ASSERT(impl);
566 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 590 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
567 v8SetReturnValueInt(info, TestPartialInterfacePython::partialCallWithExecuti onContextLongAttribute(scriptContext, *impl)); 591 v8SetReturnValueInt(info, TestPartialInterfacePython::partialCallWithExecuti onContextLongAttribute(scriptContext, *impl));
568 } 592 }
569 #endif // ENABLE(PARTIAL_CONDITION) 593 #endif // ENABLE(PARTIAL_CONDITION)
570 594
571 #if ENABLE(PARTIAL_CONDITION) 595 #if ENABLE(PARTIAL_CONDITION)
572 static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 596 static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
573 { 597 {
574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 598 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
575 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext LongAttributeAttributeGetter(info); 599 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext LongAttributeAttributeGetter(info);
576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 600 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
577 } 601 }
578 #endif // ENABLE(PARTIAL_CONDITION) 602 #endif // ENABLE(PARTIAL_CONDITION)
579 603
580 #if ENABLE(PARTIAL_CONDITION) 604 #if ENABLE(PARTIAL_CONDITION)
581 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 605 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
582 { 606 {
583 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit hExecutionContextLongAttribute", "TestInterfacePython", info.Holder(), info.GetI solate()); 607 v8::Handle<v8::Object> holder = info.Holder();
584 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 608 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit hExecutionContextLongAttribute", "TestInterfacePython", holder, info.GetIsolate( ));
609 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
585 ASSERT(impl); 610 ASSERT(impl);
586 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 611 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
587 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 612 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
588 TestPartialInterfacePython::setPartialCallWithExecutionContextLongAttribute( scriptContext, *impl, cppValue); 613 TestPartialInterfacePython::setPartialCallWithExecutionContextLongAttribute( scriptContext, *impl, cppValue);
589 } 614 }
590 #endif // ENABLE(PARTIAL_CONDITION) 615 #endif // ENABLE(PARTIAL_CONDITION)
591 616
592 #if ENABLE(PARTIAL_CONDITION) 617 #if ENABLE(PARTIAL_CONDITION)
593 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info) 618 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info)
594 { 619 {
595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 620 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
596 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext LongAttributeAttributeSetter(jsValue, info); 621 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext LongAttributeAttributeSetter(jsValue, info);
597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 622 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
598 } 623 }
599 #endif // ENABLE(PARTIAL_CONDITION) 624 #endif // ENABLE(PARTIAL_CONDITION)
600 625
601 #if ENABLE(PARTIAL_CONDITION) 626 #if ENABLE(PARTIAL_CONDITION)
602 static void enumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 627 static void enumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
603 { 628 {
604 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 629 v8::Handle<v8::Object> holder = info.Holder();
630 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
605 ASSERT(impl); 631 ASSERT(impl);
606 v8SetReturnValueString(info, TestPartialInterfacePython::enumAttribute(*impl ), info.GetIsolate()); 632 v8SetReturnValueString(info, TestPartialInterfacePython::enumAttribute(*impl ), info.GetIsolate());
607 } 633 }
608 #endif // ENABLE(PARTIAL_CONDITION) 634 #endif // ENABLE(PARTIAL_CONDITION)
609 635
610 #if ENABLE(PARTIAL_CONDITION) 636 #if ENABLE(PARTIAL_CONDITION)
611 static void enumAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 637 static void enumAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
612 { 638 {
613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
614 TestInterfacePythonImplementationV8Internal::enumAttributeAttributeGetter(in fo); 640 TestInterfacePythonImplementationV8Internal::enumAttributeAttributeGetter(in fo);
615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
616 } 642 }
617 #endif // ENABLE(PARTIAL_CONDITION) 643 #endif // ENABLE(PARTIAL_CONDITION)
618 644
619 #if ENABLE(PARTIAL_CONDITION) 645 #if ENABLE(PARTIAL_CONDITION)
620 static void enumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 646 static void enumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info)
621 { 647 {
622 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 648 v8::Handle<v8::Object> holder = info.Holder();
649 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
623 ASSERT(impl); 650 ASSERT(impl);
624 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 651 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
625 String string = cppValue; 652 String string = cppValue;
626 if (!(string == "foo" || string == "bar")) 653 if (!(string == "foo" || string == "bar"))
627 return; 654 return;
628 TestPartialInterfacePython::setEnumAttribute(*impl, cppValue); 655 TestPartialInterfacePython::setEnumAttribute(*impl, cppValue);
629 } 656 }
630 #endif // ENABLE(PARTIAL_CONDITION) 657 #endif // ENABLE(PARTIAL_CONDITION)
631 658
632 #if ENABLE(PARTIAL_CONDITION) 659 #if ENABLE(PARTIAL_CONDITION)
633 static void enumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 660 static void enumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
634 { 661 {
635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
636 TestInterfacePythonImplementationV8Internal::enumAttributeAttributeSetter(js Value, info); 663 TestInterfacePythonImplementationV8Internal::enumAttributeAttributeSetter(js Value, info);
637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
638 } 665 }
639 #endif // ENABLE(PARTIAL_CONDITION) 666 #endif // ENABLE(PARTIAL_CONDITION)
640 667
641 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 668 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
642 { 669 {
643 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 670 v8::Handle<v8::Object> holder = info.Holder();
671 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
644 ASSERT(impl); 672 ASSERT(impl);
645 v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2 LongAttribute(*impl)); 673 v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2 LongAttribute(*impl));
646 } 674 }
647 675
648 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 676 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
649 { 677 {
650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 678 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
651 TestInterfacePythonImplementationV8Internal::partial2LongAttributeAttributeG etter(info); 679 TestInterfacePythonImplementationV8Internal::partial2LongAttributeAttributeG etter(info);
652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
653 } 681 }
654 682
655 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 683 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
656 { 684 {
657 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt tribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); 685 v8::Handle<v8::Object> holder = info.Holder();
658 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 686 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt tribute", "TestInterfacePython", holder, info.GetIsolate());
687 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(ho lder);
659 ASSERT(impl); 688 ASSERT(impl);
660 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 689 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
661 TestPartialInterfacePythonImplementation::setPartial2LongAttribute(*impl, cp pValue); 690 TestPartialInterfacePythonImplementation::setPartial2LongAttribute(*impl, cp pValue);
662 } 691 }
663 692
664 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 693 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
665 { 694 {
666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 695 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
667 TestInterfacePythonImplementationV8Internal::partial2LongAttributeAttributeS etter(jsValue, info); 696 TestInterfacePythonImplementationV8Internal::partial2LongAttributeAttributeS etter(jsValue, info);
668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
669 } 698 }
670 699
671 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 700 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
672 { 701 {
673 v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2 StaticLongAttribute()); 702 v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2 StaticLongAttribute());
674 } 703 }
675 704
676 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 705 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
677 { 706 {
678 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
679 TestInterfacePythonImplementationV8Internal::partial2StaticLongAttributeAttr ibuteGetter(info); 708 TestInterfacePythonImplementationV8Internal::partial2StaticLongAttributeAttr ibuteGetter(info);
680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
681 } 710 }
682 711
683 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 712 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info)
684 { 713 {
685 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static LongAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); 714 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static LongAttribute", "TestInterfacePython", holder, info.GetIsolate());
686 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 715 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
687 TestPartialInterfacePythonImplementation::setPartial2StaticLongAttribute(cpp Value); 716 TestPartialInterfacePythonImplementation::setPartial2StaticLongAttribute(cpp Value);
688 } 717 }
689 718
690 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 719 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
691 { 720 {
692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
693 TestInterfacePythonImplementationV8Internal::partial2StaticLongAttributeAttr ibuteSetter(jsValue, info); 722 TestInterfacePythonImplementationV8Internal::partial2StaticLongAttributeAttr ibuteSetter(jsValue, info);
694 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
695 } 724 }
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 } 1214 }
1186 1215
1187 template<> 1216 template<>
1188 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate) 1217 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate)
1189 { 1218 {
1190 return toV8(impl, creationContext, isolate); 1219 return toV8(impl, creationContext, isolate);
1191 } 1220 }
1192 1221
1193 } // namespace WebCore 1222 } // namespace WebCore
1194 #endif // ENABLE(CONDITION) 1223 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698