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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor3.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 V8TestInterfaceConstructor3_h 7 #ifndef V8TestInterfaceConstructor3_h
8 #define V8TestInterfaceConstructor3_h 8 #define V8TestInterfaceConstructor3_h
9 9
10 #include "bindings/tests/idls/TestInterfaceConstructor3.h" 10 #include "bindings/tests/idls/TestInterfaceConstructor3.h"
(...skipping 28 matching lines...) Expand all
39 return static_cast<TestInterfaceConstructor3*>(object); 39 return static_cast<TestInterfaceConstructor3*>(object);
40 } 40 }
41 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceConstructor3*, v8::Isolate*) { } 41 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceConstructor3*, v8::Isolate*) { }
42 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 42 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
43 43
44 private: 44 private:
45 friend v8::Handle<v8::Object> wrap(TestInterfaceConstructor3*, v8::Handle<v8 ::Object> creationContext, v8::Isolate*); 45 friend v8::Handle<v8::Object> wrap(TestInterfaceConstructor3*, v8::Handle<v8 ::Object> creationContext, v8::Isolate*);
46 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceConstruc tor3>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 46 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceConstruc tor3>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
47 }; 47 };
48 48
49 inline v8::Handle<v8::Object> wrap(TestInterfaceConstructor3* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 49 v8::Handle<v8::Object> wrap(TestInterfaceConstructor3* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate*);
50 {
51 ASSERT(impl);
52 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor3>(impl, iso late));
53 return V8TestInterfaceConstructor3::createWrapper(impl, creationContext, iso late);
54 }
55 50
56 inline v8::Handle<v8::Value> toV8(TestInterfaceConstructor3* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 51 inline v8::Handle<v8::Value> toV8(TestInterfaceConstructor3* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
57 { 52 {
58 if (UNLIKELY(!impl)) 53 if (UNLIKELY(!impl))
59 return v8::Null(isolate); 54 return v8::Null(isolate);
60 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceCons tructor3>(impl, isolate); 55 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceCons tructor3>(impl, isolate);
61 if (!wrapper.IsEmpty()) 56 if (!wrapper.IsEmpty())
62 return wrapper; 57 return wrapper;
63 return wrap(impl, creationContext, isolate); 58 return wrap(impl, creationContext, isolate);
64 } 59 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 116 }
122 117
123 template<class CallbackInfo, class Wrappable> 118 template<class CallbackInfo, class Wrappable>
124 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceConstructor3> impl, Wrappable* wrappable) 119 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceConstructor3> impl, Wrappable* wrappable)
125 { 120 {
126 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 121 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
127 } 122 }
128 123
129 } 124 }
130 #endif // V8TestInterfaceConstructor3_h 125 #endif // V8TestInterfaceConstructor3_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698