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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 #if ENABLE(PARTIAL_CONDITION) | 1392 #if ENABLE(PARTIAL_CONDITION) |
1393 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 1393 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
1394 { | 1394 { |
1395 if (UNLIKELY(info.Length() < 1)) { | 1395 if (UNLIKELY(info.Length() < 1)) { |
1396 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p
artialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length(), info
.GetIsolate()), info.GetIsolate()); | 1396 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p
artialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length(), info
.GetIsolate()), info.GetIsolate()); |
1397 return; | 1397 return; |
1398 } | 1398 } |
1399 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1399 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1400 ScriptValue partialCallbackTypeArg; | 1400 ScriptValue partialCallbackTypeArg; |
1401 { | 1401 { |
1402 v8::TryCatch block; | |
1403 V8RethrowTryCatchScope rethrow(block); | |
1404 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolat
e()), info[0]); | 1402 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolat
e()), info[0]); |
1405 } | 1403 } |
1406 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial
CallbackTypeArg); | 1404 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial
CallbackTypeArg); |
1407 } | 1405 } |
1408 #endif // ENABLE(PARTIAL_CONDITION) | 1406 #endif // ENABLE(PARTIAL_CONDITION) |
1409 | 1407 |
1410 #if ENABLE(PARTIAL_CONDITION) | 1408 #if ENABLE(PARTIAL_CONDITION) |
1411 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1409 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1412 { | 1410 { |
1413 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2165 | 2163 |
2166 ScriptState::Scope scope(scriptState); | 2164 ScriptState::Scope scope(scriptState); |
2167 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 2165 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
2168 | 2166 |
2169 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); | 2167 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); |
2170 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(s
criptState->isolate(), cppValue)); | 2168 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(s
criptState->isolate(), cppValue)); |
2171 } | 2169 } |
2172 | 2170 |
2173 } // namespace blink | 2171 } // namespace blink |
2174 #endif // ENABLE(CONDITION) | 2172 #endif // ENABLE(CONDITION) |
OLD | NEW |