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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 { | 958 { |
959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
960 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); | 960 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); |
961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
962 } | 962 } |
963 | 963 |
964 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 964 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
965 { | 965 { |
966 v8::Handle<v8::Object> holder = info.Holder(); | 966 v8::Handle<v8::Object> holder = info.Holder(); |
967 TestObject* impl = V8TestObject::toImpl(holder); | 967 TestObject* impl = V8TestObject::toImpl(holder); |
968 TONATIVE_VOID(RefPtrWillBeRawPtr<NodeFilter>, cppValue, toNodeFilter(v8Value
, info.Holder(), ScriptState::current(info.GetIsolate()))); | 968 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder(
), ScriptState::current(info.GetIsolate())); |
969 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); | 969 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); |
970 } | 970 } |
971 | 971 |
972 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 972 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
973 { | 973 { |
974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
975 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); | 975 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); |
976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
977 } | 977 } |
978 | 978 |
(...skipping 4741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5720 | 5720 |
5721 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5721 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5722 { | 5722 { |
5723 if (UNLIKELY(info.Length() < 1)) { | 5723 if (UNLIKELY(info.Length() < 1)) { |
5724 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); | 5724 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); |
5725 return; | 5725 return; |
5726 } | 5726 } |
5727 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5727 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5728 ScriptValue anyArg; | 5728 ScriptValue anyArg; |
5729 { | 5729 { |
5730 v8::TryCatch block; | |
5731 V8RethrowTryCatchScope rethrow(block); | |
5732 anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); | 5730 anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); |
5733 } | 5731 } |
5734 impl->voidMethodAnyArg(anyArg); | 5732 impl->voidMethodAnyArg(anyArg); |
5735 } | 5733 } |
5736 | 5734 |
5737 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5735 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5738 { | 5736 { |
5739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5740 TestObjectV8Internal::voidMethodAnyArgMethod(info); | 5738 TestObjectV8Internal::voidMethodAnyArgMethod(info); |
5741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6686 | 6684 |
6687 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6685 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6688 { | 6686 { |
6689 if (UNLIKELY(info.Length() < 1)) { | 6687 if (UNLIKELY(info.Length() < 1)) { |
6690 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf
o.GetIsolate()); | 6688 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf
o.GetIsolate()); |
6691 return; | 6689 return; |
6692 } | 6690 } |
6693 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6691 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6694 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; | 6692 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; |
6695 { | 6693 { |
6696 v8::TryCatch block; | 6694 nodeFilterArg = toNodeFilter(info[0], info.Holder(), ScriptState::curren
t(info.GetIsolate())); |
6697 V8RethrowTryCatchScope rethrow(block); | |
6698 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder(
), ScriptState::current(info.GetIsolate()))); | |
6699 } | 6695 } |
6700 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); | 6696 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); |
6701 } | 6697 } |
6702 | 6698 |
6703 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6699 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6704 { | 6700 { |
6705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6706 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); | 6702 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); |
6707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6708 } | 6704 } |
(...skipping 4339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11048 return false; | 11044 return false; |
11049 | 11045 |
11050 ScriptState::Scope scope(scriptState); | 11046 ScriptState::Scope scope(scriptState); |
11051 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11047 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11052 | 11048 |
11053 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11049 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11054 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11050 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11055 } | 11051 } |
11056 | 11052 |
11057 } // namespace blink | 11053 } // namespace blink |
OLD | NEW |