| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 { | 185 { |
| 186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 187 TestObjectV8Internal::dateAttributeAttributeGetter(info); | 187 TestObjectV8Internal::dateAttributeAttributeGetter(info); |
| 188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 189 } | 189 } |
| 190 | 190 |
| 191 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 191 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 192 { | 192 { |
| 193 v8::Handle<v8::Object> holder = info.Holder(); | 193 v8::Handle<v8::Object> holder = info.Holder(); |
| 194 TestObject* impl = V8TestObject::toImpl(holder); | 194 TestObject* impl = V8TestObject::toImpl(holder); |
| 195 TONATIVE_VOID(double, cppValue, toCoreDate(v8Value)); | 195 double cppValue = toCoreDate(v8Value); |
| 196 impl->setDateAttribute(cppValue); | 196 impl->setDateAttribute(cppValue); |
| 197 } | 197 } |
| 198 | 198 |
| 199 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 199 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 200 { | 200 { |
| 201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 202 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); | 202 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); |
| 203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 204 } | 204 } |
| 205 | 205 |
| (...skipping 4990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5196 | 5196 |
| 5197 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5197 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 5198 { | 5198 { |
| 5199 if (UNLIKELY(info.Length() < 1)) { | 5199 if (UNLIKELY(info.Length() < 1)) { |
| 5200 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodDateArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetI
solate()); | 5200 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodDateArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetI
solate()); |
| 5201 return; | 5201 return; |
| 5202 } | 5202 } |
| 5203 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5203 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5204 double dateArg; | 5204 double dateArg; |
| 5205 { | 5205 { |
| 5206 v8::TryCatch block; | 5206 dateArg = toCoreDate(info[0]); |
| 5207 V8RethrowTryCatchScope rethrow(block); | |
| 5208 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0])); | |
| 5209 } | 5207 } |
| 5210 impl->voidMethodDateArg(dateArg); | 5208 impl->voidMethodDateArg(dateArg); |
| 5211 } | 5209 } |
| 5212 | 5210 |
| 5213 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5211 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5214 { | 5212 { |
| 5215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5216 TestObjectV8Internal::voidMethodDateArgMethod(info); | 5214 TestObjectV8Internal::voidMethodDateArgMethod(info); |
| 5217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5218 } | 5216 } |
| (...skipping 5839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11058 return false; | 11056 return false; |
| 11059 | 11057 |
| 11060 ScriptState::Scope scope(scriptState); | 11058 ScriptState::Scope scope(scriptState); |
| 11061 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11059 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
| 11062 | 11060 |
| 11063 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11061 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 11064 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11062 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 11065 } | 11063 } |
| 11066 | 11064 |
| 11067 } // namespace blink | 11065 } // namespace blink |
| OLD | NEW |