| 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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 123 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 124 { | 124 { |
| 125 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 125 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 126 } | 126 } |
| 127 | 127 |
| 128 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 128 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 129 { | 129 { |
| 130 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 130 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 131 } | 131 } |
| 132 | 132 |
| 133 v8::Handle<v8::Object> wrap(TestSpecialOperationsNotEnumerable* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
| 134 { |
| 135 ASSERT(impl); |
| 136 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsNotEnumerable>(
impl, isolate)); |
| 137 return V8TestSpecialOperationsNotEnumerable::createWrapper(impl, creationCon
text, isolate); |
| 138 } |
| 139 |
| 133 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::createWrapper(PassR
efPtr<TestSpecialOperationsNotEnumerable> impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) | 140 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::createWrapper(PassR
efPtr<TestSpecialOperationsNotEnumerable> impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) |
| 134 { | 141 { |
| 135 ASSERT(impl); | 142 ASSERT(impl); |
| 136 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsNotEnumerable>(
impl.get(), isolate)); | 143 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsNotEnumerable>(
impl.get(), isolate)); |
| 137 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 144 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 138 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 145 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
| 139 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 146 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
| 140 // the same object de-ref functions, though, so use that as the basis of
the check. | 147 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 141 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 148 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
| 142 } | 149 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 155 fromInternalPointer(object)->deref(); | 162 fromInternalPointer(object)->deref(); |
| 156 } | 163 } |
| 157 | 164 |
| 158 template<> | 165 template<> |
| 159 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 166 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 160 { | 167 { |
| 161 return toV8(impl, creationContext, isolate); | 168 return toV8(impl, creationContext, isolate); |
| 162 } | 169 } |
| 163 | 170 |
| 164 } // namespace WebCore | 171 } // namespace WebCore |
| OLD | NEW |