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

Side by Side Diff: Source/bindings/tests/results/V8SupportTestInterface.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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 #include "V8SupportTestInterface.h" 34 #include "V8SupportTestInterface.h"
35 35
36 #include "RuntimeEnabledFeatures.h" 36 #include "RuntimeEnabledFeatures.h"
37 #include "V8Attr.h"
38 #include "V8Node.h" 37 #include "V8Node.h"
39 #include "V8TestObject.h" 38 #include "V8TestObject.h"
40 #include "bindings/tests/idls/testing/SupportTestPartialInterface.h" 39 #include "bindings/tests/idls/testing/SupportTestPartialInterface.h"
41 #include "bindings/v8/ExceptionState.h" 40 #include "bindings/v8/ExceptionState.h"
42 #include "bindings/v8/V8DOMConfiguration.h" 41 #include "bindings/v8/V8DOMConfiguration.h"
43 #include "bindings/v8/V8ObjectConstructor.h" 42 #include "bindings/v8/V8ObjectConstructor.h"
44 #include "core/dom/ContextFeatures.h" 43 #include "core/dom/ContextFeatures.h"
45 #include "core/dom/Document.h" 44 #include "core/dom/Document.h"
46 #include "core/frame/UseCounter.h"
47 #include "platform/TraceEvent.h" 45 #include "platform/TraceEvent.h"
48 #include "wtf/GetPtr.h" 46 #include "wtf/GetPtr.h"
49 #include "wtf/RefPtr.h" 47 #include "wtf/RefPtr.h"
50 48
51 namespace WebCore { 49 namespace WebCore {
52 50
53 static void initializeScriptWrappableForInterface(SupportTestInterface* object) 51 static void initializeScriptWrappableForInterface(SupportTestInterface* object)
54 { 52 {
55 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 53 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
56 ScriptWrappable::setTypeInfoInObject(object, &V8SupportTestInterface::wr apperTypeInfo); 54 ScriptWrappable::setTypeInfoInObject(object, &V8SupportTestInterface::wr apperTypeInfo);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); 216 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
219 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 217 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
220 SupportTestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)) ; 218 SupportTestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)) ;
221 } 219 }
222 #endif // ENABLE(Condition11) || ENABLE(Condition12) 220 #endif // ENABLE(Condition11) || ENABLE(Condition12)
223 221
224 #if ENABLE(Condition11) || ENABLE(Condition12) 222 #if ENABLE(Condition11) || ENABLE(Condition12)
225 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 223 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
226 { 224 {
227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
228 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
229 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
230 SupportTestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, inf o); 226 SupportTestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, inf o);
231 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
232 } 228 }
233 #endif // ENABLE(Condition11) || ENABLE(Condition12) 229 #endif // ENABLE(Condition11) || ENABLE(Condition12)
234 230
235 #if ENABLE(Condition11) || ENABLE(Condition12) 231 #if ENABLE(Condition11) || ENABLE(Condition12)
236 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 232 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
237 { 233 {
238 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); 234 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
239 v8SetReturnValueFast(info, SupportTestPartialInterface::node13(imp), imp); 235 v8SetReturnValueFast(info, SupportTestPartialInterface::node13(imp), imp);
(...skipping 15 matching lines...) Expand all
255 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); 251 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
256 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 252 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
257 SupportTestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); 253 SupportTestPartialInterface::setNode13(imp, WTF::getPtr(cppValue));
258 } 254 }
259 #endif // ENABLE(Condition11) || ENABLE(Condition12) 255 #endif // ENABLE(Condition11) || ENABLE(Condition12)
260 256
261 #if ENABLE(Condition11) || ENABLE(Condition12) 257 #if ENABLE(Condition11) || ENABLE(Condition12)
262 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 258 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
263 { 259 {
264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
265 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
266 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
267 SupportTestInterfaceV8Internal::Node13AttributeSetter(jsValue, info); 261 SupportTestInterfaceV8Internal::Node13AttributeSetter(jsValue, info);
268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
269 } 263 }
270 #endif // ENABLE(Condition11) || ENABLE(Condition12) 264 #endif // ENABLE(Condition11) || ENABLE(Condition12)
271 265
272 #if ENABLE(Condition11) || ENABLE(Condition12) 266 #if ENABLE(Condition11) || ENABLE(Condition12)
273 static void Node14AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 267 static void Node14AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
274 { 268 {
275 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); 269 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
276 v8SetReturnValueFast(info, SupportTestPartialInterface::node14(imp), imp); 270 v8SetReturnValueFast(info, SupportTestPartialInterface::node14(imp), imp);
(...skipping 15 matching lines...) Expand all
292 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); 286 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
293 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 287 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0);
294 SupportTestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); 288 SupportTestPartialInterface::setNode14(imp, WTF::getPtr(cppValue));
295 } 289 }
296 #endif // ENABLE(Condition11) || ENABLE(Condition12) 290 #endif // ENABLE(Condition11) || ENABLE(Condition12)
297 291
298 #if ENABLE(Condition11) || ENABLE(Condition12) 292 #if ENABLE(Condition11) || ENABLE(Condition12)
299 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 293 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
300 { 294 {
301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
302 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
303 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
304 SupportTestInterfaceV8Internal::Node14AttributeSetter(jsValue, info); 296 SupportTestInterfaceV8Internal::Node14AttributeSetter(jsValue, info);
305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
306 } 298 }
307 #endif // ENABLE(Condition11) || ENABLE(Condition12) 299 #endif // ENABLE(Condition11) || ENABLE(Condition12)
308 300
309 #if ENABLE(Condition11) || ENABLE(Condition12) 301 #if ENABLE(Condition11) || ENABLE(Condition12)
310 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 302 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
311 { 303 {
312 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); 304 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
313 SupportTestPartialInterface::supplementalMethod1(imp); 305 SupportTestPartialInterface::supplementalMethod1(imp);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 fromInternalPointer(object)->deref(); 505 fromInternalPointer(object)->deref();
514 } 506 }
515 507
516 template<> 508 template<>
517 v8::Handle<v8::Value> toV8NoInline(SupportTestInterface* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 509 v8::Handle<v8::Value> toV8NoInline(SupportTestInterface* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
518 { 510 {
519 return toV8(impl, creationContext, isolate); 511 return toV8(impl, creationContext, isolate);
520 } 512 }
521 513
522 } // namespace WebCore 514 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestEventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698