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

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

Issue 352133002: IDL: fix handling of non-decimal and unsigned default values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/V8HTMLCollection.h" 10 #include "bindings/core/v8/V8HTMLCollection.h"
(...skipping 6903 matching lines...) Expand 10 before | Expand all | Expand 10 after
6914 impl->voidMethodDefaultStringArg(defaultStringArg); 6914 impl->voidMethodDefaultStringArg(defaultStringArg);
6915 } 6915 }
6916 6916
6917 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6917 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6918 { 6918 {
6919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6920 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); 6920 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info);
6921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6922 } 6922 }
6923 6923
6924 static void voidMethodDefaultLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6924 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6925 { 6925 {
6926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate());
6927 TestObject* impl = V8TestObject::toNative(info.Holder()); 6927 TestObject* impl = V8TestObject::toNative(info.Holder());
6928 int defaultLongArg; 6928 int defaultLongArg;
6929 long long defaultLongLongArg;
6930 unsigned defaultUnsignedArg;
6929 { 6931 {
6930 v8::TryCatch block; 6932 v8::TryCatch block;
6931 V8RethrowTryCatchScope rethrow(block); 6933 V8RethrowTryCatchScope rethrow(block);
6932 if (info.Length() > 0) { 6934 if (info.Length() > 0) {
6933 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState); 6935 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState);
6934 } else { 6936 } else {
6935 defaultLongArg = 10; 6937 defaultLongArg = 10;
6936 } 6938 }
6939 if (info.Length() > 1) {
6940 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in fo[1], exceptionState), exceptionState);
6941 } else {
6942 defaultLongLongArg = -10;
6943 }
6944 if (info.Length() > 2) {
6945 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i nfo[2], exceptionState), exceptionState);
6946 } else {
6947 defaultUnsignedArg = 4294967295u;
6948 }
6937 } 6949 }
6938 impl->voidMethodDefaultLongArg(defaultLongArg); 6950 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg);
6939 } 6951 }
6940 6952
6941 static void voidMethodDefaultLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6953 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6942 { 6954 {
6943 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6944 TestObjectV8Internal::voidMethodDefaultLongArgMethod(info); 6956 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info);
6945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6946 } 6958 }
6947 6959
6948 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6960 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6949 { 6961 {
6950 TestObject* impl = V8TestObject::toNative(info.Holder()); 6962 TestObject* impl = V8TestObject::toNative(info.Holder());
6951 double defaultDoubleArg; 6963 double defaultDoubleArg;
6952 { 6964 {
6953 v8::TryCatch block; 6965 v8::TryCatch block;
6954 V8RethrowTryCatchScope rethrow(block); 6966 V8RethrowTryCatchScope rethrow(block);
(...skipping 2962 matching lines...) Expand 10 before | Expand all | Expand 10 after
9917 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0}, 9929 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0},
9918 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf aceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, 9930 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf aceEmptyMethodOptionalLongArgMethodCallback, 0, 0},
9919 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr gMethodCallback, 0, 0}, 9931 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr gMethodCallback, 0, 0},
9920 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg OptionalLongArgMethodCallback, 0, 1}, 9932 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg OptionalLongArgMethodCallback, 0, 1},
9921 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, 9933 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1},
9922 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, 9934 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1},
9923 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, 9935 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1},
9924 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional DictionaryArgMethodCallback, 0, 0}, 9936 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional DictionaryArgMethodCallback, 0, 0},
9925 {"voidMethodDefaultByteStringArg", TestObjectV8Internal::voidMethodDefaultBy teStringArgMethodCallback, 0, 0}, 9937 {"voidMethodDefaultByteStringArg", TestObjectV8Internal::voidMethodDefaultBy teStringArgMethodCallback, 0, 0},
9926 {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString ArgMethodCallback, 0, 0}, 9938 {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString ArgMethodCallback, 0, 0},
9927 {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM ethodCallback, 0, 0}, 9939 {"voidMethodDefaultIntegerArgs", TestObjectV8Internal::voidMethodDefaultInte gerArgsMethodCallback, 0, 0},
9928 {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble ArgMethodCallback, 0, 0}, 9940 {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble ArgMethodCallback, 0, 0},
9929 {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT rueBooleanArgMethodCallback, 0, 0}, 9941 {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT rueBooleanArgMethodCallback, 0, 0},
9930 {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault FalseBooleanArgMethodCallback, 0, 0}, 9942 {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault FalseBooleanArgMethodCallback, 0, 0},
9931 {"voidMethodDefaultNullableByteStringArg", TestObjectV8Internal::voidMethodD efaultNullableByteStringArgMethodCallback, 0, 0}, 9943 {"voidMethodDefaultNullableByteStringArg", TestObjectV8Internal::voidMethodD efaultNullableByteStringArgMethodCallback, 0, 0},
9932 {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau ltNullableStringArgMethodCallback, 0, 0}, 9944 {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau ltNullableStringArgMethodCallback, 0, 0},
9933 {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth odDefaultNullableTestInterfaceArgMethodCallback, 0, 0}, 9945 {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth odDefaultNullableTestInterfaceArgMethodCallback, 0, 0},
9934 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri ngArgMethodCallback, 0, 0}, 9946 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri ngArgMethodCallback, 0, 0},
9935 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr ingArgVariadicStringArgMethodCallback, 0, 1}, 9947 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr ingArgVariadicStringArgMethodCallback, 0, 1},
9936 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod VariadicTestInterfaceEmptyArgMethodCallback, 0, 0}, 9948 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod VariadicTestInterfaceEmptyArgMethodCallback, 0, 0},
9937 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV 8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal lback, 0, 1}, 9949 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV 8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal lback, 0, 1},
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
10216 fromInternalPointer(object)->deref(); 10228 fromInternalPointer(object)->deref();
10217 } 10229 }
10218 10230
10219 template<> 10231 template<>
10220 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 10232 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
10221 { 10233 {
10222 return toV8(impl, creationContext, isolate); 10234 return toV8(impl, creationContext, isolate);
10223 } 10235 }
10224 10236
10225 } // namespace WebCore 10237 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698