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/V8HTMLCollection.h" | 10 #include "bindings/core/v8/V8HTMLCollection.h" |
(...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4572 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4572 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4573 { | 4573 { |
4574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4575 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4575 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4576 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4576 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4578 } | 4578 } |
4579 | 4579 |
4580 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 4580 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) |
4581 { | 4581 { |
4582 v8::Handle<v8::Object> holder = V8TestObject::findInstanceInPrototypeChain(i
nfo.This(), info.GetIsolate()); | 4582 v8::Handle<v8::Object> holder = info.Holder(); |
4583 if (holder.IsEmpty()) | |
4584 return; | |
4585 TestObject* impl = V8TestObject::toNative(holder); | 4583 TestObject* impl = V8TestObject::toNative(holder); |
4586 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); | 4584 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); |
4587 } | 4585 } |
4588 | 4586 |
4589 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4587 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4590 { | 4588 { |
4591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4592 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); | 4590 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); |
4593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4594 } | 4592 } |
(...skipping 5669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10264 fromInternalPointer(object)->deref(); | 10262 fromInternalPointer(object)->deref(); |
10265 } | 10263 } |
10266 | 10264 |
10267 template<> | 10265 template<> |
10268 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10266 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10269 { | 10267 { |
10270 return toV8(impl, creationContext, isolate); | 10268 return toV8(impl, creationContext, isolate); |
10271 } | 10269 } |
10272 | 10270 |
10273 } // namespace WebCore | 10271 } // namespace WebCore |
OLD | NEW |