| 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 "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 5632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5643 | 5643 |
| 5644 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5644 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5645 { | 5645 { |
| 5646 if (UNLIKELY(info.Length() < 1)) { | 5646 if (UNLIKELY(info.Length() < 1)) { |
| 5647 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsola
te()), info.GetIsolate()); | 5647 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsola
te()), info.GetIsolate()); |
| 5648 return; | 5648 return; |
| 5649 } | 5649 } |
| 5650 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5650 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5651 ScriptValue voidCallbackFunctionArg; | 5651 ScriptValue voidCallbackFunctionArg; |
| 5652 { | 5652 { |
| 5653 v8::TryCatch block; | |
| 5654 V8RethrowTryCatchScope rethrow(block); | |
| 5655 voidCallbackFunctionArg = ScriptValue(ScriptState::current(info.GetIsola
te()), info[0]); | 5653 voidCallbackFunctionArg = ScriptValue(ScriptState::current(info.GetIsola
te()), info[0]); |
| 5656 } | 5654 } |
| 5657 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); | 5655 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); |
| 5658 } | 5656 } |
| 5659 | 5657 |
| 5660 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 5658 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 5661 { | 5659 { |
| 5662 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5663 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); | 5661 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); |
| 5664 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5665 } | 5663 } |
| 5666 | 5664 |
| 5667 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 5665 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
| 5668 { | 5666 { |
| 5669 if (UNLIKELY(info.Length() < 1)) { | 5667 if (UNLIKELY(info.Length() < 1)) { |
| 5670 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", 1, info.Length(), inf
o.GetIsolate()), info.GetIsolate()); | 5668 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", 1, info.Length(), inf
o.GetIsolate()), info.GetIsolate()); |
| 5671 return; | 5669 return; |
| 5672 } | 5670 } |
| 5673 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5671 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5674 ScriptValue anyCallbackFunctionOptionalAnyArgArg; | 5672 ScriptValue anyCallbackFunctionOptionalAnyArgArg; |
| 5675 { | 5673 { |
| 5676 v8::TryCatch block; | |
| 5677 V8RethrowTryCatchScope rethrow(block); | |
| 5678 anyCallbackFunctionOptionalAnyArgArg = ScriptValue(ScriptState::current(
info.GetIsolate()), info[0]); | 5674 anyCallbackFunctionOptionalAnyArgArg = ScriptValue(ScriptState::current(
info.GetIsolate()), info[0]); |
| 5679 } | 5675 } |
| 5680 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); | 5676 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); |
| 5681 } | 5677 } |
| 5682 | 5678 |
| 5683 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 5679 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 5684 { | 5680 { |
| 5685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5686 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); | 5682 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); |
| 5687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 5367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11055 return false; | 11051 return false; |
| 11056 | 11052 |
| 11057 ScriptState::Scope scope(scriptState); | 11053 ScriptState::Scope scope(scriptState); |
| 11058 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11054 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
| 11059 | 11055 |
| 11060 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11056 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 11061 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11057 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 11062 } | 11058 } |
| 11063 | 11059 |
| 11064 } // namespace blink | 11060 } // namespace blink |
| OLD | NEW |