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

Side by Side Diff: Source/bindings/tests/results/V8SVGTestInterface.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 V8SVGTestInterface_h 7 #ifndef V8SVGTestInterface_h
8 #define V8SVGTestInterface_h 8 #define V8SVGTestInterface_h
9 9
10 #include "bindings/tests/idls/SVGTestInterface.h" 10 #include "bindings/tests/idls/SVGTestInterface.h"
(...skipping 27 matching lines...) Expand all
38 return static_cast<SVGTestInterface*>(object); 38 return static_cast<SVGTestInterface*>(object);
39 } 39 }
40 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, SVGTe stInterface*, v8::Isolate*) { } 40 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, SVGTe stInterface*, v8::Isolate*) { }
41 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 41 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
42 42
43 private: 43 private:
44 friend v8::Handle<v8::Object> wrap(SVGTestInterface*, v8::Handle<v8::Object> creationContext, v8::Isolate*); 44 friend v8::Handle<v8::Object> wrap(SVGTestInterface*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
45 static v8::Handle<v8::Object> createWrapper(PassRefPtr<SVGTestInterface>, v8 ::Handle<v8::Object> creationContext, v8::Isolate*); 45 static v8::Handle<v8::Object> createWrapper(PassRefPtr<SVGTestInterface>, v8 ::Handle<v8::Object> creationContext, v8::Isolate*);
46 }; 46 };
47 47
48 inline v8::Handle<v8::Object> wrap(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 48 v8::Handle<v8::Object> wrap(SVGTestInterface* impl, v8::Handle<v8::Object> creat ionContext, v8::Isolate*);
49 {
50 ASSERT(impl);
51 ASSERT(!DOMDataStore::containsWrapper<V8SVGTestInterface>(impl, isolate));
52 return V8SVGTestInterface::createWrapper(impl, creationContext, isolate);
53 }
54 49
55 inline v8::Handle<v8::Value> toV8(SVGTestInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 50 inline v8::Handle<v8::Value> toV8(SVGTestInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
56 { 51 {
57 if (UNLIKELY(!impl)) 52 if (UNLIKELY(!impl))
58 return v8::Null(isolate); 53 return v8::Null(isolate);
59 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8SVGTestInterface> (impl, isolate); 54 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8SVGTestInterface> (impl, isolate);
60 if (!wrapper.IsEmpty()) 55 if (!wrapper.IsEmpty())
61 return wrapper; 56 return wrapper;
62 return wrap(impl, creationContext, isolate); 57 return wrap(impl, creationContext, isolate);
63 } 58 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 115 }
121 116
122 template<class CallbackInfo, class Wrappable> 117 template<class CallbackInfo, class Wrappable>
123 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<SV GTestInterface> impl, Wrappable* wrappable) 118 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<SV GTestInterface> impl, Wrappable* wrappable)
124 { 119 {
125 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 120 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
126 } 121 }
127 122
128 } 123 }
129 #endif // V8SVGTestInterface_h 124 #endif // V8SVGTestInterface_h
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/results/V8SVGTestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698