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

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

Issue 600863002: IDL: Make SerializedScriptValue arguments less of a special case (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months 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
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 986 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
987 { 987 {
988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
991 } 991 }
992 992
993 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)
994 { 994 {
995 v8::Handle<v8::Object> holder = info.Holder(); 995 v8::Handle<v8::Object> holder = info.Holder();
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(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptValue ::create(v8Value, info.GetIsolate())); 998 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial izedScriptValue::create(v8Value, 0, 0, exceptionState, info.GetIsolate()), excep tionState);
Jens Widell 2014/09/24 14:59:07 Note: The SerializedScriptValue::create(v8::Handle
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 5730 matching lines...) Expand 10 before | Expand all | Expand 10 after
6738 { 6739 {
6739 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); 6740 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate());
6740 if (UNLIKELY(info.Length() < 1)) { 6741 if (UNLIKELY(info.Length() < 1)) {
6741 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6742 setMinimumArityTypeError(exceptionState, 1, info.Length());
6742 exceptionState.throwIfNeeded(); 6743 exceptionState.throwIfNeeded();
6743 return; 6744 return;
6744 } 6745 }
6745 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6746 TestObject* impl = V8TestObject::toImpl(info.Holder());
6746 RefPtr<SerializedScriptValue> serializedScriptValueArg; 6747 RefPtr<SerializedScriptValue> serializedScriptValueArg;
6747 { 6748 {
6748 serializedScriptValueArg = SerializedScriptValue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); 6749 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ edScriptValue::create(info[0], 0, 0, exceptionState, info.GetIsolate()), excepti onState);
6749 if (exceptionState.hadException()) {
6750 exceptionState.throwIfNeeded();
6751 return;
6752 }
6753 } 6750 }
6754 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); 6751 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg);
6755 } 6752 }
6756 6753
6757 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6754 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6758 { 6755 {
6759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6760 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); 6757 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info);
6761 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6762 } 6759 }
(...skipping 4285 matching lines...) Expand 10 before | Expand all | Expand 10 after
11048 return false; 11045 return false;
11049 11046
11050 ScriptState::Scope scope(scriptState); 11047 ScriptState::Scope scope(scriptState);
11051 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11048 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11052 11049
11053 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11050 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)); 11051 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11055 } 11052 }
11056 11053
11057 } // namespace blink 11054 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698