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 "V8TestException.h" | 8 #include "V8TestException.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 v8::Handle<v8::Object> V8TestException::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) | 134 v8::Handle<v8::Object> V8TestException::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) |
135 { | 135 { |
136 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 136 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
137 } | 137 } |
138 | 138 |
139 TestException* V8TestException::toNativeWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) | 139 TestException* V8TestException::toNativeWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) |
140 { | 140 { |
141 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 141 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
142 } | 142 } |
143 | 143 |
| 144 v8::Handle<v8::Object> wrap(TestException* impl, v8::Handle<v8::Object> creation
Context, v8::Isolate* isolate) |
| 145 { |
| 146 ASSERT(impl); |
| 147 ASSERT(!DOMDataStore::containsWrapper<V8TestException>(impl, isolate)); |
| 148 return V8TestException::createWrapper(impl, creationContext, isolate); |
| 149 } |
| 150 |
144 v8::Handle<v8::Object> V8TestException::createWrapper(PassRefPtr<TestException>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 151 v8::Handle<v8::Object> V8TestException::createWrapper(PassRefPtr<TestException>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
145 { | 152 { |
146 ASSERT(impl); | 153 ASSERT(impl); |
147 ASSERT(!DOMDataStore::containsWrapper<V8TestException>(impl.get(), isolate))
; | 154 ASSERT(!DOMDataStore::containsWrapper<V8TestException>(impl.get(), isolate))
; |
148 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 155 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
149 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 156 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
150 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 157 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
151 // the same object de-ref functions, though, so use that as the basis of
the check. | 158 // the same object de-ref functions, though, so use that as the basis of
the check. |
152 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 159 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
153 } | 160 } |
(...skipping 12 matching lines...) Expand all Loading... |
166 fromInternalPointer(object)->deref(); | 173 fromInternalPointer(object)->deref(); |
167 } | 174 } |
168 | 175 |
169 template<> | 176 template<> |
170 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 177 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
171 { | 178 { |
172 return toV8(impl, creationContext, isolate); | 179 return toV8(impl, creationContext, isolate); |
173 } | 180 } |
174 | 181 |
175 } // namespace WebCore | 182 } // namespace WebCore |
OLD | NEW |