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 6610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6621 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6621 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
6622 { | 6622 { |
6623 if (UNLIKELY(info.Length() < 1)) { | 6623 if (UNLIKELY(info.Length() < 1)) { |
6624 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), creat
eMinimumArityTypeErrorForMethod("promiseMethodWithoutExceptionState", "TestObjec
t", 1, info.Length(), info.GetIsolate()))); | 6624 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), creat
eMinimumArityTypeErrorForMethod("promiseMethodWithoutExceptionState", "TestObjec
t", 1, info.Length(), info.GetIsolate()))); |
6625 return; | 6625 return; |
6626 } | 6626 } |
6627 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6627 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6628 Dictionary arg1; | 6628 Dictionary arg1; |
6629 { | 6629 { |
6630 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 6630 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
6631 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V
8ThrowException::createTypeError(ExceptionMessages::failedToExecute("promiseMeth
odWithoutExceptionState", "TestObject", "parameter 1 ('arg1') is not an object."
), info.GetIsolate()))); | 6631 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V
8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE
xecute("promiseMethodWithoutExceptionState", "TestObject", "parameter 1 ('arg1')
is not an object.")))); |
6632 return; | 6632 return; |
6633 } | 6633 } |
6634 arg1 = Dictionary(info[0], info.GetIsolate()); | 6634 arg1 = Dictionary(info[0], info.GetIsolate()); |
6635 } | 6635 } |
6636 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); | 6636 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); |
6637 } | 6637 } |
6638 | 6638 |
6639 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 6639 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
6640 { | 6640 { |
6641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 4531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11173 return false; | 11173 return false; |
11174 | 11174 |
11175 ScriptState::Scope scope(scriptState); | 11175 ScriptState::Scope scope(scriptState); |
11176 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11176 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11177 | 11177 |
11178 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11178 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11179 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11179 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11180 } | 11180 } |
11181 | 11181 |
11182 } // namespace blink | 11182 } // namespace blink |
OLD | NEW |