| 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 10918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10929 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 10929 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10930 { | 10930 { |
| 10931 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); | 10931 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); |
| 10932 if (UNLIKELY(info.Length() < 2)) { | 10932 if (UNLIKELY(info.Length() < 2)) { |
| 10933 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 10933 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 10934 exceptionState.throwIfNeeded(); | 10934 exceptionState.throwIfNeeded(); |
| 10935 return; | 10935 return; |
| 10936 } | 10936 } |
| 10937 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10937 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10938 int key; | 10938 int key; |
| 10939 V8StringResource<> value; | 10939 StringOrDouble value; |
| 10940 { | 10940 { |
| 10941 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 10941 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); |
| 10942 TOSTRING_VOID_INTERNAL(value, info[1]); | 10942 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrDouble::toImpl(info.G
etIsolate(), info[1], value, exceptionState), exceptionState); |
| 10943 } | 10943 } |
| 10944 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 10944 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10945 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); | 10945 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); |
| 10946 if (exceptionState.hadException()) { | 10946 if (exceptionState.hadException()) { |
| 10947 exceptionState.throwIfNeeded(); | 10947 exceptionState.throwIfNeeded(); |
| 10948 return; | 10948 return; |
| 10949 } | 10949 } |
| 10950 v8SetReturnValue(info, result.release()); | 10950 v8SetReturnValue(info, result.release()); |
| 10951 } | 10951 } |
| 10952 | 10952 |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12053 return false; | 12053 return false; |
| 12054 | 12054 |
| 12055 ScriptState::Scope scope(scriptState); | 12055 ScriptState::Scope scope(scriptState); |
| 12056 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12056 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 12057 | 12057 |
| 12058 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12058 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 12059 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 12059 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 12060 } | 12060 } |
| 12061 | 12061 |
| 12062 } // namespace blink | 12062 } // namespace blink |
| OLD | NEW |