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 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 | 1870 |
1871 ScriptState::Scope scope(scriptState); | 1871 ScriptState::Scope scope(scriptState); |
1872 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 1872 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
1873 | 1873 |
1874 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); | 1874 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); |
1875 v8::Handle<v8::Value> argv[] = { valueHandle }; | 1875 v8::Handle<v8::Value> argv[] = { valueHandle }; |
1876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr
iptState->context()->Global(), scriptState->isolate()); | 1876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr
iptState->context()->Global(), scriptState->isolate()); |
1877 v8::TryCatch block; | 1877 v8::TryCatch block; |
1878 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat
e, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPriv
ateScript", holder, 1, argv); | 1878 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat
e, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPriv
ateScript", holder, 1, argv); |
1879 if (block.HasCaught()) { | 1879 if (block.HasCaught()) { |
1880 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip
tState->isolate(), exceptionState, block.Exception())) { | 1880 if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->i
solate(), exceptionState, block)) { |
1881 // FIXME: We should support more exceptions. | 1881 // FIXME: We should support more exceptions. |
1882 RELEASE_ASSERT_NOT_REACHED(); | 1882 RELEASE_ASSERT_NOT_REACHED(); |
1883 } | 1883 } |
1884 block.ReThrow(); | 1884 block.ReThrow(); |
1885 return false; | 1885 return false; |
1886 } | 1886 } |
1887 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 1887 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); |
1888 RELEASE_ASSERT(!exceptionState.hadException()); | 1888 RELEASE_ASSERT(!exceptionState.hadException()); |
1889 *result = cppValue; | 1889 *result = cppValue; |
1890 return true; | 1890 return true; |
(...skipping 12 matching lines...) Expand all Loading... |
1903 if (!scriptState->executionContext()) | 1903 if (!scriptState->executionContext()) |
1904 return false; | 1904 return false; |
1905 | 1905 |
1906 ScriptState::Scope scope(scriptState); | 1906 ScriptState::Scope scope(scriptState); |
1907 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 1907 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
1908 | 1908 |
1909 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); | 1909 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); |
1910 v8::TryCatch block; | 1910 v8::TryCatch block; |
1911 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s
criptState, "TestInterfaceImplementation", "stringAttribute", holder); | 1911 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s
criptState, "TestInterfaceImplementation", "stringAttribute", holder); |
1912 if (block.HasCaught()) { | 1912 if (block.HasCaught()) { |
1913 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip
tState->isolate(), exceptionState, block.Exception())) { | 1913 if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->i
solate(), exceptionState, block)) { |
1914 // FIXME: We should support more exceptions. | 1914 // FIXME: We should support more exceptions. |
1915 RELEASE_ASSERT_NOT_REACHED(); | 1915 RELEASE_ASSERT_NOT_REACHED(); |
1916 } | 1916 } |
1917 block.ReThrow(); | 1917 block.ReThrow(); |
1918 return false; | 1918 return false; |
1919 } | 1919 } |
1920 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 1920 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); |
1921 RELEASE_ASSERT(!exceptionState.hadException()); | 1921 RELEASE_ASSERT(!exceptionState.hadException()); |
1922 *result = cppValue; | 1922 *result = cppValue; |
1923 return true; | 1923 return true; |
(...skipping 12 matching lines...) Expand all Loading... |
1936 if (!scriptState->executionContext()) | 1936 if (!scriptState->executionContext()) |
1937 return false; | 1937 return false; |
1938 | 1938 |
1939 ScriptState::Scope scope(scriptState); | 1939 ScriptState::Scope scope(scriptState); |
1940 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 1940 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
1941 | 1941 |
1942 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); | 1942 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); |
1943 v8::TryCatch block; | 1943 v8::TryCatch block; |
1944 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestInterfaceImplem
entation", "stringAttribute", holder, v8String(scriptState->isolate(), cppValue)
); | 1944 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestInterfaceImplem
entation", "stringAttribute", holder, v8String(scriptState->isolate(), cppValue)
); |
1945 if (block.HasCaught()) { | 1945 if (block.HasCaught()) { |
1946 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip
tState->isolate(), exceptionState, block.Exception())) { | 1946 if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->i
solate(), exceptionState, block)) { |
1947 // FIXME: We should support more exceptions. | 1947 // FIXME: We should support more exceptions. |
1948 RELEASE_ASSERT_NOT_REACHED(); | 1948 RELEASE_ASSERT_NOT_REACHED(); |
1949 } | 1949 } |
1950 block.ReThrow(); | 1950 block.ReThrow(); |
1951 return false; | 1951 return false; |
1952 } | 1952 } |
1953 return true; | 1953 return true; |
1954 } | 1954 } |
1955 | 1955 |
1956 } // namespace blink | 1956 } // namespace blink |
1957 #endif // ENABLE(CONDITION) | 1957 #endif // ENABLE(CONDITION) |
OLD | NEW |