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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.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 "V8TestInterfaceWillBeGarbageCollected.h" 8 #include "V8TestInterfaceWillBeGarbageCollected.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 TestInterfaceWillBeGarbageCollected* V8TestInterfaceWillBeGarbageCollected::toNa tiveWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) 241 TestInterfaceWillBeGarbageCollected* V8TestInterfaceWillBeGarbageCollected::toNa tiveWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
242 { 242 {
243 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0; 243 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0;
244 } 244 }
245 245
246 EventTarget* V8TestInterfaceWillBeGarbageCollected::toEventTarget(v8::Handle<v8: :Object> object) 246 EventTarget* V8TestInterfaceWillBeGarbageCollected::toEventTarget(v8::Handle<v8: :Object> object)
247 { 247 {
248 return toNative(object); 248 return toNative(object);
249 } 249 }
250 250
251 v8::Handle<v8::Object> wrap(TestInterfaceWillBeGarbageCollected* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate)
252 {
253 ASSERT(impl);
254 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceWillBeGarbageCollected> (impl, isolate));
255 return V8TestInterfaceWillBeGarbageCollected::createWrapper(impl, creationCo ntext, isolate);
256 }
257
251 v8::Handle<v8::Object> V8TestInterfaceWillBeGarbageCollected::createWrapper(Pass RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate) 258 v8::Handle<v8::Object> V8TestInterfaceWillBeGarbageCollected::createWrapper(Pass RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate)
252 { 259 {
253 ASSERT(impl); 260 ASSERT(impl);
254 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceWillBeGarbageCollected> (impl.get(), isolate)); 261 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceWillBeGarbageCollected> (impl.get(), isolate));
255 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { 262 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
256 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo(); 263 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo();
257 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have 264 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have
258 // the same object de-ref functions, though, so use that as the basis of the check. 265 // the same object de-ref functions, though, so use that as the basis of the check.
259 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction); 266 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction);
260 } 267 }
(...skipping 14 matching lines...) Expand all
275 #endif // !ENABLE(OILPAN) 282 #endif // !ENABLE(OILPAN)
276 } 283 }
277 284
278 template<> 285 template<>
279 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate) 286 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate)
280 { 287 {
281 return toV8(impl, creationContext, isolate); 288 return toV8(impl, creationContext, isolate);
282 } 289 }
283 290
284 } // namespace WebCore 291 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h ('k') | Source/bindings/tests/results/V8TestNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698