| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 { | 203 { |
| 204 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 204 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
| 205 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 205 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
| 206 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 206 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 207 } | 207 } |
| 208 | 208 |
| 209 | 209 |
| 210 v8::Handle<v8::Object> V8Float64Array::createWrapper(PassRefPtr<Float64Array> im
pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 210 v8::Handle<v8::Object> V8Float64Array::createWrapper(PassRefPtr<Float64Array> im
pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 211 { | 211 { |
| 212 ASSERT(impl.get()); | 212 ASSERT(impl.get()); |
| 213 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 213 ASSERT(DOMDataStore::getWrapper<V8Float64Array>(impl.get(), isolate).IsEmpty
()); |
| 214 ASSERT(static_cast<void*>(static_cast<ArrayBufferView*>(impl.get())) == stat
ic_cast<void*>(impl.get())); | |
| 215 | 214 |
| 216 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 215 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
| 217 if (UNLIKELY(wrapper.IsEmpty())) | 216 if (UNLIKELY(wrapper.IsEmpty())) |
| 218 return wrapper; | 217 return wrapper; |
| 219 if (!impl->buffer()->hasDeallocationObserver()) { | 218 if (!impl->buffer()->hasDeallocationObserver()) { |
| 220 v8::V8::AdjustAmountOfExternalAllocatedMemory(impl->buffer()->byteLength
()); | 219 v8::V8::AdjustAmountOfExternalAllocatedMemory(impl->buffer()->byteLength
()); |
| 221 impl->buffer()->setDeallocationObserver(V8ArrayBufferDeallocationObserve
r::instance()); | 220 impl->buffer()->setDeallocationObserver(V8ArrayBufferDeallocationObserve
r::instance()); |
| 222 } | 221 } |
| 223 installPerContextProperties(wrapper, impl.get(), isolate); | 222 installPerContextProperties(wrapper, impl.get(), isolate); |
| 224 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 223 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
| 225 return wrapper; | 224 return wrapper; |
| 226 } | 225 } |
| 227 void V8Float64Array::derefObject(void* object) | 226 void V8Float64Array::derefObject(void* object) |
| 228 { | 227 { |
| 229 static_cast<Float64Array*>(object)->deref(); | 228 fromInternalPointer(object)->deref(); |
| 230 } | 229 } |
| 231 | 230 |
| 232 } // namespace WebCore | 231 } // namespace WebCore |
| OLD | NEW |