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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor2.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 "V8TestInterfaceConstructor2.h" 8 #include "V8TestInterfaceConstructor2.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain (v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 231 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain (v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
232 { 232 {
233 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 233 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
234 } 234 }
235 235
236 TestInterfaceConstructor2* V8TestInterfaceConstructor2::toNativeWithTypeCheck(v8 ::Isolate* isolate, v8::Handle<v8::Value> value) 236 TestInterfaceConstructor2* V8TestInterfaceConstructor2::toNativeWithTypeCheck(v8 ::Isolate* isolate, v8::Handle<v8::Value> value)
237 { 237 {
238 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0; 238 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0;
239 } 239 }
240 240
241 v8::Handle<v8::Object> wrap(TestInterfaceConstructor2* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate)
242 {
243 ASSERT(impl);
244 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor2>(impl, iso late));
245 return V8TestInterfaceConstructor2::createWrapper(impl, creationContext, iso late);
246 }
247
241 v8::Handle<v8::Object> V8TestInterfaceConstructor2::createWrapper(PassRefPtr<Tes tInterfaceConstructor2> impl, v8::Handle<v8::Object> creationContext, v8::Isolat e* isolate) 248 v8::Handle<v8::Object> V8TestInterfaceConstructor2::createWrapper(PassRefPtr<Tes tInterfaceConstructor2> impl, v8::Handle<v8::Object> creationContext, v8::Isolat e* isolate)
242 { 249 {
243 ASSERT(impl); 250 ASSERT(impl);
244 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor2>(impl.get( ), isolate)); 251 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor2>(impl.get( ), isolate));
245 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { 252 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
246 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo(); 253 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo();
247 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have 254 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have
248 // the same object de-ref functions, though, so use that as the basis of the check. 255 // the same object de-ref functions, though, so use that as the basis of the check.
249 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction); 256 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction);
250 } 257 }
(...skipping 12 matching lines...) Expand all
263 fromInternalPointer(object)->deref(); 270 fromInternalPointer(object)->deref();
264 } 271 }
265 272
266 template<> 273 template<>
267 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 274 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
268 { 275 {
269 return toV8(impl, creationContext, isolate); 276 return toV8(impl, creationContext, isolate);
270 } 277 }
271 278
272 } // namespace WebCore 279 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698