| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "RuntimeEnabledFeatures.h" | 24 #include "RuntimeEnabledFeatures.h" |
| 25 #include "V8ArrayBufferView.h" | 25 #include "V8ArrayBufferView.h" |
| 26 #include "V8Float32Array.h" | 26 #include "V8Float32Array.h" |
| 27 #include "V8Int32Array.h" | 27 #include "V8Int32Array.h" |
| 28 #include "bindings/v8/ScriptController.h" | 28 #include "bindings/v8/ScriptController.h" |
| 29 #include "bindings/v8/V8Binding.h" | 29 #include "bindings/v8/V8Binding.h" |
| 30 #include "bindings/v8/V8DOMConfiguration.h" | 30 #include "bindings/v8/V8DOMConfiguration.h" |
| 31 #include "bindings/v8/V8DOMWrapper.h" | 31 #include "bindings/v8/V8DOMWrapper.h" |
| 32 #include "bindings/v8/V8ObjectConstructor.h" | 32 #include "bindings/v8/V8ObjectConstructor.h" |
| 33 #include "bindings/v8/custom/V8ArrayBufferCustom.h" |
| 33 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" | 34 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" |
| 34 #include "core/dom/ContextFeatures.h" | 35 #include "core/dom/ContextFeatures.h" |
| 35 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
| 36 #include "core/dom/ExceptionCode.h" | 37 #include "core/dom/ExceptionCode.h" |
| 37 #include "core/page/Frame.h" | 38 #include "core/page/Frame.h" |
| 38 #include "wtf/GetPtr.h" | 39 #include "wtf/GetPtr.h" |
| 39 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.h" |
| 40 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
| 41 #include "wtf/UnusedParam.h" | 42 #include "wtf/UnusedParam.h" |
| 42 | 43 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 188 |
| 188 v8::Handle<v8::Object> V8Float64Array::createWrapper(PassRefPtr<Float64Array> im
pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 189 v8::Handle<v8::Object> V8Float64Array::createWrapper(PassRefPtr<Float64Array> im
pl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 189 { | 190 { |
| 190 ASSERT(impl.get()); | 191 ASSERT(impl.get()); |
| 191 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 192 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); |
| 192 ASSERT(static_cast<void*>(static_cast<ArrayBufferView*>(impl.get())) == stat
ic_cast<void*>(impl.get())); | 193 ASSERT(static_cast<void*>(static_cast<ArrayBufferView*>(impl.get())) == stat
ic_cast<void*>(impl.get())); |
| 193 | 194 |
| 194 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 195 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); |
| 195 if (UNLIKELY(wrapper.IsEmpty())) | 196 if (UNLIKELY(wrapper.IsEmpty())) |
| 196 return wrapper; | 197 return wrapper; |
| 197 | 198 if (!impl->buffer()->hasDeallocationObserver()) { |
| 199 v8::V8::AdjustAmountOfExternalAllocatedMemory(impl->buffer()->byteLength
()); |
| 200 impl->buffer()->setDeallocationObserver(V8ArrayBufferDeallocationObserve
r::instance()); |
| 201 } |
| 198 installPerContextProperties(wrapper, impl.get(), isolate); | 202 installPerContextProperties(wrapper, impl.get(), isolate); |
| 199 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 203 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 200 return wrapper; | 204 return wrapper; |
| 201 } | 205 } |
| 202 void V8Float64Array::derefObject(void* object) | 206 void V8Float64Array::derefObject(void* object) |
| 203 { | 207 { |
| 204 static_cast<Float64Array*>(object)->deref(); | 208 static_cast<Float64Array*>(object)->deref(); |
| 205 } | 209 } |
| 206 | 210 |
| 207 } // namespace WebCore | 211 } // namespace WebCore |
| OLD | NEW |