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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 9420 matching lines...) Expand 10 before | Expand all | Expand 10 after
9431 9431
9432 void V8TestObject::installPerContextEnabledMethods(v8::Handle<v8::Object> protot ypeTemplate, v8::Isolate* isolate) 9432 void V8TestObject::installPerContextEnabledMethods(v8::Handle<v8::Object> protot ypeTemplate, v8::Isolate* isolate)
9433 { 9433 {
9434 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 9434 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
9435 9435
9436 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo ntext()); 9436 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo ntext());
9437 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) 9437 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context)))
9438 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnable dVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 9438 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnable dVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
9439 } 9439 }
9440 9440
9441 v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> creationCon text, v8::Isolate* isolate)
9442 {
9443 ASSERT(impl);
9444 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl, isolate));
9445 return V8TestObject::createWrapper(impl, creationContext, isolate);
9446 }
9447
9441 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObject> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 9448 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObject> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
9442 { 9449 {
9443 ASSERT(impl); 9450 ASSERT(impl);
9444 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl.get(), isolate)); 9451 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl.get(), isolate));
9445 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { 9452 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
9446 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo(); 9453 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo();
9447 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have 9454 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have
9448 // the same object de-ref functions, though, so use that as the basis of the check. 9455 // the same object de-ref functions, though, so use that as the basis of the check.
9449 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction); 9456 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction);
9450 } 9457 }
(...skipping 12 matching lines...) Expand all
9463 fromInternalPointer(object)->deref(); 9470 fromInternalPointer(object)->deref();
9464 } 9471 }
9465 9472
9466 template<> 9473 template<>
9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9474 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9468 { 9475 {
9469 return toV8(impl, creationContext, isolate); 9476 return toV8(impl, creationContext, isolate);
9470 } 9477 }
9471 9478
9472 } // namespace WebCore 9479 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.h ('k') | Source/bindings/tests/results/V8TestSpecialOperations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698