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

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

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 #ifndef V8TestInterfaceEventConstructor_h 7 #ifndef V8TestInterfaceEventConstructor_h
8 #define V8TestInterfaceEventConstructor_h 8 #define V8TestInterfaceEventConstructor_h
9 9
10 #include "bindings/tests/idls/TestInterfaceEventConstructor.h" 10 #include "bindings/tests/idls/TestInterfaceEventConstructor.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return static_cast<TestInterfaceEventConstructor*>(V8Event::fromInternal Pointer(object)); 46 return static_cast<TestInterfaceEventConstructor*>(V8Event::fromInternal Pointer(object));
47 } 47 }
48 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEventConstructor*, v8::Isolate*) { } 48 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEventConstructor*, v8::Isolate*) { }
49 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 49 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
50 50
51 private: 51 private:
52 friend v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor*, v8::Handl e<v8::Object> creationContext, v8::Isolate*); 52 friend v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor*, v8::Handl e<v8::Object> creationContext, v8::Isolate*);
53 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestInter faceEventConstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 53 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestInter faceEventConstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
54 }; 54 };
55 55
56 inline v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 56 v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Handle<v8:: Object> creationContext, v8::Isolate*);
57 {
58 ASSERT(impl);
59 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl, isolate));
60 return V8TestInterfaceEventConstructor::createWrapper(impl, creationContext, isolate);
61 }
62 57
63 inline v8::Handle<v8::Value> toV8(TestInterfaceEventConstructor* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate) 58 inline v8::Handle<v8::Value> toV8(TestInterfaceEventConstructor* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate)
64 { 59 {
65 if (UNLIKELY(!impl)) 60 if (UNLIKELY(!impl))
66 return v8::Null(isolate); 61 return v8::Null(isolate);
67 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceEven tConstructor>(impl, isolate); 62 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceEven tConstructor>(impl, isolate);
68 if (!wrapper.IsEmpty()) 63 if (!wrapper.IsEmpty())
69 return wrapper; 64 return wrapper;
70 return wrap(impl, creationContext, isolate); 65 return wrap(impl, creationContext, isolate);
71 } 66 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 template<class CallbackInfo, class Wrappable> 125 template<class CallbackInfo, class Wrappable>
131 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceEventConstructor> impl, Wrappable* wrappable) 126 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceEventConstructor> impl, Wrappable* wrappable)
132 { 127 {
133 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 128 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
134 } 129 }
135 130
136 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 131 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
137 132
138 } 133 }
139 #endif // V8TestInterfaceEventConstructor_h 134 #endif // V8TestInterfaceEventConstructor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698