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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.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 #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"
39 #include "V8DOMStringList.h" 38 #include "V8DOMStringList.h"
40 #include "V8Document.h" 39 #include "V8Document.h"
41 #include "V8MessagePort.h" 40 #include "V8MessagePort.h"
42 #include "V8Node.h" 41 #include "V8Node.h"
43 #include "V8TestCallbackInterface.h" 42 #include "V8TestCallbackInterface.h"
44 #include "V8TestInterface.h" 43 #include "V8TestInterface.h"
45 #include "V8TestNode.h" 44 #include "V8TestNode.h"
46 #include "V8TestObjectectA.h" 45 #include "V8TestObjectectA.h"
47 #include "V8TestObjectectB.h" 46 #include "V8TestObjectectB.h"
48 #include "V8TestObjectectC.h" 47 #include "V8TestObjectectC.h"
(...skipping 5006 matching lines...) Expand 10 before | Expand all | Expand 10 after
5055 return; 5054 return;
5056 } 5055 }
5057 tail.append(V8Node::toNative(v8::Handle<v8::Object>::Cast(info[i]))); 5056 tail.append(V8Node::toNative(v8::Handle<v8::Object>::Cast(info[i])));
5058 } 5057 }
5059 imp->variadicNodeMethod(head, tail); 5058 imp->variadicNodeMethod(head, tail);
5060 } 5059 }
5061 5060
5062 static void variadicNodeMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5061 static void variadicNodeMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5063 { 5062 {
5064 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5063 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);
5069 TestObjV8Internal::variadicNodeMethodMethod(info); 5064 TestObjV8Internal::variadicNodeMethodMethod(info);
5070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5071 } 5066 }
5072 5067
5073 static void methodWithNullableArgumentsMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5068 static void methodWithNullableArgumentsMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5074 { 5069 {
5075 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithN ullableArguments", "TestObject", info.Holder(), info.GetIsolate()); 5070 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithN ullableArguments", "TestObject", info.Holder(), info.GetIsolate());
5076 if (UNLIKELY(info.Length() < 3)) { 5071 if (UNLIKELY(info.Length() < 3)) {
5077 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i nfo.Length())); 5072 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i nfo.Length()));
5078 exceptionState.throwIfNeeded(); 5073 exceptionState.throwIfNeeded();
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
5915 fromInternalPointer(object)->deref(); 5910 fromInternalPointer(object)->deref();
5916 } 5911 }
5917 5912
5918 template<> 5913 template<>
5919 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 5914 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
5920 { 5915 {
5921 return toV8(impl, creationContext, isolate); 5916 return toV8(impl, creationContext, isolate);
5922 } 5917 }
5923 5918
5924 } // namespace WebCore 5919 } // 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