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

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

Issue 130703003: Revert of Add use counters for using Attrs as Nodes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mark as removed, instead of revert-deleting, the counter enums. 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
32 32
33 #include "config.h" 33 #include "config.h"
34 #if ENABLE(Condition1) || ENABLE(Condition2) 34 #if ENABLE(Condition1) || ENABLE(Condition2)
35 #include "V8TestInterface.h" 35 #include "V8TestInterface.h"
36 36
37 #include "RuntimeEnabledFeatures.h" 37 #include "RuntimeEnabledFeatures.h"
38 #include "V8Attr.h"
39 #include "V8Node.h" 38 #include "V8Node.h"
40 #include "V8NodeList.h" 39 #include "V8NodeList.h"
41 #include "V8ReferencedType.h" 40 #include "V8ReferencedType.h"
42 #include "V8TestObject.h" 41 #include "V8TestObject.h"
43 #include "bindings/tests/idls/TestImplements.h" 42 #include "bindings/tests/idls/TestImplements.h"
44 #include "bindings/tests/idls/TestPartialInterface.h" 43 #include "bindings/tests/idls/TestPartialInterface.h"
45 #include "bindings/v8/ExceptionState.h" 44 #include "bindings/v8/ExceptionState.h"
46 #include "bindings/v8/V8AbstractEventListener.h" 45 #include "bindings/v8/V8AbstractEventListener.h"
47 #include "bindings/v8/V8DOMConfiguration.h" 46 #include "bindings/v8/V8DOMConfiguration.h"
48 #include "bindings/v8/V8EventListenerList.h" 47 #include "bindings/v8/V8EventListenerList.h"
49 #include "bindings/v8/V8ObjectConstructor.h" 48 #include "bindings/v8/V8ObjectConstructor.h"
50 #include "core/dom/ContextFeatures.h" 49 #include "core/dom/ContextFeatures.h"
51 #include "core/dom/Document.h" 50 #include "core/dom/Document.h"
52 #include "core/frame/UseCounter.h"
53 #include "platform/TraceEvent.h" 51 #include "platform/TraceEvent.h"
54 #include "wtf/GetPtr.h" 52 #include "wtf/GetPtr.h"
55 #include "wtf/RefPtr.h" 53 #include "wtf/RefPtr.h"
56 54
57 namespace WebCore { 55 namespace WebCore {
58 56
59 static void initializeScriptWrappableForInterface(TestInterface* object) 57 static void initializeScriptWrappableForInterface(TestInterface* object)
60 { 58 {
61 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 59 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
62 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterface::wrapperTy peInfo); 60 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterface::wrapperTy peInfo);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 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)
190 { 188 {
191 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 189 TestInterface* imp = V8TestInterface::toNative(info.Holder());
192 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);
193 TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue)); 191 TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue));
194 } 192 }
195 193
196 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)
197 { 195 {
198 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
199 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
200 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
201 TestInterfaceV8Internal::implementsNodeAttributeSetter(jsValue, info); 197 TestInterfaceV8Internal::implementsNodeAttributeSetter(jsValue, info);
202 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
203 } 199 }
204 200
205 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 201 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
206 { 202 {
207 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 203 TestInterface* imp = V8TestInterface::toNative(info.Holder());
208 EventListener* jsValue = TestImplements::eventHandlerAttribute(imp, isolated WorldForIsolate(info.GetIsolate())); 204 EventListener* jsValue = TestImplements::eventHandlerAttribute(imp, isolated WorldForIsolate(info.GetIsolate()));
209 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())));
210 } 206 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 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)
247 { 243 {
248 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 244 TestInterface* imp = V8TestInterface::toNative(info.Holder());
249 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);
250 TestImplements::setNode23(imp, WTF::getPtr(cppValue)); 246 TestImplements::setNode23(imp, WTF::getPtr(cppValue));
251 } 247 }
252 248
253 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)
254 { 250 {
255 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 251 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
256 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
257 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
258 TestInterfaceV8Internal::Node23AttributeSetter(jsValue, info); 252 TestInterfaceV8Internal::Node23AttributeSetter(jsValue, info);
259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 253 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
260 } 254 }
261 255
262 static void Node24AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 256 static void Node24AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
263 { 257 {
264 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 258 TestInterface* imp = V8TestInterface::toNative(info.Holder());
265 v8SetReturnValueFast(info, TestImplements::node24(imp), imp); 259 v8SetReturnValueFast(info, TestImplements::node24(imp), imp);
266 } 260 }
267 261
268 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)
269 { 263 {
270 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
271 TestInterfaceV8Internal::Node24AttributeGetter(info); 265 TestInterfaceV8Internal::Node24AttributeGetter(info);
272 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
273 } 267 }
274 268
275 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)
276 { 270 {
277 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 271 TestInterface* imp = V8TestInterface::toNative(info.Holder());
278 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);
279 TestImplements::setNode24(imp, WTF::getPtr(cppValue)); 273 TestImplements::setNode24(imp, WTF::getPtr(cppValue));
280 } 274 }
281 275
282 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)
283 { 277 {
284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
285 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
286 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
287 TestInterfaceV8Internal::Node24AttributeSetter(jsValue, info); 279 TestInterfaceV8Internal::Node24AttributeSetter(jsValue, info);
288 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
289 } 281 }
290 282
291 #if ENABLE(CONDITION_PARTIAL) 283 #if ENABLE(CONDITION_PARTIAL)
292 static void supplementalStaticReadOnlyAttrAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 284 static void supplementalStaticReadOnlyAttrAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
293 { 285 {
294 v8SetReturnValueInt(info, TestPartialInterface::supplementalStaticReadOnlyAt tr()); 286 v8SetReturnValueInt(info, TestPartialInterface::supplementalStaticReadOnlyAt tr());
295 } 287 }
296 #endif // ENABLE(CONDITION_PARTIAL) 288 #endif // ENABLE(CONDITION_PARTIAL)
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 404 TestInterface* imp = V8TestInterface::toNative(info.Holder());
413 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 405 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
414 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)); 406 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue));
415 } 407 }
416 #endif // ENABLE(CONDITION_PARTIAL) 408 #endif // ENABLE(CONDITION_PARTIAL)
417 409
418 #if ENABLE(CONDITION_PARTIAL) 410 #if ENABLE(CONDITION_PARTIAL)
419 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 411 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
420 { 412 {
421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
422 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
423 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
424 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); 414 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info);
425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
426 } 416 }
427 #endif // ENABLE(CONDITION_PARTIAL) 417 #endif // ENABLE(CONDITION_PARTIAL)
428 418
429 #if ENABLE(CONDITION_PARTIAL) 419 #if ENABLE(CONDITION_PARTIAL)
430 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 420 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
431 { 421 {
432 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 422 TestInterface* imp = V8TestInterface::toNative(info.Holder());
433 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp); 423 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp);
(...skipping 15 matching lines...) Expand all
449 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 439 TestInterface* imp = V8TestInterface::toNative(info.Holder());
450 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 440 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
451 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); 441 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue));
452 } 442 }
453 #endif // ENABLE(CONDITION_PARTIAL) 443 #endif // ENABLE(CONDITION_PARTIAL)
454 444
455 #if ENABLE(CONDITION_PARTIAL) 445 #if ENABLE(CONDITION_PARTIAL)
456 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 446 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
457 { 447 {
458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
459 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
460 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
461 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info); 449 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info);
462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
463 } 451 }
464 #endif // ENABLE(CONDITION_PARTIAL) 452 #endif // ENABLE(CONDITION_PARTIAL)
465 453
466 #if ENABLE(CONDITION_PARTIAL) 454 #if ENABLE(CONDITION_PARTIAL)
467 static void Node14AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 455 static void Node14AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
468 { 456 {
469 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 457 TestInterface* imp = V8TestInterface::toNative(info.Holder());
470 v8SetReturnValueFast(info, TestPartialInterface::node14(imp), imp); 458 v8SetReturnValueFast(info, TestPartialInterface::node14(imp), imp);
(...skipping 15 matching lines...) Expand all
486 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 474 TestInterface* imp = V8TestInterface::toNative(info.Holder());
487 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 475 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
488 TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); 476 TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue));
489 } 477 }
490 #endif // ENABLE(CONDITION_PARTIAL) 478 #endif // ENABLE(CONDITION_PARTIAL)
491 479
492 #if ENABLE(CONDITION_PARTIAL) 480 #if ENABLE(CONDITION_PARTIAL)
493 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 481 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
494 { 482 {
495 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
496 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
497 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
498 TestInterfaceV8Internal::Node14AttributeSetter(jsValue, info); 484 TestInterfaceV8Internal::Node14AttributeSetter(jsValue, info);
499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
500 } 486 }
501 #endif // ENABLE(CONDITION_PARTIAL) 487 #endif // ENABLE(CONDITION_PARTIAL)
502 488
503 #if ENABLE(CONDITION_PARTIAL) 489 #if ENABLE(CONDITION_PARTIAL)
504 static void Node15AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 490 static void Node15AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
505 { 491 {
506 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 492 TestInterface* imp = V8TestInterface::toNative(info.Holder());
507 v8SetReturnValueFast(info, TestPartialInterface::node15(imp), imp); 493 v8SetReturnValueFast(info, TestPartialInterface::node15(imp), imp);
(...skipping 15 matching lines...) Expand all
523 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 509 TestInterface* imp = V8TestInterface::toNative(info.Holder());
524 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 510 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
525 TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue)); 511 TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue));
526 } 512 }
527 #endif // ENABLE(CONDITION_PARTIAL) 513 #endif // ENABLE(CONDITION_PARTIAL)
528 514
529 #if ENABLE(CONDITION_PARTIAL) 515 #if ENABLE(CONDITION_PARTIAL)
530 static void Node15AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 516 static void Node15AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
531 { 517 {
532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 518 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
533 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
534 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
535 TestInterfaceV8Internal::Node15AttributeSetter(jsValue, info); 519 TestInterfaceV8Internal::Node15AttributeSetter(jsValue, info);
536 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 520 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
537 } 521 }
538 #endif // ENABLE(CONDITION_PARTIAL) 522 #endif // ENABLE(CONDITION_PARTIAL)
539 523
540 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 524 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
541 { 525 {
542 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 526 TestInterface* imp = V8TestInterface::toNative(info.Holder());
543 TestImplements::implementsMethod1(imp); 527 TestImplements::implementsMethod1(imp);
544 } 528 }
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 } 961 }
978 962
979 template<> 963 template<>
980 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 964 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
981 { 965 {
982 return toV8(impl, creationContext, isolate); 966 return toV8(impl, creationContext, isolate);
983 } 967 }
984 968
985 } // namespace WebCore 969 } // namespace WebCore
986 #endif // ENABLE(Condition1) || ENABLE(Condition2) 970 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEventTarget.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698