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 "V8TestSpecialOperations.h" | 8 #include "V8TestSpecialOperations.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 bool V8TestSpecialOperations::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) | 188 bool V8TestSpecialOperations::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) |
189 { | 189 { |
190 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 190 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
191 } | 191 } |
192 | 192 |
193 v8::Handle<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) | 193 v8::Handle<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) |
194 { | 194 { |
195 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 195 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
196 } | 196 } |
197 | 197 |
| 198 |
198 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) | 199 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) |
199 { | 200 { |
200 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestSpecialOperations>() : 0; | 201 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
201 } | 202 } |
202 | 203 |
203 | 204 |
204 void V8TestSpecialOperations::refObject(ScriptWrappableBase* internalPointer) | 205 void V8TestSpecialOperations::refObject(ScriptWrappableBase* internalPointer) |
205 { | 206 { |
206 internalPointer->toImpl<TestSpecialOperations>()->ref(); | 207 internalPointer->toImpl<TestSpecialOperations>()->ref(); |
207 } | 208 } |
208 | 209 |
209 void V8TestSpecialOperations::derefObject(ScriptWrappableBase* internalPointer) | 210 void V8TestSpecialOperations::derefObject(ScriptWrappableBase* internalPointer) |
210 { | 211 { |
211 internalPointer->toImpl<TestSpecialOperations>()->deref(); | 212 internalPointer->toImpl<TestSpecialOperations>()->deref(); |
212 } | 213 } |
213 | 214 |
214 WrapperPersistentNode* V8TestSpecialOperations::createPersistentHandle(ScriptWra
ppableBase* internalPointer) | 215 WrapperPersistentNode* V8TestSpecialOperations::createPersistentHandle(ScriptWra
ppableBase* internalPointer) |
215 { | 216 { |
216 ASSERT_NOT_REACHED(); | 217 ASSERT_NOT_REACHED(); |
217 return 0; | 218 return 0; |
218 } | 219 } |
219 | 220 |
220 template<> | 221 template<> |
221 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 222 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
222 { | 223 { |
223 return toV8(impl, creationContext, isolate); | 224 return toV8(impl, creationContext, isolate); |
224 } | 225 } |
225 | 226 |
226 } // namespace blink | 227 } // namespace blink |
OLD | NEW |