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

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

Powered by Google App Engine
This is Rietveld 408576698