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 "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 128 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
129 { | 129 { |
130 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 130 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
131 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); | 131 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); |
132 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 132 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
133 } | 133 } |
134 | 134 |
135 static void voidMethodTestCallbackInterfaceTypeArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 135 static void voidMethodTestCallbackInterfaceTypeArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
136 { | 136 { |
137 if (UNLIKELY(info.Length() < 1)) { | 137 if (UNLIKELY(info.Length() < 1)) { |
138 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", 1, info.Length(), info.G
etIsolate()), info.GetIsolate()); | 138 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", 1, in
fo.Length()), info.GetIsolate()); |
139 return; | 139 return; |
140 } | 140 } |
141 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); | 141 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); |
142 TestCallbackInterface* testCallbackInterfaceTypeArg; | 142 TestCallbackInterface* testCallbackInterfaceTypeArg; |
143 { | 143 { |
144 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 144 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
145 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", "The callback provided
as parameter 1 is not a function."), info.GetIsolate()); | 145 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", "The callback provided
as parameter 1 is not a function."), info.GetIsolate()); |
146 return; | 146 return; |
147 } | 147 } |
148 testCallbackInterfaceTypeArg = V8TestCallbackInterface::create(v8::Handl
e<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); | 148 testCallbackInterfaceTypeArg = V8TestCallbackInterface::create(v8::Handl
e<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 252 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
253 { | 253 { |
254 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 254 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
255 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); | 255 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); |
256 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 256 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
257 } | 257 } |
258 | 258 |
259 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 259 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
260 { | 260 { |
261 if (UNLIKELY(info.Length() < 1)) { | 261 if (UNLIKELY(info.Length() < 1)) { |
262 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestTypedefs", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); | 262 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestTypedefs", 1, info.Length()), info.GetIsolate()); |
263 return; | 263 return; |
264 } | 264 } |
265 V8StringResource<> stringArg; | 265 V8StringResource<> stringArg; |
266 { | 266 { |
267 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 267 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
268 } | 268 } |
269 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); | 269 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); |
270 v8::Handle<v8::Object> wrapper = info.Holder(); | 270 v8::Handle<v8::Object> wrapper = info.Holder(); |
271 impl->associateWithWrapper(&V8TestTypedefs::wrapperTypeInfo, wrapper, info.G
etIsolate()); | 271 impl->associateWithWrapper(&V8TestTypedefs::wrapperTypeInfo, wrapper, info.G
etIsolate()); |
272 v8SetReturnValue(info, wrapper); | 272 v8SetReturnValue(info, wrapper); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 scriptWrappableBase->toImpl<TestTypedefs>()->deref(); | 357 scriptWrappableBase->toImpl<TestTypedefs>()->deref(); |
358 } | 358 } |
359 | 359 |
360 template<> | 360 template<> |
361 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 361 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
362 { | 362 { |
363 return toV8(impl, creationContext, isolate); | 363 return toV8(impl, creationContext, isolate); |
364 } | 364 } |
365 | 365 |
366 } // namespace blink | 366 } // namespace blink |
OLD | NEW |