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" |
11 #include "bindings/core/v8/Dictionary.h" | 11 #include "bindings/core/v8/Dictionary.h" |
12 #include "bindings/core/v8/ExceptionState.h" | 12 #include "bindings/core/v8/ExceptionState.h" |
13 #include "bindings/core/v8/PrivateScriptRunner.h" | 13 #include "bindings/core/v8/PrivateScriptRunner.h" |
14 #include "bindings/core/v8/ScriptCallStackFactory.h" | 14 #include "bindings/core/v8/ScriptCallStackFactory.h" |
15 #include "bindings/core/v8/ScriptPromise.h" | 15 #include "bindings/core/v8/ScriptPromise.h" |
16 #include "bindings/core/v8/ScriptState.h" | 16 #include "bindings/core/v8/ScriptState.h" |
17 #include "bindings/core/v8/ScriptValue.h" | 17 #include "bindings/core/v8/ScriptValue.h" |
18 #include "bindings/core/v8/SerializedScriptValue.h" | 18 #include "bindings/core/v8/SerializedScriptValue.h" |
| 19 #include "bindings/core/v8/SerializedScriptValueFactory.h" |
19 #include "bindings/core/v8/UnionTypesCore.h" | 20 #include "bindings/core/v8/UnionTypesCore.h" |
20 #include "bindings/core/v8/V8AbstractEventListener.h" | 21 #include "bindings/core/v8/V8AbstractEventListener.h" |
21 #include "bindings/core/v8/V8ArrayBuffer.h" | 22 #include "bindings/core/v8/V8ArrayBuffer.h" |
22 #include "bindings/core/v8/V8ArrayBufferView.h" | 23 #include "bindings/core/v8/V8ArrayBufferView.h" |
23 #include "bindings/core/v8/V8Attr.h" | 24 #include "bindings/core/v8/V8Attr.h" |
24 #include "bindings/core/v8/V8DOMActivityLogger.h" | 25 #include "bindings/core/v8/V8DOMActivityLogger.h" |
25 #include "bindings/core/v8/V8DOMConfiguration.h" | 26 #include "bindings/core/v8/V8DOMConfiguration.h" |
26 #include "bindings/core/v8/V8Document.h" | 27 #include "bindings/core/v8/V8Document.h" |
27 #include "bindings/core/v8/V8DocumentFragment.h" | 28 #include "bindings/core/v8/V8DocumentFragment.h" |
28 #include "bindings/core/v8/V8DocumentType.h" | 29 #include "bindings/core/v8/V8DocumentType.h" |
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
988 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); | 989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); |
989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
990 } | 991 } |
991 | 992 |
992 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 993 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
993 { | 994 { |
994 v8::Handle<v8::Object> holder = info.Holder(); | 995 v8::Handle<v8::Object> holder = info.Holder(); |
995 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); | 996 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); |
996 TestObject* impl = V8TestObject::toImpl(holder); | 997 TestObject* impl = V8TestObject::toImpl(holder); |
997 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial
izedScriptValue::create(v8Value, 0, 0, exceptionState, info.GetIsolate()), excep
tionState); | 998 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial
izedScriptValueFactory::factory().create(v8Value, 0, 0, exceptionState, info.Get
Isolate()), exceptionState); |
998 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 999 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
999 } | 1000 } |
1000 | 1001 |
1001 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 1002 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
1002 { | 1003 { |
1003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1004 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1004 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); | 1005 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); |
1005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1006 } | 1007 } |
1007 | 1008 |
(...skipping 5934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6942 { | 6943 { |
6943 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 6944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); |
6944 if (UNLIKELY(info.Length() < 1)) { | 6945 if (UNLIKELY(info.Length() < 1)) { |
6945 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6946 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6946 exceptionState.throwIfNeeded(); | 6947 exceptionState.throwIfNeeded(); |
6947 return; | 6948 return; |
6948 } | 6949 } |
6949 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6950 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6950 RefPtr<SerializedScriptValue> serializedScriptValueArg; | 6951 RefPtr<SerializedScriptValue> serializedScriptValueArg; |
6951 { | 6952 { |
6952 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ
edScriptValue::create(info[0], 0, 0, exceptionState, info.GetIsolate()), excepti
onState); | 6953 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ
edScriptValueFactory::factory().create(info[0], 0, 0, exceptionState, info.GetIs
olate()), exceptionState); |
6953 } | 6954 } |
6954 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 6955 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
6955 } | 6956 } |
6956 | 6957 |
6957 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 6958 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
6958 { | 6959 { |
6959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6960 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 6961 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
6961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6962 } | 6963 } |
(...skipping 4578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11541 return false; | 11542 return false; |
11542 | 11543 |
11543 ScriptState::Scope scope(scriptState); | 11544 ScriptState::Scope scope(scriptState); |
11544 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11545 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11545 | 11546 |
11546 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11547 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11547 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11548 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11548 } | 11549 } |
11549 | 11550 |
11550 } // namespace blink | 11551 } // namespace blink |
OLD | NEW |