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 "V8TestSpecialOperationsNotEnumerable.h" | 8 #include "V8TestSpecialOperationsNotEnumerable.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 40 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
41 // bindings/core/v8/ScriptWrappable.h. | 41 // bindings/core/v8/ScriptWrappable.h. |
42 const WrapperTypeInfo& TestSpecialOperationsNotEnumerable::s_wrapperTypeInfo = V
8TestSpecialOperationsNotEnumerable::wrapperTypeInfo; | 42 const WrapperTypeInfo& TestSpecialOperationsNotEnumerable::s_wrapperTypeInfo = V
8TestSpecialOperationsNotEnumerable::wrapperTypeInfo; |
43 | 43 |
44 namespace TestSpecialOperationsNotEnumerableV8Internal { | 44 namespace TestSpecialOperationsNotEnumerableV8Internal { |
45 | 45 |
46 template <typename T> void V8_USE(T) { } | 46 template <typename T> void V8_USE(T) { } |
47 | 47 |
48 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 48 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
49 { | 49 { |
50 TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumera
ble::toNative(info.Holder()); | 50 TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumera
ble::toImpl(info.Holder()); |
51 String result = impl->anonymousIndexedGetter(index); | 51 String result = impl->anonymousIndexedGetter(index); |
52 if (result.isNull()) | 52 if (result.isNull()) |
53 return; | 53 return; |
54 v8SetReturnValueString(info, result, info.GetIsolate()); | 54 v8SetReturnValueString(info, result, info.GetIsolate()); |
55 } | 55 } |
56 | 56 |
57 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 57 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
58 { | 58 { |
59 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); | 59 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); |
60 TestSpecialOperationsNotEnumerableV8Internal::indexedPropertyGetter(index, i
nfo); | 60 TestSpecialOperationsNotEnumerableV8Internal::indexedPropertyGetter(index, i
nfo); |
61 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 61 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
62 } | 62 } |
63 | 63 |
64 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 64 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
65 { | 65 { |
66 if (info.Holder()->HasRealNamedProperty(name)) | 66 if (info.Holder()->HasRealNamedProperty(name)) |
67 return; | 67 return; |
68 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 68 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
69 return; | 69 return; |
70 | 70 |
71 TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumera
ble::toNative(info.Holder()); | 71 TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumera
ble::toImpl(info.Holder()); |
72 AtomicString propertyName = toCoreAtomicString(name); | 72 AtomicString propertyName = toCoreAtomicString(name); |
73 String result = impl->anonymousNamedGetter(propertyName); | 73 String result = impl->anonymousNamedGetter(propertyName); |
74 if (result.isNull()) | 74 if (result.isNull()) |
75 return; | 75 return; |
76 v8SetReturnValueString(info, result, info.GetIsolate()); | 76 v8SetReturnValueString(info, result, info.GetIsolate()); |
77 } | 77 } |
78 | 78 |
79 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 79 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
80 { | 80 { |
81 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 81 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
(...skipping 30 matching lines...) Expand all Loading... |
112 bool V8TestSpecialOperationsNotEnumerable::hasInstance(v8::Handle<v8::Value> v8V
alue, v8::Isolate* isolate) | 112 bool V8TestSpecialOperationsNotEnumerable::hasInstance(v8::Handle<v8::Value> v8V
alue, v8::Isolate* isolate) |
113 { | 113 { |
114 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 114 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
115 } | 115 } |
116 | 116 |
117 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 117 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
118 { | 118 { |
119 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 119 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
120 } | 120 } |
121 | 121 |
122 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 122 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toImpl
WithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
123 { | 123 { |
124 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; | 124 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestSpecialOperationsNotEnumerable>() : 0; |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 void V8TestSpecialOperationsNotEnumerable::refObject(ScriptWrappableBase* intern
alPointer) | 128 void V8TestSpecialOperationsNotEnumerable::refObject(ScriptWrappableBase* intern
alPointer) |
129 { | 129 { |
130 fromInternalPointer(internalPointer)->ref(); | 130 internalPointer->toImpl<TestSpecialOperationsNotEnumerable>()->ref(); |
131 } | 131 } |
132 | 132 |
133 void V8TestSpecialOperationsNotEnumerable::derefObject(ScriptWrappableBase* inte
rnalPointer) | 133 void V8TestSpecialOperationsNotEnumerable::derefObject(ScriptWrappableBase* inte
rnalPointer) |
134 { | 134 { |
135 fromInternalPointer(internalPointer)->deref(); | 135 internalPointer->toImpl<TestSpecialOperationsNotEnumerable>()->deref(); |
136 } | 136 } |
137 | 137 |
138 WrapperPersistentNode* V8TestSpecialOperationsNotEnumerable::createPersistentHan
dle(ScriptWrappableBase* internalPointer) | 138 WrapperPersistentNode* V8TestSpecialOperationsNotEnumerable::createPersistentHan
dle(ScriptWrappableBase* internalPointer) |
139 { | 139 { |
140 ASSERT_NOT_REACHED(); | 140 ASSERT_NOT_REACHED(); |
141 return 0; | 141 return 0; |
142 } | 142 } |
143 | 143 |
144 template<> | 144 template<> |
145 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 145 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) |
146 { | 146 { |
147 return toV8(impl, creationContext, isolate); | 147 return toV8(impl, creationContext, isolate); |
148 } | 148 } |
149 | 149 |
150 } // namespace blink | 150 } // namespace blink |
OLD | NEW |