| 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 "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 60 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 61 TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); | 61 TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); |
| 62 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 62 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 63 } | 63 } |
| 64 | 64 |
| 65 static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 65 static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 66 { | 66 { |
| 67 v8::Handle<v8::Object> holder = info.Holder(); | 67 v8::Handle<v8::Object> holder = info.Holder(); |
| 68 ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttri
bute", "TestTypedefs", holder, info.GetIsolate()); | 68 ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttri
bute", "TestTypedefs", holder, info.GetIsolate()); |
| 69 TestTypedefs* impl = V8TestTypedefs::toNative(holder); | 69 TestTypedefs* impl = V8TestTypedefs::toNative(holder); |
| 70 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); | 70 V8TRYCATCH_VOID_EXCEPTION(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); |
| 71 impl->setULongLongAttribute(cppValue); | 71 impl->setULongLongAttribute(cppValue); |
| 72 } | 72 } |
| 73 | 73 |
| 74 static void uLongLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 74 static void uLongLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 75 { | 75 { |
| 76 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 77 TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); | 77 TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); |
| 78 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 78 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 79 } | 79 } |
| 80 | 80 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 117 } |
| 118 | 118 |
| 119 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 119 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 120 { | 120 { |
| 121 if (UNLIKELY(info.Length() < 2)) { | 121 if (UNLIKELY(info.Length() < 2)) { |
| 122 throwArityTypeErrorForMethod("voidMethodFloatArgStringArg", "TestTypedef
s", 2, info.Length(), info.GetIsolate()); | 122 throwArityTypeErrorForMethod("voidMethodFloatArgStringArg", "TestTypedef
s", 2, info.Length(), info.GetIsolate()); |
| 123 return; | 123 return; |
| 124 } | 124 } |
| 125 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 125 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
| 126 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; | 126 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; |
| 127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[1])
; | 127 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[1]); |
| 128 impl->voidMethodFloatArgStringArg(floatArg, stringArg); | 128 impl->voidMethodFloatArgStringArg(floatArg, stringArg); |
| 129 } | 129 } |
| 130 | 130 |
| 131 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 131 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 132 { | 132 { |
| 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 134 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); | 134 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); |
| 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 136 } | 136 } |
| 137 | 137 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 238 } | 238 } |
| 239 | 239 |
| 240 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 240 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 241 { | 241 { |
| 242 v8::Isolate* isolate = info.GetIsolate(); | 242 v8::Isolate* isolate = info.GetIsolate(); |
| 243 if (UNLIKELY(info.Length() < 1)) { | 243 if (UNLIKELY(info.Length() < 1)) { |
| 244 throwArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(), info
.GetIsolate()); | 244 throwArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(), info
.GetIsolate()); |
| 245 return; | 245 return; |
| 246 } | 246 } |
| 247 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 247 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[0]); |
| 248 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); | 248 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); |
| 249 | 249 |
| 250 v8::Handle<v8::Object> wrapper = info.Holder(); | 250 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 251 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independe
nt); | 251 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independe
nt); |
| 252 v8SetReturnValue(info, wrapper); | 252 v8SetReturnValue(info, wrapper); |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace TestTypedefsV8Internal | 255 } // namespace TestTypedefsV8Internal |
| 256 | 256 |
| 257 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { | 257 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 fromInternalPointer(object)->deref(); | 358 fromInternalPointer(object)->deref(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 template<> | 361 template<> |
| 362 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 362 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
| 363 { | 363 { |
| 364 return toV8(impl, creationContext, isolate); | 364 return toV8(impl, creationContext, isolate); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace WebCore | 367 } // namespace WebCore |
| OLD | NEW |