| 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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 { | 1344 { |
| 1345 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); | 1345 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); |
| 1346 if (UNLIKELY(info.Length() < 1)) { | 1346 if (UNLIKELY(info.Length() < 1)) { |
| 1347 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 1347 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 1348 exceptionState.throwIfNeeded(); | 1348 exceptionState.throwIfNeeded(); |
| 1349 return; | 1349 return; |
| 1350 } | 1350 } |
| 1351 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1351 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1352 int longArg; | 1352 int longArg; |
| 1353 { | 1353 { |
| 1354 v8::TryCatch block; | |
| 1355 V8RethrowTryCatchScope rethrow(block); | |
| 1356 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 1354 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 1357 } | 1355 } |
| 1358 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); | 1356 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); |
| 1359 } | 1357 } |
| 1360 #endif // ENABLE(PARTIAL_CONDITION) | 1358 #endif // ENABLE(PARTIAL_CONDITION) |
| 1361 | 1359 |
| 1362 #if ENABLE(PARTIAL_CONDITION) | 1360 #if ENABLE(PARTIAL_CONDITION) |
| 1363 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 1361 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 1364 { | 1362 { |
| 1365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 { | 1421 { |
| 1424 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in
fo.GetIsolate()); | 1422 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in
fo.GetIsolate()); |
| 1425 if (UNLIKELY(info.Length() < 1)) { | 1423 if (UNLIKELY(info.Length() < 1)) { |
| 1426 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 1424 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 1427 exceptionState.throwIfNeeded(); | 1425 exceptionState.throwIfNeeded(); |
| 1428 return; | 1426 return; |
| 1429 } | 1427 } |
| 1430 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1428 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1431 int value; | 1429 int value; |
| 1432 { | 1430 { |
| 1433 v8::TryCatch block; | |
| 1434 V8RethrowTryCatchScope rethrow(block); | |
| 1435 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); | 1431 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); |
| 1436 } | 1432 } |
| 1437 int result = 0; | 1433 int result = 0; |
| 1438 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented
InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext(
)), impl, value, &result)) | 1434 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented
InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext(
)), impl, value, &result)) |
| 1439 return; | 1435 return; |
| 1440 v8SetReturnValueInt(info, result); | 1436 v8SetReturnValueInt(info, result); |
| 1441 } | 1437 } |
| 1442 #endif // ENABLE(PARTIAL_CONDITION) | 1438 #endif // ENABLE(PARTIAL_CONDITION) |
| 1443 | 1439 |
| 1444 #if ENABLE(PARTIAL_CONDITION) | 1440 #if ENABLE(PARTIAL_CONDITION) |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 if (block.HasCaught()) { | 2177 if (block.HasCaught()) { |
| 2182 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), exceptionState, block); | 2178 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), exceptionState, block); |
| 2183 block.ReThrow(); | 2179 block.ReThrow(); |
| 2184 return false; | 2180 return false; |
| 2185 } | 2181 } |
| 2186 return true; | 2182 return true; |
| 2187 } | 2183 } |
| 2188 | 2184 |
| 2189 } // namespace blink | 2185 } // namespace blink |
| 2190 #endif // ENABLE(CONDITION) | 2186 #endif // ENABLE(CONDITION) |
| OLD | NEW |