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 "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 7763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7774 { | 7774 { |
7775 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7775 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7776 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in
fo); | 7776 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in
fo); |
7777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7778 } | 7778 } |
7779 | 7779 |
7780 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7780 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7781 { | 7781 { |
7782 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7782 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7783 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 7783 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
7784 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(scriptState, i
nfo, 0)); | 7784 RefPtrWillBeRawPtr<ScriptArguments> scriptArguments(createScriptArguments(sc
riptState, info, 0)); |
7785 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume
nts.release()); | 7785 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume
nts.release()); |
7786 } | 7786 } |
7787 | 7787 |
7788 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7788 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
7789 { | 7789 { |
7790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7791 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf
o); | 7791 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf
o); |
7792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7793 } | 7793 } |
7794 | 7794 |
7795 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) | 7795 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) |
7796 { | 7796 { |
7797 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7797 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7798 bool optionalBooleanArg; | 7798 bool optionalBooleanArg; |
7799 { | 7799 { |
7800 v8::TryCatch block; | 7800 v8::TryCatch block; |
7801 V8RethrowTryCatchScope rethrow(block); | 7801 V8RethrowTryCatchScope rethrow(block); |
7802 if (UNLIKELY(info.Length() <= 0)) { | 7802 if (UNLIKELY(info.Length() <= 0)) { |
7803 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 7803 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
7804 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(script
State, info, 1)); | 7804 RefPtrWillBeRawPtr<ScriptArguments> scriptArguments(createScriptArgu
ments(scriptState, info, 1)); |
7805 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg
(scriptState, scriptArguments.release()); | 7805 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg
(scriptState, scriptArguments.release()); |
7806 return; | 7806 return; |
7807 } | 7807 } |
7808 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); | 7808 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); |
7809 } | 7809 } |
7810 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 7810 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
7811 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(scriptState, i
nfo, 1)); | 7811 RefPtrWillBeRawPtr<ScriptArguments> scriptArguments(createScriptArguments(sc
riptState, info, 1)); |
7812 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS
tate, scriptArguments.release(), optionalBooleanArg); | 7812 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS
tate, scriptArguments.release(), optionalBooleanArg); |
7813 } | 7813 } |
7814 | 7814 |
7815 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) | 7815 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
7816 { | 7816 { |
7817 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7817 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7818 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo
oleanArgMethod(info); | 7818 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo
oleanArgMethod(info); |
7819 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7819 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7820 } | 7820 } |
7821 | 7821 |
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9533 fromInternalPointer(object)->deref(); | 9533 fromInternalPointer(object)->deref(); |
9534 } | 9534 } |
9535 | 9535 |
9536 template<> | 9536 template<> |
9537 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 9537 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
9538 { | 9538 { |
9539 return toV8(impl, creationContext, isolate); | 9539 return toV8(impl, creationContext, isolate); |
9540 } | 9540 } |
9541 | 9541 |
9542 } // namespace WebCore | 9542 } // namespace WebCore |
OLD | NEW |