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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.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 V8TestInterfaceNamedConstructor2_h 7 #ifndef V8TestInterfaceNamedConstructor2_h
8 #define V8TestInterfaceNamedConstructor2_h 8 #define V8TestInterfaceNamedConstructor2_h
9 9
10 #include "bindings/tests/idls/TestInterfaceNamedConstructor2.h" 10 #include "bindings/tests/idls/TestInterfaceNamedConstructor2.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return static_cast<TestInterfaceNamedConstructor2*>(object); 44 return static_cast<TestInterfaceNamedConstructor2*>(object);
45 } 45 }
46 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceNamedConstructor2*, v8::Isolate*) { } 46 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceNamedConstructor2*, v8::Isolate*) { }
47 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 47 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
48 48
49 private: 49 private:
50 friend v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2*, v8::Hand le<v8::Object> creationContext, v8::Isolate*); 50 friend v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2*, v8::Hand le<v8::Object> creationContext, v8::Isolate*);
51 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceNamedCon structor2>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 51 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceNamedCon structor2>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
52 }; 52 };
53 53
54 inline v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2* impl, v8::Han dle<v8::Object> creationContext, v8::Isolate* isolate) 54 v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2* impl, v8::Handle<v8: :Object> creationContext, v8::Isolate*);
55 {
56 ASSERT(impl);
57 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNamedConstructor2>(impl , isolate));
58 return V8TestInterfaceNamedConstructor2::createWrapper(impl, creationContext , isolate);
59 }
60 55
61 inline v8::Handle<v8::Value> toV8(TestInterfaceNamedConstructor2* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 56 inline v8::Handle<v8::Value> toV8(TestInterfaceNamedConstructor2* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
62 { 57 {
63 if (UNLIKELY(!impl)) 58 if (UNLIKELY(!impl))
64 return v8::Null(isolate); 59 return v8::Null(isolate);
65 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceName dConstructor2>(impl, isolate); 60 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceName dConstructor2>(impl, isolate);
66 if (!wrapper.IsEmpty()) 61 if (!wrapper.IsEmpty())
67 return wrapper; 62 return wrapper;
68 return wrap(impl, creationContext, isolate); 63 return wrap(impl, creationContext, isolate);
69 } 64 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 121 }
127 122
128 template<class CallbackInfo, class Wrappable> 123 template<class CallbackInfo, class Wrappable>
129 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceNamedConstructor2> impl, Wrappable* wrappable) 124 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceNamedConstructor2> impl, Wrappable* wrappable)
130 { 125 {
131 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 126 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
132 } 127 }
133 128
134 } 129 }
135 #endif // V8TestInterfaceNamedConstructor2_h 130 #endif // V8TestInterfaceNamedConstructor2_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698