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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.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 V8TestObject_h 7 #ifndef V8TestObject_h
8 #define V8TestObject_h 8 #define V8TestObject_h
9 9
10 #include "bindings/tests/idls/TestObject.h" 10 #include "bindings/tests/idls/TestObject.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return static_cast<TestObject*>(object); 57 return static_cast<TestObject*>(object);
58 } 58 }
59 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestO bject*, v8::Isolate*); 59 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestO bject*, v8::Isolate*);
60 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*); 60 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*);
61 61
62 private: 62 private:
63 friend v8::Handle<v8::Object> wrap(TestObject*, v8::Handle<v8::Object> creat ionContext, v8::Isolate*); 63 friend v8::Handle<v8::Object> wrap(TestObject*, v8::Handle<v8::Object> creat ionContext, v8::Isolate*);
64 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObject>, v8::Hand le<v8::Object> creationContext, v8::Isolate*); 64 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObject>, v8::Hand le<v8::Object> creationContext, v8::Isolate*);
65 }; 65 };
66 66
67 inline v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 67 v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> creationCon text, v8::Isolate*);
68 {
69 ASSERT(impl);
70 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl, isolate));
71 return V8TestObject::createWrapper(impl, creationContext, isolate);
72 }
73 68
74 inline v8::Handle<v8::Value> toV8(TestObject* impl, v8::Handle<v8::Object> creat ionContext, v8::Isolate* isolate) 69 inline v8::Handle<v8::Value> toV8(TestObject* impl, v8::Handle<v8::Object> creat ionContext, v8::Isolate* isolate)
75 { 70 {
76 if (UNLIKELY(!impl)) 71 if (UNLIKELY(!impl))
77 return v8::Null(isolate); 72 return v8::Null(isolate);
78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl, isolate); 73 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl, isolate);
79 if (!wrapper.IsEmpty()) 74 if (!wrapper.IsEmpty())
80 return wrapper; 75 return wrapper;
81 return wrap(impl, creationContext, isolate); 76 return wrap(impl, creationContext, isolate);
82 } 77 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 134 }
140 135
141 template<class CallbackInfo, class Wrappable> 136 template<class CallbackInfo, class Wrappable>
142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObject> impl, Wrappable* wrappable) 137 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObject> impl, Wrappable* wrappable)
143 { 138 {
144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 139 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
145 } 140 }
146 141
147 } 142 }
148 #endif // V8TestObject_h 143 #endif // V8TestObject_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNode.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698