Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 718383003: bindings: fixed incorrect dependency of SerializedScriptValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added fast/js/structured-clone.html Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::instance().create(v8Value, 0, 0, exceptionState, info.Ge tIsolate()), 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 5948 matching lines...) Expand 10 before | Expand all | Expand 10 after
6956 { 6957 {
6957 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); 6958 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate());
6958 if (UNLIKELY(info.Length() < 1)) { 6959 if (UNLIKELY(info.Length() < 1)) {
6959 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6960 setMinimumArityTypeError(exceptionState, 1, info.Length());
6960 exceptionState.throwIfNeeded(); 6961 exceptionState.throwIfNeeded();
6961 return; 6962 return;
6962 } 6963 }
6963 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6964 TestObject* impl = V8TestObject::toImpl(info.Holder());
6964 RefPtr<SerializedScriptValue> serializedScriptValueArg; 6965 RefPtr<SerializedScriptValue> serializedScriptValueArg;
6965 { 6966 {
6966 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ edScriptValue::create(info[0], 0, 0, exceptionState, info.GetIsolate()), excepti onState); 6967 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ edScriptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetI solate()), exceptionState);
6967 } 6968 }
6968 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); 6969 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg);
6969 } 6970 }
6970 6971
6971 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6972 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6972 { 6973 {
6973 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6974 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); 6975 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info);
6975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6976 } 6977 }
(...skipping 4584 matching lines...) Expand 10 before | Expand all | Expand 10 after
11561 return false; 11562 return false;
11562 11563
11563 ScriptState::Scope scope(scriptState); 11564 ScriptState::Scope scope(scriptState);
11564 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11565 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11565 11566
11566 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11567 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11567 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11568 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11568 } 11569 }
11569 11570
11570 } // namespace blink 11571 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp ('k') | Source/core/dom/MessagePort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698