| 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 "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 4902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4913 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 4913 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); |
| 4914 RELEASE_ASSERT(!exceptionState.hadException()); | 4914 RELEASE_ASSERT(!exceptionState.hadException()); |
| 4915 *result = cppValue; | 4915 *result = cppValue; |
| 4916 return true; | 4916 return true; |
| 4917 } | 4917 } |
| 4918 | 4918 |
| 4919 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 4919 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 4920 { | 4920 { |
| 4921 v8::Handle<v8::Object> holder = info.Holder(); | 4921 v8::Handle<v8::Object> holder = info.Holder(); |
| 4922 TestObject* impl = V8TestObject::toNative(holder); | 4922 TestObject* impl = V8TestObject::toNative(holder); |
| 4923 int result; | 4923 int result = 0; |
| 4924 if (!readonlyShortAttributeAttributeGetterImplementedInPrivateScript(toFrame
IfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) | 4924 if (!readonlyShortAttributeAttributeGetterImplementedInPrivateScript(toFrame
IfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) |
| 4925 return; | 4925 return; |
| 4926 v8SetReturnValueInt(info, result); | 4926 v8SetReturnValueInt(info, result); |
| 4927 } | 4927 } |
| 4928 | 4928 |
| 4929 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 4929 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4930 { | 4930 { |
| 4931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4932 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); | 4932 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); |
| 4933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4989 } | 4989 } |
| 4990 return false; | 4990 return false; |
| 4991 } | 4991 } |
| 4992 return true; | 4992 return true; |
| 4993 } | 4993 } |
| 4994 | 4994 |
| 4995 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 4995 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 4996 { | 4996 { |
| 4997 v8::Handle<v8::Object> holder = info.Holder(); | 4997 v8::Handle<v8::Object> holder = info.Holder(); |
| 4998 TestObject* impl = V8TestObject::toNative(holder); | 4998 TestObject* impl = V8TestObject::toNative(holder); |
| 4999 int result; | 4999 int result = 0; |
| 5000 if (!shortAttributeAttributeGetterImplementedInPrivateScript(toFrameIfNotDet
ached(info.GetIsolate()->GetCurrentContext()), impl, &result)) | 5000 if (!shortAttributeAttributeGetterImplementedInPrivateScript(toFrameIfNotDet
ached(info.GetIsolate()->GetCurrentContext()), impl, &result)) |
| 5001 return; | 5001 return; |
| 5002 v8SetReturnValueInt(info, result); | 5002 v8SetReturnValueInt(info, result); |
| 5003 } | 5003 } |
| 5004 | 5004 |
| 5005 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 5005 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 5006 { | 5006 { |
| 5007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 5008 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 5008 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
| 5009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5081 } | 5081 } |
| 5082 return false; | 5082 return false; |
| 5083 } | 5083 } |
| 5084 return true; | 5084 return true; |
| 5085 } | 5085 } |
| 5086 | 5086 |
| 5087 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 5087 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 5088 { | 5088 { |
| 5089 v8::Handle<v8::Object> holder = info.Holder(); | 5089 v8::Handle<v8::Object> holder = info.Holder(); |
| 5090 TestObject* impl = V8TestObject::toNative(holder); | 5090 TestObject* impl = V8TestObject::toNative(holder); |
| 5091 String result; | 5091 String result = ""; |
| 5092 if (!stringAttributeAttributeGetterImplementedInPrivateScript(toFrameIfNotDe
tached(info.GetIsolate()->GetCurrentContext()), impl, &result)) | 5092 if (!stringAttributeAttributeGetterImplementedInPrivateScript(toFrameIfNotDe
tached(info.GetIsolate()->GetCurrentContext()), impl, &result)) |
| 5093 return; | 5093 return; |
| 5094 v8SetReturnValueString(info, result, info.GetIsolate()); | 5094 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 5095 } | 5095 } |
| 5096 | 5096 |
| 5097 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 5097 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 5098 { | 5098 { |
| 5099 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5099 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 5100 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 5100 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
| 5101 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5101 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 5055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10157 } | 10157 } |
| 10158 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 10158 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); |
| 10159 RELEASE_ASSERT(!exceptionState.hadException()); | 10159 RELEASE_ASSERT(!exceptionState.hadException()); |
| 10160 *result = cppValue; | 10160 *result = cppValue; |
| 10161 return true; | 10161 return true; |
| 10162 } | 10162 } |
| 10163 | 10163 |
| 10164 static void shortMethodImplementedInPrivateScriptMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 10164 static void shortMethodImplementedInPrivateScriptMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 10165 { | 10165 { |
| 10166 TestObject* impl = V8TestObject::toNative(info.Holder()); | 10166 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 10167 int result; | 10167 int result = 0; |
| 10168 if (!shortMethodImplementedInPrivateScriptMethodImplementedInPrivateScript(t
oFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) | 10168 if (!shortMethodImplementedInPrivateScriptMethodImplementedInPrivateScript(t
oFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) |
| 10169 return; | 10169 return; |
| 10170 v8SetReturnValueInt(info, result); | 10170 v8SetReturnValueInt(info, result); |
| 10171 } | 10171 } |
| 10172 | 10172 |
| 10173 static void shortMethodImplementedInPrivateScriptMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 10173 static void shortMethodImplementedInPrivateScriptMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 10174 { | 10174 { |
| 10175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10176 TestObjectV8Internal::shortMethodImplementedInPrivateScriptMethod(info); | 10176 TestObjectV8Internal::shortMethodImplementedInPrivateScriptMethod(info); |
| 10177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10217 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 10217 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10218 return; | 10218 return; |
| 10219 } | 10219 } |
| 10220 TestObject* impl = V8TestObject::toNative(info.Holder()); | 10220 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 10221 int value; | 10221 int value; |
| 10222 { | 10222 { |
| 10223 v8::TryCatch block; | 10223 v8::TryCatch block; |
| 10224 V8RethrowTryCatchScope rethrow(block); | 10224 V8RethrowTryCatchScope rethrow(block); |
| 10225 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); | 10225 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); |
| 10226 } | 10226 } |
| 10227 int result; | 10227 int result = 0; |
| 10228 if (!shortMethodWithShortArgumentImplementedInPrivateScriptMethodImplemented
InPrivateScript(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), im
pl, value, &result)) | 10228 if (!shortMethodWithShortArgumentImplementedInPrivateScriptMethodImplemented
InPrivateScript(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), im
pl, value, &result)) |
| 10229 return; | 10229 return; |
| 10230 v8SetReturnValueInt(info, result); | 10230 v8SetReturnValueInt(info, result); |
| 10231 } | 10231 } |
| 10232 | 10232 |
| 10233 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 10233 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10234 { | 10234 { |
| 10235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10236 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); | 10236 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); |
| 10237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10274 { | 10274 { |
| 10275 if (UNLIKELY(info.Length() < 1)) { | 10275 if (UNLIKELY(info.Length() < 1)) { |
| 10276 throwMinimumArityTypeErrorForMethod("stringMethodWithStringArgumentImple
mentedInPrivateScript", "TestObject", 1, info.Length(), info.GetIsolate()); | 10276 throwMinimumArityTypeErrorForMethod("stringMethodWithStringArgumentImple
mentedInPrivateScript", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 10277 return; | 10277 return; |
| 10278 } | 10278 } |
| 10279 TestObject* impl = V8TestObject::toNative(info.Holder()); | 10279 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 10280 V8StringResource<> value; | 10280 V8StringResource<> value; |
| 10281 { | 10281 { |
| 10282 TOSTRING_VOID_INTERNAL(value, info[0]); | 10282 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 10283 } | 10283 } |
| 10284 String result; | 10284 String result = ""; |
| 10285 if (!stringMethodWithStringArgumentImplementedInPrivateScriptMethodImplement
edInPrivateScript(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()),
impl, value, &result)) | 10285 if (!stringMethodWithStringArgumentImplementedInPrivateScriptMethodImplement
edInPrivateScript(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()),
impl, value, &result)) |
| 10286 return; | 10286 return; |
| 10287 v8SetReturnValueString(info, result, info.GetIsolate()); | 10287 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 10288 } | 10288 } |
| 10289 | 10289 |
| 10290 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10290 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10291 { | 10291 { |
| 10292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10293 TestObjectV8Internal::stringMethodWithStringArgumentImplementedInPrivateScri
ptMethod(info); | 10293 TestObjectV8Internal::stringMethodWithStringArgumentImplementedInPrivateScri
ptMethod(info); |
| 10294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11017 fromInternalPointer(object)->deref(); | 11017 fromInternalPointer(object)->deref(); |
| 11018 } | 11018 } |
| 11019 | 11019 |
| 11020 template<> | 11020 template<> |
| 11021 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 11021 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 11022 { | 11022 { |
| 11023 return toV8(impl, creationContext, isolate); | 11023 return toV8(impl, creationContext, isolate); |
| 11024 } | 11024 } |
| 11025 | 11025 |
| 11026 } // namespace WebCore | 11026 } // namespace WebCore |
| OLD | NEW |