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

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

Issue 331593006: Decrease the binary size by 50 KB by outlining V8XXX::wrap() (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 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceEventTarget.h" 8 #include "V8TestInterfaceEventTarget.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toNativeWithTypeCheck(v8:: Isolate* isolate, v8::Handle<v8::Value> value) 136 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toNativeWithTypeCheck(v8:: Isolate* isolate, v8::Handle<v8::Value> value)
137 { 137 {
138 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0; 138 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0;
139 } 139 }
140 140
141 EventTarget* V8TestInterfaceEventTarget::toEventTarget(v8::Handle<v8::Object> ob ject) 141 EventTarget* V8TestInterfaceEventTarget::toEventTarget(v8::Handle<v8::Object> ob ject)
142 { 142 {
143 return toNative(object); 143 return toNative(object);
144 } 144 }
145 145
146 v8::Handle<v8::Object> wrap(TestInterfaceEventTarget* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate)
147 {
148 ASSERT(impl);
149 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventTarget>(impl, isol ate));
150 return V8TestInterfaceEventTarget::createWrapper(impl, creationContext, isol ate);
151 }
152
146 v8::Handle<v8::Object> V8TestInterfaceEventTarget::createWrapper(PassRefPtrWillB eRawPtr<TestInterfaceEventTarget> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 153 v8::Handle<v8::Object> V8TestInterfaceEventTarget::createWrapper(PassRefPtrWillB eRawPtr<TestInterfaceEventTarget> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
147 { 154 {
148 ASSERT(impl); 155 ASSERT(impl);
149 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventTarget>(impl.get() , isolate)); 156 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventTarget>(impl.get() , isolate));
150 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { 157 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
151 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo(); 158 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo();
152 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have 159 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have
153 // the same object de-ref functions, though, so use that as the basis of the check. 160 // the same object de-ref functions, though, so use that as the basis of the check.
154 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction); 161 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction);
155 } 162 }
(...skipping 14 matching lines...) Expand all
170 #endif // !ENABLE(OILPAN) 177 #endif // !ENABLE(OILPAN)
171 } 178 }
172 179
173 template<> 180 template<>
174 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 181 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
175 { 182 {
176 return toV8(impl, creationContext, isolate); 183 return toV8(impl, creationContext, isolate);
177 } 184 }
178 185
179 } // namespace WebCore 186 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698