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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceCustomConstructor.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 V8TestInterfaceCustomConstructor_h 7 #ifndef V8TestInterfaceCustomConstructor_h
8 #define V8TestInterfaceCustomConstructor_h 8 #define V8TestInterfaceCustomConstructor_h
9 9
10 #include "bindings/tests/idls/TestInterfaceCustomConstructor.h" 10 #include "bindings/tests/idls/TestInterfaceCustomConstructor.h"
(...skipping 29 matching lines...) Expand all
40 return static_cast<TestInterfaceCustomConstructor*>(object); 40 return static_cast<TestInterfaceCustomConstructor*>(object);
41 } 41 }
42 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceCustomConstructor*, v8::Isolate*) { } 42 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceCustomConstructor*, v8::Isolate*) { }
43 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 43 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
44 44
45 private: 45 private:
46 friend v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor*, v8::Hand le<v8::Object> creationContext, v8::Isolate*); 46 friend v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor*, v8::Hand le<v8::Object> creationContext, v8::Isolate*);
47 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceCustomCo nstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 47 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceCustomCo nstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
48 }; 48 };
49 49
50 inline v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor* impl, v8::Han dle<v8::Object> creationContext, v8::Isolate* isolate) 50 v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor* impl, v8::Handle<v8: :Object> creationContext, v8::Isolate*);
51 {
52 ASSERT(impl);
53 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCustomConstructor>(impl , isolate));
54 return V8TestInterfaceCustomConstructor::createWrapper(impl, creationContext , isolate);
55 }
56 51
57 inline v8::Handle<v8::Value> toV8(TestInterfaceCustomConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 52 inline v8::Handle<v8::Value> toV8(TestInterfaceCustomConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
58 { 53 {
59 if (UNLIKELY(!impl)) 54 if (UNLIKELY(!impl))
60 return v8::Null(isolate); 55 return v8::Null(isolate);
61 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceCust omConstructor>(impl, isolate); 56 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceCust omConstructor>(impl, isolate);
62 if (!wrapper.IsEmpty()) 57 if (!wrapper.IsEmpty())
63 return wrapper; 58 return wrapper;
64 return wrap(impl, creationContext, isolate); 59 return wrap(impl, creationContext, isolate);
65 } 60 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 117 }
123 118
124 template<class CallbackInfo, class Wrappable> 119 template<class CallbackInfo, class Wrappable>
125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceCustomConstructor> impl, Wrappable* wrappable) 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceCustomConstructor> impl, Wrappable* wrappable)
126 { 121 {
127 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 122 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
128 } 123 }
129 124
130 } 125 }
131 #endif // V8TestInterfaceCustomConstructor_h 126 #endif // V8TestInterfaceCustomConstructor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698