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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 { | 938 { |
939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
940 TestObjectV8Internal::promiseAttributeAttributeGetter(info); | 940 TestObjectV8Internal::promiseAttributeAttributeGetter(info); |
941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
942 } | 942 } |
943 | 943 |
944 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 944 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
945 { | 945 { |
946 v8::Handle<v8::Object> holder = info.Holder(); | 946 v8::Handle<v8::Object> holder = info.Holder(); |
947 TestObject* impl = V8TestObject::toNative(holder); | 947 TestObject* impl = V8TestObject::toNative(holder); |
948 TONATIVE_VOID(ScriptPromise, cppValue, ScriptPromise(v8Value, info.GetIsolat
e())); | 948 TONATIVE_VOID(ScriptPromise, cppValue, ScriptPromise(ScriptState::current(in
fo.GetIsolate()), v8Value)); |
949 impl->setPromiseAttribute(cppValue); | 949 impl->setPromiseAttribute(cppValue); |
950 } | 950 } |
951 | 951 |
952 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 952 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
953 { | 953 { |
954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
955 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); | 955 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); |
956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
957 } | 957 } |
958 | 958 |
(...skipping 4958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5918 } | 5918 } |
5919 | 5919 |
5920 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5920 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5921 { | 5921 { |
5922 if (UNLIKELY(info.Length() < 1)) { | 5922 if (UNLIKELY(info.Length() < 1)) { |
5923 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in
fo.Length(), info.GetIsolate()); | 5923 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in
fo.Length(), info.GetIsolate()); |
5924 return; | 5924 return; |
5925 } | 5925 } |
5926 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5926 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5927 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIsol
ate())); | 5927 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(ScriptState::current(
info.GetIsolate()), info[0])); |
5928 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 5928 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
5929 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate
()); | 5929 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate
()); |
5930 return; | 5930 return; |
5931 } | 5931 } |
5932 impl->voidMethodPromiseArg(promiseArg); | 5932 impl->voidMethodPromiseArg(promiseArg); |
5933 } | 5933 } |
5934 | 5934 |
5935 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5935 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5936 { | 5936 { |
5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
(...skipping 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8777 fromInternalPointer(object)->deref(); | 8777 fromInternalPointer(object)->deref(); |
8778 } | 8778 } |
8779 | 8779 |
8780 template<> | 8780 template<> |
8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
8782 { | 8782 { |
8783 return toV8(impl, creationContext, isolate); | 8783 return toV8(impl, creationContext, isolate); |
8784 } | 8784 } |
8785 | 8785 |
8786 } // namespace WebCore | 8786 } // namespace WebCore |
OLD | NEW |