Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: Source/bindings/tests/results/V8TestOverloadedConstructors.cpp

Issue 18316003: Revert "Use V8 implementation of ArrayBuffer in Blink." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 #include "V8TestOverloadedConstructors.h" 22 #include "V8TestOverloadedConstructors.h"
23 23
24 #include "RuntimeEnabledFeatures.h" 24 #include "RuntimeEnabledFeatures.h"
25 #include "V8ArrayBuffer.h"
25 #include "V8ArrayBufferView.h" 26 #include "V8ArrayBufferView.h"
26 #include "V8Blob.h" 27 #include "V8Blob.h"
27 #include "bindings/v8/ScriptController.h" 28 #include "bindings/v8/ScriptController.h"
28 #include "bindings/v8/V8Binding.h" 29 #include "bindings/v8/V8Binding.h"
29 #include "bindings/v8/V8DOMConfiguration.h" 30 #include "bindings/v8/V8DOMConfiguration.h"
30 #include "bindings/v8/V8DOMWrapper.h" 31 #include "bindings/v8/V8DOMWrapper.h"
31 #include "bindings/v8/V8ObjectConstructor.h" 32 #include "bindings/v8/V8ObjectConstructor.h"
32 #include "bindings/v8/custom/V8ArrayBufferCustom.h"
33 #include "core/dom/ContextFeatures.h" 33 #include "core/dom/ContextFeatures.h"
34 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
35 #include "core/dom/ExceptionCode.h" 35 #include "core/dom/ExceptionCode.h"
36 #include "core/page/Frame.h" 36 #include "core/page/Frame.h"
37 #include "core/platform/chromium/TraceEvent.h" 37 #include "core/platform/chromium/TraceEvent.h"
38 #include "wtf/UnusedParam.h" 38 #include "wtf/UnusedParam.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 static void initializeScriptWrappableForInterface(TestOverloadedConstructors* ob ject) 42 static void initializeScriptWrappableForInterface(TestOverloadedConstructors* ob ject)
(...skipping 17 matching lines...) Expand all
60 60
61 namespace WebCore { 61 namespace WebCore {
62 WrapperTypeInfo V8TestOverloadedConstructors::info = { V8TestOverloadedConstruct ors::GetTemplate, V8TestOverloadedConstructors::derefObject, 0, 0, 0, V8TestOver loadedConstructors::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr ototype }; 62 WrapperTypeInfo V8TestOverloadedConstructors::info = { V8TestOverloadedConstruct ors::GetTemplate, V8TestOverloadedConstructors::derefObject, 0, 0, 0, V8TestOver loadedConstructors::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr ototype };
63 63
64 namespace TestOverloadedConstructorsV8Internal { 64 namespace TestOverloadedConstructorsV8Internal {
65 65
66 template <typename T> void V8_USE(T) { } 66 template <typename T> void V8_USE(T) { }
67 67
68 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& args) 68 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& args)
69 { 69 {
70 V8TRYCATCH_VOID(ArrayBuffer*, arrayBuffer, args[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(args[0])) : 0); 70 V8TRYCATCH_VOID(ArrayBuffer*, arrayBuffer, V8ArrayBuffer::HasInstance(args[0 ], args.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBuffer::toNative(v8 ::Handle<v8::Object>::Cast(args[0])) : 0);
71 71
72 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create (arrayBuffer); 72 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create (arrayBuffer);
73 v8::Handle<v8::Object> wrapper = args.Holder(); 73 v8::Handle<v8::Object> wrapper = args.Holder();
74 74
75 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); 75 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
76 args.GetReturnValue().Set(wrapper); 76 args.GetReturnValue().Set(wrapper);
77 } 77 }
78 78
79 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& args) 79 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& args)
80 { 80 {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 installPerContextProperties(wrapper, impl.get(), isolate); 207 installPerContextProperties(wrapper, impl.get(), isolate);
208 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 208 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent);
209 return wrapper; 209 return wrapper;
210 } 210 }
211 void V8TestOverloadedConstructors::derefObject(void* object) 211 void V8TestOverloadedConstructors::derefObject(void* object)
212 { 212 {
213 static_cast<TestOverloadedConstructors*>(object)->deref(); 213 static_cast<TestOverloadedConstructors*>(object)->deref();
214 } 214 }
215 215
216 } // namespace WebCore 216 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698