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

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

Issue 131203009: Make event names of TRACE_EVENT_SAMPLING_STATE macros more descriptive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 static void implementsStaticReadOnlyAttrAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 83 static void implementsStaticReadOnlyAttrAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
84 { 84 {
85 v8SetReturnValueInt(info, TestImplements::implementsStaticReadOnlyAttr()); 85 v8SetReturnValueInt(info, TestImplements::implementsStaticReadOnlyAttr());
86 } 86 }
87 87
88 static void implementsStaticReadOnlyAttrAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 88 static void implementsStaticReadOnlyAttrAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
89 { 89 {
90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
91 TestInterfaceV8Internal::implementsStaticReadOnlyAttrAttributeGetter(info); 91 TestInterfaceV8Internal::implementsStaticReadOnlyAttrAttributeGetter(info);
92 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 92 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
93 } 93 }
94 94
95 static void implementsStaticAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 95 static void implementsStaticAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
96 { 96 {
97 v8SetReturnValueString(info, TestImplements::implementsStaticAttr(), info.Ge tIsolate()); 97 v8SetReturnValueString(info, TestImplements::implementsStaticAttr(), info.Ge tIsolate());
98 } 98 }
99 99
100 static void implementsStaticAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 100 static void implementsStaticAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
101 { 101 {
102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
103 TestInterfaceV8Internal::implementsStaticAttrAttributeGetter(info); 103 TestInterfaceV8Internal::implementsStaticAttrAttributeGetter(info);
104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
105 } 105 }
106 106
107 static void implementsStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 107 static void implementsStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
108 { 108 {
109 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 109 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
110 TestImplements::setImplementsStaticAttr(cppValue); 110 TestImplements::setImplementsStaticAttr(cppValue);
111 } 111 }
112 112
113 static void implementsStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 113 static void implementsStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
114 { 114 {
115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
116 TestInterfaceV8Internal::implementsStaticAttrAttributeSetter(jsValue, info); 116 TestInterfaceV8Internal::implementsStaticAttrAttributeSetter(jsValue, info);
117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
118 } 118 }
119 119
120 static void implementsStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 120 static void implementsStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
121 { 121 {
122 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 122 TestInterface* imp = V8TestInterface::toNative(info.Holder());
123 v8SetReturnValueString(info, TestImplements::implementsStr1(imp), info.GetIs olate()); 123 v8SetReturnValueString(info, TestImplements::implementsStr1(imp), info.GetIs olate());
124 } 124 }
125 125
126 static void implementsStr1AttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 126 static void implementsStr1AttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
127 { 127 {
128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
129 TestInterfaceV8Internal::implementsStr1AttributeGetter(info); 129 TestInterfaceV8Internal::implementsStr1AttributeGetter(info);
130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
131 } 131 }
132 132
133 static void implementsStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 133 static void implementsStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
134 { 134 {
135 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 135 TestInterface* imp = V8TestInterface::toNative(info.Holder());
136 v8SetReturnValueString(info, TestImplements::implementsStr2(imp), info.GetIs olate()); 136 v8SetReturnValueString(info, TestImplements::implementsStr2(imp), info.GetIs olate());
137 } 137 }
138 138
139 static void implementsStr2AttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 139 static void implementsStr2AttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
140 { 140 {
141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
142 TestInterfaceV8Internal::implementsStr2AttributeGetter(info); 142 TestInterfaceV8Internal::implementsStr2AttributeGetter(info);
143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
144 } 144 }
145 145
146 static void implementsStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 146 static void implementsStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info)
147 { 147 {
148 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 148 TestInterface* imp = V8TestInterface::toNative(info.Holder());
149 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 149 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
150 TestImplements::setImplementsStr2(imp, cppValue); 150 TestImplements::setImplementsStr2(imp, cppValue);
151 } 151 }
152 152
153 static void implementsStr2AttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 153 static void implementsStr2AttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
154 { 154 {
155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
156 TestInterfaceV8Internal::implementsStr2AttributeSetter(jsValue, info); 156 TestInterfaceV8Internal::implementsStr2AttributeSetter(jsValue, info);
157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
158 } 158 }
159 159
160 static void implementsStr3AttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 160 static void implementsStr3AttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
161 { 161 {
162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
163 V8TestInterface::implementsStr3AttributeGetterCustom(info); 163 V8TestInterface::implementsStr3AttributeGetterCustom(info);
164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
165 } 165 }
166 166
167 static void implementsStr3AttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 167 static void implementsStr3AttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
168 { 168 {
169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
170 V8TestInterface::implementsStr3AttributeSetterCustom(jsValue, info); 170 V8TestInterface::implementsStr3AttributeSetterCustom(jsValue, info);
171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
172 } 172 }
173 173
174 static void implementsNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 174 static void implementsNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
175 { 175 {
176 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 176 TestInterface* imp = V8TestInterface::toNative(info.Holder());
177 v8SetReturnValueFast(info, TestImplements::implementsNode(imp), imp); 177 v8SetReturnValueFast(info, TestImplements::implementsNode(imp), imp);
178 } 178 }
179 179
180 static void implementsNodeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 180 static void implementsNodeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
181 { 181 {
182 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 182 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
183 TestInterfaceV8Internal::implementsNodeAttributeGetter(info); 183 TestInterfaceV8Internal::implementsNodeAttributeGetter(info);
184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
185 } 185 }
186 186
187 static void implementsNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 187 static void implementsNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info)
188 { 188 {
189 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 189 TestInterface* imp = V8TestInterface::toNative(info.Holder());
190 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 190 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
191 TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue)); 191 TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue));
192 } 192 }
193 193
194 static void implementsNodeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 194 static void implementsNodeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
195 { 195 {
196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
197 TestInterfaceV8Internal::implementsNodeAttributeSetter(jsValue, info); 197 TestInterfaceV8Internal::implementsNodeAttributeSetter(jsValue, info);
198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
199 } 199 }
200 200
201 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 201 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
202 { 202 {
203 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 203 TestInterface* imp = V8TestInterface::toNative(info.Holder());
204 EventListener* jsValue = TestImplements::eventHandlerAttribute(imp, isolated WorldForIsolate(info.GetIsolate())); 204 EventListener* jsValue = TestImplements::eventHandlerAttribute(imp, isolated WorldForIsolate(info.GetIsolate()));
205 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8:: Value>(v8::Null(info.GetIsolate()))); 205 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8:: Value>(v8::Null(info.GetIsolate())));
206 } 206 }
207 207
208 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 208 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
209 { 209 {
210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
211 TestInterfaceV8Internal::eventHandlerAttributeAttributeGetter(info); 211 TestInterfaceV8Internal::eventHandlerAttributeAttributeGetter(info);
212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
213 } 213 }
214 214
215 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 215 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
216 { 216 {
217 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 217 TestInterface* imp = V8TestInterface::toNative(info.Holder());
218 transferHiddenDependency(info.Holder(), TestImplements::eventHandlerAttribut e(imp, isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8TestInterface::ev entListenerCacheIndex, info.GetIsolate()); 218 transferHiddenDependency(info.Holder(), TestImplements::eventHandlerAttribut e(imp, isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8TestInterface::ev entListenerCacheIndex, info.GetIsolate());
219 TestImplements::setEventHandlerAttribute(imp, V8EventListenerList::getEventL istener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIs olate())); 219 TestImplements::setEventHandlerAttribute(imp, V8EventListenerList::getEventL istener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIs olate()));
220 } 220 }
221 221
222 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 222 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
223 { 223 {
224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
225 TestInterfaceV8Internal::eventHandlerAttributeAttributeSetter(jsValue, info) ; 225 TestInterfaceV8Internal::eventHandlerAttributeAttributeSetter(jsValue, info) ;
226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
227 } 227 }
228 228
229 static void Node23AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 229 static void Node23AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
230 { 230 {
231 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 231 TestInterface* imp = V8TestInterface::toNative(info.Holder());
232 v8SetReturnValueFast(info, TestImplements::node23(imp), imp); 232 v8SetReturnValueFast(info, TestImplements::node23(imp), imp);
233 } 233 }
234 234
235 static void Node23AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 235 static void Node23AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
236 { 236 {
237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
238 TestInterfaceV8Internal::Node23AttributeGetter(info); 238 TestInterfaceV8Internal::Node23AttributeGetter(info);
239 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 239 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
240 } 240 }
241 241
242 static void Node23AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 242 static void Node23AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
243 { 243 {
244 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 244 TestInterface* imp = V8TestInterface::toNative(info.Holder());
245 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 245 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
246 TestImplements::setNode23(imp, WTF::getPtr(cppValue)); 246 TestImplements::setNode23(imp, WTF::getPtr(cppValue));
247 } 247 }
248 248
249 static void Node23AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 249 static void Node23AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
250 { 250 {
251 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 251 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
252 TestInterfaceV8Internal::Node23AttributeSetter(jsValue, info); 252 TestInterfaceV8Internal::Node23AttributeSetter(jsValue, info);
253 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 253 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
254 } 254 }
255 255
256 static void Node24AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 256 static void Node24AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
257 { 257 {
258 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 258 TestInterface* imp = V8TestInterface::toNative(info.Holder());
259 v8SetReturnValueFast(info, TestImplements::node24(imp), imp); 259 v8SetReturnValueFast(info, TestImplements::node24(imp), imp);
260 } 260 }
261 261
262 static void Node24AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 262 static void Node24AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
263 { 263 {
264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
265 TestInterfaceV8Internal::Node24AttributeGetter(info); 265 TestInterfaceV8Internal::Node24AttributeGetter(info);
266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
267 } 267 }
268 268
269 static void Node24AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 269 static void Node24AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
270 { 270 {
271 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 271 TestInterface* imp = V8TestInterface::toNative(info.Holder());
272 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 272 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
273 TestImplements::setNode24(imp, WTF::getPtr(cppValue)); 273 TestImplements::setNode24(imp, WTF::getPtr(cppValue));
274 } 274 }
275 275
276 static void Node24AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 276 static void Node24AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
277 { 277 {
278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
279 TestInterfaceV8Internal::Node24AttributeSetter(jsValue, info); 279 TestInterfaceV8Internal::Node24AttributeSetter(jsValue, info);
280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
281 } 281 }
282 282
283 #if ENABLE(CONDITION_PARTIAL) 283 #if ENABLE(CONDITION_PARTIAL)
284 static void supplementalStaticReadOnlyAttrAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 284 static void supplementalStaticReadOnlyAttrAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
285 { 285 {
286 v8SetReturnValueInt(info, TestPartialInterface::supplementalStaticReadOnlyAt tr()); 286 v8SetReturnValueInt(info, TestPartialInterface::supplementalStaticReadOnlyAt tr());
287 } 287 }
288 #endif // ENABLE(CONDITION_PARTIAL) 288 #endif // ENABLE(CONDITION_PARTIAL)
289 289
290 #if ENABLE(CONDITION_PARTIAL) 290 #if ENABLE(CONDITION_PARTIAL)
291 static void supplementalStaticReadOnlyAttrAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 291 static void supplementalStaticReadOnlyAttrAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
292 { 292 {
293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
294 TestInterfaceV8Internal::supplementalStaticReadOnlyAttrAttributeGetter(info) ; 294 TestInterfaceV8Internal::supplementalStaticReadOnlyAttrAttributeGetter(info) ;
295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
296 } 296 }
297 #endif // ENABLE(CONDITION_PARTIAL) 297 #endif // ENABLE(CONDITION_PARTIAL)
298 298
299 #if ENABLE(CONDITION_PARTIAL) 299 #if ENABLE(CONDITION_PARTIAL)
300 static void supplementalStaticAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 300 static void supplementalStaticAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
301 { 301 {
302 v8SetReturnValueString(info, TestPartialInterface::supplementalStaticAttr(), info.GetIsolate()); 302 v8SetReturnValueString(info, TestPartialInterface::supplementalStaticAttr(), info.GetIsolate());
303 } 303 }
304 #endif // ENABLE(CONDITION_PARTIAL) 304 #endif // ENABLE(CONDITION_PARTIAL)
305 305
306 #if ENABLE(CONDITION_PARTIAL) 306 #if ENABLE(CONDITION_PARTIAL)
307 static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 307 static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
308 { 308 {
309 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 309 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
310 TestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(info); 310 TestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(info);
311 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 311 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
312 } 312 }
313 #endif // ENABLE(CONDITION_PARTIAL) 313 #endif // ENABLE(CONDITION_PARTIAL)
314 314
315 #if ENABLE(CONDITION_PARTIAL) 315 #if ENABLE(CONDITION_PARTIAL)
316 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 316 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
317 { 317 {
318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
319 TestPartialInterface::setSupplementalStaticAttr(cppValue); 319 TestPartialInterface::setSupplementalStaticAttr(cppValue);
320 } 320 }
321 #endif // ENABLE(CONDITION_PARTIAL) 321 #endif // ENABLE(CONDITION_PARTIAL)
322 322
323 #if ENABLE(CONDITION_PARTIAL) 323 #if ENABLE(CONDITION_PARTIAL)
324 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 324 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
325 { 325 {
326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
327 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info ); 327 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info );
328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
329 } 329 }
330 #endif // ENABLE(CONDITION_PARTIAL) 330 #endif // ENABLE(CONDITION_PARTIAL)
331 331
332 #if ENABLE(CONDITION_PARTIAL) 332 #if ENABLE(CONDITION_PARTIAL)
333 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 333 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
334 { 334 {
335 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 335 TestInterface* imp = V8TestInterface::toNative(info.Holder());
336 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(imp), in fo.GetIsolate()); 336 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(imp), in fo.GetIsolate());
337 } 337 }
338 #endif // ENABLE(CONDITION_PARTIAL) 338 #endif // ENABLE(CONDITION_PARTIAL)
339 339
340 #if ENABLE(CONDITION_PARTIAL) 340 #if ENABLE(CONDITION_PARTIAL)
341 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 341 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
342 { 342 {
343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
344 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info); 344 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info);
345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
346 } 346 }
347 #endif // ENABLE(CONDITION_PARTIAL) 347 #endif // ENABLE(CONDITION_PARTIAL)
348 348
349 #if ENABLE(CONDITION_PARTIAL) 349 #if ENABLE(CONDITION_PARTIAL)
350 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 350 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
351 { 351 {
352 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 352 TestInterface* imp = V8TestInterface::toNative(info.Holder());
353 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(imp), in fo.GetIsolate()); 353 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(imp), in fo.GetIsolate());
354 } 354 }
355 #endif // ENABLE(CONDITION_PARTIAL) 355 #endif // ENABLE(CONDITION_PARTIAL)
356 356
357 #if ENABLE(CONDITION_PARTIAL) 357 #if ENABLE(CONDITION_PARTIAL)
358 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 358 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
359 { 359 {
360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
361 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); 361 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info);
362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
363 } 363 }
364 #endif // ENABLE(CONDITION_PARTIAL) 364 #endif // ENABLE(CONDITION_PARTIAL)
365 365
366 #if ENABLE(CONDITION_PARTIAL) 366 #if ENABLE(CONDITION_PARTIAL)
367 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 367 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
368 { 368 {
369 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 369 TestInterface* imp = V8TestInterface::toNative(info.Holder());
370 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 370 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
371 TestPartialInterface::setSupplementalStr2(imp, cppValue); 371 TestPartialInterface::setSupplementalStr2(imp, cppValue);
372 } 372 }
373 #endif // ENABLE(CONDITION_PARTIAL) 373 #endif // ENABLE(CONDITION_PARTIAL)
374 374
375 #if ENABLE(CONDITION_PARTIAL) 375 #if ENABLE(CONDITION_PARTIAL)
376 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 376 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
377 { 377 {
378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
379 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info); 379 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info);
380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
381 } 381 }
382 #endif // ENABLE(CONDITION_PARTIAL) 382 #endif // ENABLE(CONDITION_PARTIAL)
383 383
384 #if ENABLE(CONDITION_PARTIAL) 384 #if ENABLE(CONDITION_PARTIAL)
385 static void supplementalStr3AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 385 static void supplementalStr3AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
386 { 386 {
387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
388 V8TestInterface::supplementalStr3AttributeGetterCustom(info); 388 V8TestInterface::supplementalStr3AttributeGetterCustom(info);
389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
390 } 390 }
391 #endif // ENABLE(CONDITION_PARTIAL) 391 #endif // ENABLE(CONDITION_PARTIAL)
392 392
393 #if ENABLE(CONDITION_PARTIAL) 393 #if ENABLE(CONDITION_PARTIAL)
394 static void supplementalStr3AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 394 static void supplementalStr3AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
395 { 395 {
396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
397 V8TestInterface::supplementalStr3AttributeSetterCustom(jsValue, info); 397 V8TestInterface::supplementalStr3AttributeSetterCustom(jsValue, info);
398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
399 } 399 }
400 #endif // ENABLE(CONDITION_PARTIAL) 400 #endif // ENABLE(CONDITION_PARTIAL)
401 401
402 #if ENABLE(CONDITION_PARTIAL) 402 #if ENABLE(CONDITION_PARTIAL)
403 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 403 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
404 { 404 {
405 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 405 TestInterface* imp = V8TestInterface::toNative(info.Holder());
406 v8SetReturnValueFast(info, TestPartialInterface::supplementalNode(imp), imp) ; 406 v8SetReturnValueFast(info, TestPartialInterface::supplementalNode(imp), imp) ;
407 } 407 }
408 #endif // ENABLE(CONDITION_PARTIAL) 408 #endif // ENABLE(CONDITION_PARTIAL)
409 409
410 #if ENABLE(CONDITION_PARTIAL) 410 #if ENABLE(CONDITION_PARTIAL)
411 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 411 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
412 { 412 {
413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
414 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); 414 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info);
415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
416 } 416 }
417 #endif // ENABLE(CONDITION_PARTIAL) 417 #endif // ENABLE(CONDITION_PARTIAL)
418 418
419 #if ENABLE(CONDITION_PARTIAL) 419 #if ENABLE(CONDITION_PARTIAL)
420 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 420 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
421 { 421 {
422 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 422 TestInterface* imp = V8TestInterface::toNative(info.Holder());
423 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 423 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
424 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)); 424 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue));
425 } 425 }
426 #endif // ENABLE(CONDITION_PARTIAL) 426 #endif // ENABLE(CONDITION_PARTIAL)
427 427
428 #if ENABLE(CONDITION_PARTIAL) 428 #if ENABLE(CONDITION_PARTIAL)
429 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 429 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
430 { 430 {
431 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 431 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
432 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); 432 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info);
433 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 433 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
434 } 434 }
435 #endif // ENABLE(CONDITION_PARTIAL) 435 #endif // ENABLE(CONDITION_PARTIAL)
436 436
437 #if ENABLE(CONDITION_PARTIAL) 437 #if ENABLE(CONDITION_PARTIAL)
438 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 438 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
439 { 439 {
440 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 440 TestInterface* imp = V8TestInterface::toNative(info.Holder());
441 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp); 441 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp);
442 } 442 }
443 #endif // ENABLE(CONDITION_PARTIAL) 443 #endif // ENABLE(CONDITION_PARTIAL)
444 444
445 #if ENABLE(CONDITION_PARTIAL) 445 #if ENABLE(CONDITION_PARTIAL)
446 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 446 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
447 { 447 {
448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
449 TestInterfaceV8Internal::Node13AttributeGetter(info); 449 TestInterfaceV8Internal::Node13AttributeGetter(info);
450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
451 } 451 }
452 #endif // ENABLE(CONDITION_PARTIAL) 452 #endif // ENABLE(CONDITION_PARTIAL)
453 453
454 #if ENABLE(CONDITION_PARTIAL) 454 #if ENABLE(CONDITION_PARTIAL)
455 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 455 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
456 { 456 {
457 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 457 TestInterface* imp = V8TestInterface::toNative(info.Holder());
458 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 458 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
459 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); 459 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue));
460 } 460 }
461 #endif // ENABLE(CONDITION_PARTIAL) 461 #endif // ENABLE(CONDITION_PARTIAL)
462 462
463 #if ENABLE(CONDITION_PARTIAL) 463 #if ENABLE(CONDITION_PARTIAL)
464 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 464 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
465 { 465 {
466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
467 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info); 467 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info);
468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
469 } 469 }
470 #endif // ENABLE(CONDITION_PARTIAL) 470 #endif // ENABLE(CONDITION_PARTIAL)
471 471
472 #if ENABLE(CONDITION_PARTIAL) 472 #if ENABLE(CONDITION_PARTIAL)
473 static void Node14AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 473 static void Node14AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
474 { 474 {
475 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 475 TestInterface* imp = V8TestInterface::toNative(info.Holder());
476 v8SetReturnValueFast(info, TestPartialInterface::node14(imp), imp); 476 v8SetReturnValueFast(info, TestPartialInterface::node14(imp), imp);
477 } 477 }
478 #endif // ENABLE(CONDITION_PARTIAL) 478 #endif // ENABLE(CONDITION_PARTIAL)
479 479
480 #if ENABLE(CONDITION_PARTIAL) 480 #if ENABLE(CONDITION_PARTIAL)
481 static void Node14AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 481 static void Node14AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
482 { 482 {
483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
484 TestInterfaceV8Internal::Node14AttributeGetter(info); 484 TestInterfaceV8Internal::Node14AttributeGetter(info);
485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
486 } 486 }
487 #endif // ENABLE(CONDITION_PARTIAL) 487 #endif // ENABLE(CONDITION_PARTIAL)
488 488
489 #if ENABLE(CONDITION_PARTIAL) 489 #if ENABLE(CONDITION_PARTIAL)
490 static void Node14AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 490 static void Node14AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
491 { 491 {
492 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 492 TestInterface* imp = V8TestInterface::toNative(info.Holder());
493 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 493 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
494 TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); 494 TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue));
495 } 495 }
496 #endif // ENABLE(CONDITION_PARTIAL) 496 #endif // ENABLE(CONDITION_PARTIAL)
497 497
498 #if ENABLE(CONDITION_PARTIAL) 498 #if ENABLE(CONDITION_PARTIAL)
499 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 499 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
500 { 500 {
501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
502 TestInterfaceV8Internal::Node14AttributeSetter(jsValue, info); 502 TestInterfaceV8Internal::Node14AttributeSetter(jsValue, info);
503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
504 } 504 }
505 #endif // ENABLE(CONDITION_PARTIAL) 505 #endif // ENABLE(CONDITION_PARTIAL)
506 506
507 #if ENABLE(CONDITION_PARTIAL) 507 #if ENABLE(CONDITION_PARTIAL)
508 static void Node15AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 508 static void Node15AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
509 { 509 {
510 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 510 TestInterface* imp = V8TestInterface::toNative(info.Holder());
511 v8SetReturnValueFast(info, TestPartialInterface::node15(imp), imp); 511 v8SetReturnValueFast(info, TestPartialInterface::node15(imp), imp);
512 } 512 }
513 #endif // ENABLE(CONDITION_PARTIAL) 513 #endif // ENABLE(CONDITION_PARTIAL)
514 514
515 #if ENABLE(CONDITION_PARTIAL) 515 #if ENABLE(CONDITION_PARTIAL)
516 static void Node15AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 516 static void Node15AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
517 { 517 {
518 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 518 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
519 TestInterfaceV8Internal::Node15AttributeGetter(info); 519 TestInterfaceV8Internal::Node15AttributeGetter(info);
520 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 520 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
521 } 521 }
522 #endif // ENABLE(CONDITION_PARTIAL) 522 #endif // ENABLE(CONDITION_PARTIAL)
523 523
524 #if ENABLE(CONDITION_PARTIAL) 524 #if ENABLE(CONDITION_PARTIAL)
525 static void Node15AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 525 static void Node15AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
526 { 526 {
527 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 527 TestInterface* imp = V8TestInterface::toNative(info.Holder());
528 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 528 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
529 TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue)); 529 TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue));
530 } 530 }
531 #endif // ENABLE(CONDITION_PARTIAL) 531 #endif // ENABLE(CONDITION_PARTIAL)
532 532
533 #if ENABLE(CONDITION_PARTIAL) 533 #if ENABLE(CONDITION_PARTIAL)
534 static void Node15AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 534 static void Node15AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
535 { 535 {
536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
537 TestInterfaceV8Internal::Node15AttributeSetter(jsValue, info); 537 TestInterfaceV8Internal::Node15AttributeSetter(jsValue, info);
538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
539 } 539 }
540 #endif // ENABLE(CONDITION_PARTIAL) 540 #endif // ENABLE(CONDITION_PARTIAL)
541 541
542 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 542 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
543 { 543 {
544 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 544 TestInterface* imp = V8TestInterface::toNative(info.Holder());
545 TestImplements::implementsMethod1(imp); 545 TestImplements::implementsMethod1(imp);
546 } 546 }
547 547
548 static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 548 static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
549 { 549 {
550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
551 TestInterfaceV8Internal::implementsMethod1Method(info); 551 TestInterfaceV8Internal::implementsMethod1Method(info);
552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
553 } 553 }
554 554
555 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 555 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
556 { 556 {
557 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsM ethod2", "TestInterface", info.Holder(), info.GetIsolate()); 557 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsM ethod2", "TestInterface", info.Holder(), info.GetIsolate());
558 if (UNLIKELY(info.Length() < 2)) { 558 if (UNLIKELY(info.Length() < 2)) {
559 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 559 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
560 exceptionState.throwIfNeeded(); 560 exceptionState.throwIfNeeded();
561 return; 561 return;
562 } 562 }
563 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 563 TestInterface* imp = V8TestInterface::toNative(info.Holder());
564 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); 564 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
565 if (info.Length() <= 1 || !info[1]->IsFunction()) { 565 if (info.Length() <= 1 || !info[1]->IsFunction()) {
566 exceptionState.throwTypeError("The callback provided as parameter 2 is n ot a function."); 566 exceptionState.throwTypeError("The callback provided as parameter 2 is n ot a function.");
567 exceptionState.throwIfNeeded(); 567 exceptionState.throwIfNeeded();
568 return; 568 return;
569 } 569 }
570 OwnPtr<TestObject> objArg = V8TestObject::create(v8::Handle<v8::Function>::C ast(info[1]), getExecutionContext()); 570 OwnPtr<TestObject> objArg = V8TestObject::create(v8::Handle<v8::Function>::C ast(info[1]), getExecutionContext());
571 ExecutionContext* scriptContext = getExecutionContext(); 571 ExecutionContext* scriptContext = getExecutionContext();
572 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im p, strArg, objArg.release(), exceptionState); 572 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im p, strArg, objArg.release(), exceptionState);
573 if (exceptionState.throwIfNeeded()) 573 if (exceptionState.throwIfNeeded())
574 return; 574 return;
575 v8SetReturnValue(info, result.release()); 575 v8SetReturnValue(info, result.release());
576 } 576 }
577 577
578 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 578 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
579 { 579 {
580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
581 TestInterfaceV8Internal::implementsMethod2Method(info); 581 TestInterfaceV8Internal::implementsMethod2Method(info);
582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
583 } 583 }
584 584
585 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 585 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
586 { 586 {
587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
588 V8TestInterface::implementsMethod3MethodCustom(info); 588 V8TestInterface::implementsMethod3MethodCustom(info);
589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
590 } 590 }
591 591
592 static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 592 static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
593 { 593 {
594 TestImplements::implementsMethod4(); 594 TestImplements::implementsMethod4();
595 } 595 }
596 596
597 static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 597 static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
598 { 598 {
599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
600 TestInterfaceV8Internal::implementsMethod4Method(info); 600 TestInterfaceV8Internal::implementsMethod4Method(info);
601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
602 } 602 }
603 603
604 #if ENABLE(CONDITION_PARTIAL) 604 #if ENABLE(CONDITION_PARTIAL)
605 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 605 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
606 { 606 {
607 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 607 TestInterface* imp = V8TestInterface::toNative(info.Holder());
608 TestPartialInterface::supplementalMethod1(imp); 608 TestPartialInterface::supplementalMethod1(imp);
609 } 609 }
610 #endif // ENABLE(CONDITION_PARTIAL) 610 #endif // ENABLE(CONDITION_PARTIAL)
611 611
612 #if ENABLE(CONDITION_PARTIAL) 612 #if ENABLE(CONDITION_PARTIAL)
613 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 613 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
614 { 614 {
615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
616 TestInterfaceV8Internal::supplementalMethod1Method(info); 616 TestInterfaceV8Internal::supplementalMethod1Method(info);
617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
618 } 618 }
619 #endif // ENABLE(CONDITION_PARTIAL) 619 #endif // ENABLE(CONDITION_PARTIAL)
620 620
621 #if ENABLE(CONDITION_PARTIAL) 621 #if ENABLE(CONDITION_PARTIAL)
622 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 622 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
623 { 623 {
624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod2", "TestInterface", info.Holder(), info.GetIsolate()); 624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod2", "TestInterface", info.Holder(), info.GetIsolate());
625 if (UNLIKELY(info.Length() < 2)) { 625 if (UNLIKELY(info.Length() < 2)) {
626 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 626 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
627 exceptionState.throwIfNeeded(); 627 exceptionState.throwIfNeeded();
(...skipping 13 matching lines...) Expand all
641 return; 641 return;
642 v8SetReturnValue(info, result.release()); 642 v8SetReturnValue(info, result.release());
643 } 643 }
644 #endif // ENABLE(CONDITION_PARTIAL) 644 #endif // ENABLE(CONDITION_PARTIAL)
645 645
646 #if ENABLE(CONDITION_PARTIAL) 646 #if ENABLE(CONDITION_PARTIAL)
647 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 647 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
648 { 648 {
649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
650 TestInterfaceV8Internal::supplementalMethod2Method(info); 650 TestInterfaceV8Internal::supplementalMethod2Method(info);
651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
652 } 652 }
653 #endif // ENABLE(CONDITION_PARTIAL) 653 #endif // ENABLE(CONDITION_PARTIAL)
654 654
655 #if ENABLE(CONDITION_PARTIAL) 655 #if ENABLE(CONDITION_PARTIAL)
656 static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 656 static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
657 { 657 {
658 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 658 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
659 V8TestInterface::supplementalMethod3MethodCustom(info); 659 V8TestInterface::supplementalMethod3MethodCustom(info);
660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
661 } 661 }
662 #endif // ENABLE(CONDITION_PARTIAL) 662 #endif // ENABLE(CONDITION_PARTIAL)
663 663
664 #if ENABLE(CONDITION_PARTIAL) 664 #if ENABLE(CONDITION_PARTIAL)
665 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) 665 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
666 { 666 {
667 TestPartialInterface::supplementalMethod4(); 667 TestPartialInterface::supplementalMethod4();
668 } 668 }
669 #endif // ENABLE(CONDITION_PARTIAL) 669 #endif // ENABLE(CONDITION_PARTIAL)
670 670
671 #if ENABLE(CONDITION_PARTIAL) 671 #if ENABLE(CONDITION_PARTIAL)
672 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 672 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
673 { 673 {
674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
675 TestInterfaceV8Internal::supplementalMethod4Method(info); 675 TestInterfaceV8Internal::supplementalMethod4Method(info);
676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
677 } 677 }
678 #endif // ENABLE(CONDITION_PARTIAL) 678 #endif // ENABLE(CONDITION_PARTIAL)
679 679
680 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 680 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
681 { 681 {
682 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rface", info.Holder(), info.GetIsolate()); 682 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rface", info.Holder(), info.GetIsolate());
683 if (UNLIKELY(info.Length() < 1)) { 683 if (UNLIKELY(info.Length() < 1)) {
684 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 684 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
685 exceptionState.throwIfNeeded(); 685 exceptionState.throwIfNeeded();
686 return; 686 return;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 return; 724 return;
725 } 725 }
726 726
727 return; 727 return;
728 } 728 }
729 729
730 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr opertyCallbackInfo<v8::Value>& info) 730 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr opertyCallbackInfo<v8::Value>& info)
731 { 731 {
732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); 732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty");
733 TestInterfaceV8Internal::namedPropertyGetter(name, info); 733 TestInterfaceV8Internal::namedPropertyGetter(name, info);
734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
735 } 735 }
736 736
737 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) 737 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info)
738 { 738 {
739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); 739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty");
740 V8TestInterface::namedPropertySetterCustom(name, jsValue, info); 740 V8TestInterface::namedPropertySetterCustom(name, jsValue, info);
741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
742 } 742 }
743 743
744 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo) 744 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo)
745 { 745 {
746 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 746 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
747 TestInterface* collection = V8TestInterface::toNative(info.Holder()); 747 TestInterface* collection = V8TestInterface::toNative(info.Holder());
748 Vector<String> names; 748 Vector<String> names;
749 collection->namedPropertyEnumerator(names, exceptionState); 749 collection->namedPropertyEnumerator(names, exceptionState);
750 if (exceptionState.throwIfNeeded()) 750 if (exceptionState.throwIfNeeded())
751 return; 751 return;
(...skipping 13 matching lines...) Expand all
765 return; 765 return;
766 if (!result) 766 if (!result)
767 return; 767 return;
768 v8SetReturnValueInt(info, v8::None); 768 v8SetReturnValueInt(info, v8::None);
769 } 769 }
770 770
771 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 771 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
772 { 772 {
773 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); 773 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty");
774 TestInterfaceV8Internal::namedPropertyEnumerator(info); 774 TestInterfaceV8Internal::namedPropertyEnumerator(info);
775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
776 } 776 }
777 777
778 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Integer>& info) 778 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Integer>& info)
779 { 779 {
780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); 780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty");
781 TestInterfaceV8Internal::namedPropertyQuery(name, info); 781 TestInterfaceV8Internal::namedPropertyQuery(name, info);
782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
783 } 783 }
784 784
785 } // namespace TestInterfaceV8Internal 785 } // namespace TestInterfaceV8Internal
786 786
787 void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj ect>& wrapper, v8::Isolate* isolate) 787 void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj ect>& wrapper, v8::Isolate* isolate)
788 { 788 {
789 TestInterface* impl = fromInternalPointer(object); 789 TestInterface* impl = fromInternalPointer(object);
790 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 790 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper);
791 V8WrapperInstantiationScope scope(creationContext, isolate); 791 V8WrapperInstantiationScope scope(creationContext, isolate);
792 ReferencedType* referencedName = impl->referencedName(); 792 ReferencedType* referencedName = impl->referencedName();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 } 982 }
983 983
984 template<> 984 template<>
985 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 985 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
986 { 986 {
987 return toV8(impl, creationContext, isolate); 987 return toV8(impl, creationContext, isolate);
988 } 988 }
989 989
990 } // namespace WebCore 990 } // namespace WebCore
991 #endif // ENABLE(Condition1) || ENABLE(Condition2) 991 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698