| OLD | NEW | 
|     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 "HTMLNames.h" |    10 #include "HTMLNames.h" | 
| (...skipping 6851 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  6862     impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); |  6862     impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); | 
|  6863 } |  6863 } | 
|  6864  |  6864  | 
|  6865 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
      nctionCallbackInfo<v8::Value>& info) |  6865 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
      nctionCallbackInfo<v8::Value>& info) | 
|  6866 { |  6866 { | 
|  6867     TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |  6867     TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 
|  6868     TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); |  6868     TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); | 
|  6869     TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |  6869     TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 
|  6870 } |  6870 } | 
|  6871  |  6871  | 
 |  6872 static void voidMethodOptionalArgWithoutDefaultMethod(const v8::FunctionCallback
      Info<v8::Value>& info) | 
 |  6873 { | 
 |  6874     TestObject* impl = V8TestObject::toNative(info.Holder()); | 
 |  6875     V8StringResource<> optionalStringArg; | 
 |  6876     bool optionalStringArgMissing = false; | 
 |  6877     bool defaultBooleanArg; | 
 |  6878     { | 
 |  6879         v8::TryCatch block; | 
 |  6880         V8RethrowTryCatchScope rethrow(block); | 
 |  6881         if (info.Length() > 0) { | 
 |  6882             TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]); | 
 |  6883         } else { | 
 |  6884             optionalStringArgMissing = true; | 
 |  6885         } | 
 |  6886         if (info.Length() > 1) { | 
 |  6887             TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[1]->BooleanValue()); | 
 |  6888         } else { | 
 |  6889             defaultBooleanArg = false; | 
 |  6890         } | 
 |  6891     } | 
 |  6892     impl->voidMethodOptionalArgWithoutDefault(makeOptional(optionalStringArg, op
      tionalStringArgMissing), defaultBooleanArg); | 
 |  6893 } | 
 |  6894  | 
 |  6895 static void voidMethodOptionalArgWithoutDefaultMethodCallback(const v8::Function
      CallbackInfo<v8::Value>& info) | 
 |  6896 { | 
 |  6897     TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 
 |  6898     TestObjectV8Internal::voidMethodOptionalArgWithoutDefaultMethod(info); | 
 |  6899     TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 
 |  6900 } | 
 |  6901  | 
|  6872 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
      :Value>& info) |  6902 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
      :Value>& info) | 
|  6873 { |  6903 { | 
|  6874     TestObject* impl = V8TestObject::toNative(info.Holder()); |  6904     TestObject* impl = V8TestObject::toNative(info.Holder()); | 
|  6875     Vector<String> variadicStringArgs; |  6905     Vector<String> variadicStringArgs; | 
|  6876     { |  6906     { | 
|  6877         v8::TryCatch block; |  6907         v8::TryCatch block; | 
|  6878         V8RethrowTryCatchScope rethrow(block); |  6908         V8RethrowTryCatchScope rethrow(block); | 
|  6879         TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf
      o, 0)); |  6909         TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf
      o, 0)); | 
|  6880     } |  6910     } | 
|  6881     impl->voidMethodVariadicStringArg(variadicStringArgs); |  6911     impl->voidMethodVariadicStringArg(variadicStringArgs); | 
| (...skipping 2754 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  9636     {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional
      DictionaryArgMethodCallback, 0, 0}, |  9666     {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional
      DictionaryArgMethodCallback, 0, 0}, | 
|  9637     {"voidMethodDefaultByteStringArg", TestObjectV8Internal::voidMethodDefaultBy
      teStringArgMethodCallback, 0, 0}, |  9667     {"voidMethodDefaultByteStringArg", TestObjectV8Internal::voidMethodDefaultBy
      teStringArgMethodCallback, 0, 0}, | 
|  9638     {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString
      ArgMethodCallback, 0, 0}, |  9668     {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString
      ArgMethodCallback, 0, 0}, | 
|  9639     {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM
      ethodCallback, 0, 0}, |  9669     {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM
      ethodCallback, 0, 0}, | 
|  9640     {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble
      ArgMethodCallback, 0, 0}, |  9670     {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble
      ArgMethodCallback, 0, 0}, | 
|  9641     {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT
      rueBooleanArgMethodCallback, 0, 0}, |  9671     {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT
      rueBooleanArgMethodCallback, 0, 0}, | 
|  9642     {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault
      FalseBooleanArgMethodCallback, 0, 0}, |  9672     {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault
      FalseBooleanArgMethodCallback, 0, 0}, | 
|  9643     {"voidMethodDefaultNullableByteStringArg", TestObjectV8Internal::voidMethodD
      efaultNullableByteStringArgMethodCallback, 0, 0}, |  9673     {"voidMethodDefaultNullableByteStringArg", TestObjectV8Internal::voidMethodD
      efaultNullableByteStringArgMethodCallback, 0, 0}, | 
|  9644     {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau
      ltNullableStringArgMethodCallback, 0, 0}, |  9674     {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau
      ltNullableStringArgMethodCallback, 0, 0}, | 
|  9645     {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth
      odDefaultNullableTestInterfaceArgMethodCallback, 0, 0}, |  9675     {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth
      odDefaultNullableTestInterfaceArgMethodCallback, 0, 0}, | 
 |  9676     {"voidMethodOptionalArgWithoutDefault", TestObjectV8Internal::voidMethodOpti
      onalArgWithoutDefaultMethodCallback, 0, 0}, | 
|  9646     {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri
      ngArgMethodCallback, 0, 0}, |  9677     {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri
      ngArgMethodCallback, 0, 0}, | 
|  9647     {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr
      ingArgVariadicStringArgMethodCallback, 0, 1}, |  9678     {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr
      ingArgVariadicStringArgMethodCallback, 0, 1}, | 
|  9648     {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
      VariadicTestInterfaceEmptyArgMethodCallback, 0, 0}, |  9679     {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
      VariadicTestInterfaceEmptyArgMethodCallback, 0, 0}, | 
|  9649     {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV
      8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal
      lback, 0, 1}, |  9680     {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV
      8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal
      lback, 0, 1}, | 
|  9650     {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal:
      :voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 0}, |  9681     {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal:
      :voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 0}, | 
|  9651     {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int
      ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0
      , 0}, |  9682     {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int
      ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0
      , 0}, | 
|  9652     {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback,
       0, 1}, |  9683     {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback,
       0, 1}, | 
|  9653     {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback,
       0, 1}, |  9684     {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback,
       0, 1}, | 
|  9654     {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback,
       0, 1}, |  9685     {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback,
       0, 1}, | 
|  9655     {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback,
       0, 1}, |  9686     {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback,
       0, 1}, | 
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  9894     fromInternalPointer(object)->deref(); |  9925     fromInternalPointer(object)->deref(); | 
|  9895 } |  9926 } | 
|  9896  |  9927  | 
|  9897 template<> |  9928 template<> | 
|  9898 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
      tionContext, v8::Isolate* isolate) |  9929 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
      tionContext, v8::Isolate* isolate) | 
|  9899 { |  9930 { | 
|  9900     return toV8(impl, creationContext, isolate); |  9931     return toV8(impl, creationContext, isolate); | 
|  9901 } |  9932 } | 
|  9902  |  9933  | 
|  9903 } // namespace WebCore |  9934 } // namespace WebCore | 
| OLD | NEW |