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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h

Issue 314603003: Don't add extra 8 byte to DOM wrappers in non-oilpan builds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 #ifndef V8TestInterfaceWillBeGarbageCollected_h 7 #ifndef V8TestInterfaceWillBeGarbageCollected_h
8 #define V8TestInterfaceWillBeGarbageCollected_h 8 #define V8TestInterfaceWillBeGarbageCollected_h
9 9
10 #include "bindings/tests/idls/TestInterfaceWillBeGarbageCollected.h" 10 #include "bindings/tests/idls/TestInterfaceWillBeGarbageCollected.h"
(...skipping 19 matching lines...) Expand all
30 static TestInterfaceWillBeGarbageCollected* toNative(v8::Handle<v8::Object> object) 30 static TestInterfaceWillBeGarbageCollected* toNative(v8::Handle<v8::Object> object)
31 { 31 {
32 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 32 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
33 } 33 }
34 static TestInterfaceWillBeGarbageCollected* toNativeWithTypeCheck(v8::Isolat e*, v8::Handle<v8::Value>); 34 static TestInterfaceWillBeGarbageCollected* toNativeWithTypeCheck(v8::Isolat e*, v8::Handle<v8::Value>);
35 static const WrapperTypeInfo wrapperTypeInfo; 35 static const WrapperTypeInfo wrapperTypeInfo;
36 static void derefObject(void*); 36 static void derefObject(void*);
37 static EventTarget* toEventTarget(v8::Handle<v8::Object>); 37 static EventTarget* toEventTarget(v8::Handle<v8::Object>);
38 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 38 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
39 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + 0; 39 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + 0;
40 #if ENABLE(OILPAN)
40 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 1; 41 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 1;
41 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 2 ; 42 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1 + 1;
43 #else
44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1 ;
45 #endif
42 static inline void* toInternalPointer(TestInterfaceWillBeGarbageCollected* i mpl) 46 static inline void* toInternalPointer(TestInterfaceWillBeGarbageCollected* i mpl)
43 { 47 {
44 return V8EventTarget::toInternalPointer(impl); 48 return V8EventTarget::toInternalPointer(impl);
45 } 49 }
46 50
47 static inline TestInterfaceWillBeGarbageCollected* fromInternalPointer(void* object) 51 static inline TestInterfaceWillBeGarbageCollected* fromInternalPointer(void* object)
48 { 52 {
49 return static_cast<TestInterfaceWillBeGarbageCollected*>(V8EventTarget:: fromInternalPointer(object)); 53 return static_cast<TestInterfaceWillBeGarbageCollected*>(V8EventTarget:: fromInternalPointer(object));
50 } 54 }
51 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceWillBeGarbageCollected*, v8::Isolate*) { } 55 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceWillBeGarbageCollected*, v8::Isolate*) { }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 135 }
132 136
133 template<class CallbackInfo, class Wrappable> 137 template<class CallbackInfo, class Wrappable>
134 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceWillBeGarbageCollected> impl, Wrappable* wrappable) 138 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceWillBeGarbageCollected> impl, Wrappable* wrappable)
135 { 139 {
136 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 140 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
137 } 141 }
138 142
139 } 143 }
140 #endif // V8TestInterfaceWillBeGarbageCollected_h 144 #endif // V8TestInterfaceWillBeGarbageCollected_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698