| 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 4954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4965 { | 4965 { |
| 4966 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4966 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4967 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 4967 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
| 4968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4969 } | 4969 } |
| 4970 | 4970 |
| 4971 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 4971 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 4972 { | 4972 { |
| 4973 v8::Handle<v8::Object> holder = info.Holder(); | 4973 v8::Handle<v8::Object> holder = info.Holder(); |
| 4974 TestObject* impl = V8TestObject::toNative(holder); | 4974 TestObject* impl = V8TestObject::toNative(holder); |
| 4975 RefPtrWillBeRawPtr<Node> result; | 4975 RefPtrWillBeRawPtr<Node> result = nullptr; |
| 4976 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toFrameIfNotD
etached(info.GetIsolate()->GetCurrentContext()), impl, &result)) | 4976 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toFrameIfNotD
etached(info.GetIsolate()->GetCurrentContext()), impl, &result)) |
| 4977 return; | 4977 return; |
| 4978 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); | 4978 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); |
| 4979 } | 4979 } |
| 4980 | 4980 |
| 4981 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 4981 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 4982 { | 4982 { |
| 4983 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4983 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4984 TestObjectV8Internal::nodeAttributeAttributeGetter(info); | 4984 TestObjectV8Internal::nodeAttributeAttributeGetter(info); |
| 4985 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4985 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 5086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10072 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n
odeMethodWithNodeArgumentImplementedInPrivateScript", "TestObject", 1, info.Leng
th(), info.GetIsolate()), info.GetIsolate()); | 10072 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n
odeMethodWithNodeArgumentImplementedInPrivateScript", "TestObject", 1, info.Leng
th(), info.GetIsolate()), info.GetIsolate()); |
| 10073 return; | 10073 return; |
| 10074 } | 10074 } |
| 10075 TestObject* impl = V8TestObject::toNative(info.Holder()); | 10075 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 10076 Node* value; | 10076 Node* value; |
| 10077 { | 10077 { |
| 10078 v8::TryCatch block; | 10078 v8::TryCatch block; |
| 10079 V8RethrowTryCatchScope rethrow(block); | 10079 V8RethrowTryCatchScope rethrow(block); |
| 10080 TONATIVE_VOID_INTERNAL(value, V8Node::toNativeWithTypeCheck(info.GetIsol
ate(), info[0])); | 10080 TONATIVE_VOID_INTERNAL(value, V8Node::toNativeWithTypeCheck(info.GetIsol
ate(), info[0])); |
| 10081 } | 10081 } |
| 10082 RefPtrWillBeRawPtr<Node> result; | 10082 RefPtrWillBeRawPtr<Node> result = nullptr; |
| 10083 if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPri
vateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), i
mpl, value, &result)) | 10083 if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPri
vateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), i
mpl, value, &result)) |
| 10084 return; | 10084 return; |
| 10085 v8SetReturnValue(info, result.release()); | 10085 v8SetReturnValue(info, result.release()); |
| 10086 } | 10086 } |
| 10087 | 10087 |
| 10088 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 10088 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 10089 { | 10089 { |
| 10090 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10090 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10091 TestObjectV8Internal::nodeMethodWithNodeArgumentImplementedInPrivateScriptMe
thod(info); | 10091 TestObjectV8Internal::nodeMethodWithNodeArgumentImplementedInPrivateScriptMe
thod(info); |
| 10092 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10092 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 10108 V8StringResource<> string; | 10108 V8StringResource<> string; |
| 10109 { | 10109 { |
| 10110 v8::TryCatch block; | 10110 v8::TryCatch block; |
| 10111 V8RethrowTryCatchScope rethrow(block); | 10111 V8RethrowTryCatchScope rethrow(block); |
| 10112 TONATIVE_VOID_INTERNAL(document, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), info[0])); | 10112 TONATIVE_VOID_INTERNAL(document, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), info[0])); |
| 10113 TONATIVE_VOID_INTERNAL(node, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), info[1])); | 10113 TONATIVE_VOID_INTERNAL(node, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), info[1])); |
| 10114 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[2], exception
State), exceptionState); | 10114 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[2], exception
State), exceptionState); |
| 10115 TONATIVE_VOID_INTERNAL(value2, static_cast<double>(info[3]->NumberValue(
))); | 10115 TONATIVE_VOID_INTERNAL(value2, static_cast<double>(info[3]->NumberValue(
))); |
| 10116 TOSTRING_VOID_INTERNAL(string, info[4]); | 10116 TOSTRING_VOID_INTERNAL(string, info[4]); |
| 10117 } | 10117 } |
| 10118 RefPtrWillBeRawPtr<Node> result; | 10118 RefPtrWillBeRawPtr<Node> result = nullptr; |
| 10119 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()
), impl, document, node, value1, value2, string, &result)) | 10119 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()
), impl, document, node, value1, value2, string, &result)) |
| 10120 return; | 10120 return; |
| 10121 v8SetReturnValue(info, result.release()); | 10121 v8SetReturnValue(info, result.release()); |
| 10122 } | 10122 } |
| 10123 | 10123 |
| 10124 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10124 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10125 { | 10125 { |
| 10126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10127 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); | 10127 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); |
| 10128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11284 // FIXME: We should support more exceptions. | 11284 // FIXME: We should support more exceptions. |
| 11285 RELEASE_ASSERT_NOT_REACHED(); | 11285 RELEASE_ASSERT_NOT_REACHED(); |
| 11286 } | 11286 } |
| 11287 block.ReThrow(); | 11287 block.ReThrow(); |
| 11288 return false; | 11288 return false; |
| 11289 } | 11289 } |
| 11290 return true; | 11290 return true; |
| 11291 } | 11291 } |
| 11292 | 11292 |
| 11293 } // namespace blink | 11293 } // namespace blink |
| OLD | NEW |