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

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

Issue 127723002: Add use counters for using Attrs as Nodes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring patch to head. 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 #include "V8TestObject.h" 34 #include "V8TestObject.h"
35 35
36 #include "HTMLNames.h" 36 #include "HTMLNames.h"
37 #include "RuntimeEnabledFeatures.h" 37 #include "RuntimeEnabledFeatures.h"
38 #include "V8Attr.h"
38 #include "V8DOMStringList.h" 39 #include "V8DOMStringList.h"
39 #include "V8Document.h" 40 #include "V8Document.h"
40 #include "V8MessagePort.h" 41 #include "V8MessagePort.h"
41 #include "V8Node.h" 42 #include "V8Node.h"
42 #include "V8TestCallbackInterface.h" 43 #include "V8TestCallbackInterface.h"
43 #include "V8TestInterface.h" 44 #include "V8TestInterface.h"
44 #include "V8TestNode.h" 45 #include "V8TestNode.h"
45 #include "V8TestObjectectA.h" 46 #include "V8TestObjectectA.h"
46 #include "V8TestObjectectB.h" 47 #include "V8TestObjectectB.h"
47 #include "V8TestObjectectC.h" 48 #include "V8TestObjectectC.h"
(...skipping 5006 matching lines...) Expand 10 before | Expand all | Expand 10 after
5054 return; 5055 return;
5055 } 5056 }
5056 tail.append(V8Node::toNative(v8::Handle<v8::Object>::Cast(info[i]))); 5057 tail.append(V8Node::toNative(v8::Handle<v8::Object>::Cast(info[i])));
5057 } 5058 }
5058 imp->variadicNodeMethod(head, tail); 5059 imp->variadicNodeMethod(head, tail);
5059 } 5060 }
5060 5061
5061 static void variadicNodeMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5062 static void variadicNodeMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5062 { 5063 {
5063 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5064 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5065 if (V8DOMWrapper::isWrapperOfType(info[0], &V8Attr::wrapperTypeInfo))
5066 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
5067 if (V8DOMWrapper::isWrapperOfType(info[1], &V8Attr::wrapperTypeInfo))
5068 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
5064 TestObjV8Internal::variadicNodeMethodMethod(info); 5069 TestObjV8Internal::variadicNodeMethodMethod(info);
5065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5066 } 5071 }
5067 5072
5068 static void methodWithNullableArgumentsMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5073 static void methodWithNullableArgumentsMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5069 { 5074 {
5070 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithN ullableArguments", "TestObject", info.Holder(), info.GetIsolate()); 5075 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithN ullableArguments", "TestObject", info.Holder(), info.GetIsolate());
5071 if (UNLIKELY(info.Length() < 3)) { 5076 if (UNLIKELY(info.Length() < 3)) {
5072 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i nfo.Length())); 5077 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i nfo.Length()));
5073 exceptionState.throwIfNeeded(); 5078 exceptionState.throwIfNeeded();
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
5910 fromInternalPointer(object)->deref(); 5915 fromInternalPointer(object)->deref();
5911 } 5916 }
5912 5917
5913 template<> 5918 template<>
5914 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 5919 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
5915 { 5920 {
5916 return toV8(impl, creationContext, isolate); 5921 return toV8(impl, creationContext, isolate);
5917 } 5922 }
5918 5923
5919 } // namespace WebCore 5924 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698