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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp

Issue 651713002: Oilpan: DOM wrappers don't need to keep persistent handles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 // 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 "V8TestInterfaceConstructor.h" 8 #include "V8TestInterfaceConstructor.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
11 #include "bindings/core/v8/ExceptionState.h" 11 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/V8DOMConfiguration.h" 12 #include "bindings/core/v8/V8DOMConfiguration.h"
13 #include "bindings/core/v8/V8HiddenValue.h" 13 #include "bindings/core/v8/V8HiddenValue.h"
14 #include "bindings/core/v8/V8ObjectConstructor.h" 14 #include "bindings/core/v8/V8ObjectConstructor.h"
15 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 15 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
16 #include "core/dom/ContextFeatures.h" 16 #include "core/dom/ContextFeatures.h"
17 #include "core/dom/Document.h" 17 #include "core/dom/Document.h"
18 #include "core/frame/LocalDOMWindow.h" 18 #include "core/frame/LocalDOMWindow.h"
19 #include "core/frame/UseCounter.h" 19 #include "core/frame/UseCounter.h"
20 #include "platform/RuntimeEnabledFeatures.h" 20 #include "platform/RuntimeEnabledFeatures.h"
21 #include "platform/TraceEvent.h" 21 #include "platform/TraceEvent.h"
22 #include "wtf/GetPtr.h" 22 #include "wtf/GetPtr.h"
23 #include "wtf/RefPtr.h" 23 #include "wtf/RefPtr.h"
24 24
25 namespace blink { 25 namespace blink {
26 26
27 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor:: refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor:: createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructor::installConditionall yEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProperti es, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClass Id, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 27 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor:: refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor:: trace, 0, 0, 0, V8TestInterfaceConstructor::installConditionallyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProperties, 0, WrapperTyp eInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeIn fo::Independent, WrapperTypeInfo::RefCountedObject };
28 28
29 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eConstructor.h. 29 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eConstructor.h.
30 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 30 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
31 // bindings/core/v8/ScriptWrappable.h. 31 // bindings/core/v8/ScriptWrappable.h.
32 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter faceConstructor::wrapperTypeInfo; 32 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter faceConstructor::wrapperTypeInfo;
33 33
34 namespace TestInterfaceConstructorV8Internal { 34 namespace TestInterfaceConstructorV8Internal {
35 35
36 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) 36 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
37 { 37 {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 202 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
203 exceptionState.throwIfNeeded(); 203 exceptionState.throwIfNeeded();
204 return; 204 return;
205 } 205 }
206 exceptionState.throwTypeError("No matching constructor signature."); 206 exceptionState.throwTypeError("No matching constructor signature.");
207 exceptionState.throwIfNeeded(); 207 exceptionState.throwIfNeeded();
208 } 208 }
209 209
210 } // namespace TestInterfaceConstructorV8Internal 210 } // namespace TestInterfaceConstructorV8Internal
211 211
212 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test InterfaceConstructor::createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructo r::installConditionallyEnabledMethods, V8TestInterfaceConstructor::installCondit ionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrappe rTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCoun tedObject }; 212 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test InterfaceConstructor::trace, 0, 0, 0, V8TestInterfaceConstructor::installConditi onallyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledPro perties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Object ClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
213 213
214 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) 214 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall backInfo<v8::Value>& info)
215 { 215 {
216 if (!info.IsConstructCall()) { 216 if (!info.IsConstructCall()) {
217 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("Audio"), info.GetIsolate()); 217 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("Audio"), info.GetIsolate());
218 return; 218 return;
219 } 219 }
220 220
221 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 221 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
222 v8SetReturnValue(info, info.Holder()); 222 v8SetReturnValue(info, info.Holder());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 void V8TestInterfaceConstructor::refObject(ScriptWrappableBase* internalPointer) 339 void V8TestInterfaceConstructor::refObject(ScriptWrappableBase* internalPointer)
340 { 340 {
341 internalPointer->toImpl<TestInterfaceConstructor>()->ref(); 341 internalPointer->toImpl<TestInterfaceConstructor>()->ref();
342 } 342 }
343 343
344 void V8TestInterfaceConstructor::derefObject(ScriptWrappableBase* internalPointe r) 344 void V8TestInterfaceConstructor::derefObject(ScriptWrappableBase* internalPointe r)
345 { 345 {
346 internalPointer->toImpl<TestInterfaceConstructor>()->deref(); 346 internalPointer->toImpl<TestInterfaceConstructor>()->deref();
347 } 347 }
348 348
349 WrapperPersistentNode* V8TestInterfaceConstructor::createPersistentHandle(Script WrappableBase* internalPointer)
350 {
351 ASSERT_NOT_REACHED();
352 return 0;
353 }
354
355 template<> 349 template<>
356 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 350 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
357 { 351 {
358 return toV8(impl, creationContext, isolate); 352 return toV8(impl, creationContext, isolate);
359 } 353 }
360 354
361 } // namespace blink 355 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698