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

Side by Side Diff: Source/bindings/tests/results/V8TestNode.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 V8TestNode_h 7 #ifndef V8TestNode_h
8 #define V8TestNode_h 8 #define V8TestNode_h
9 9
10 #include "bindings/tests/idls/TestNode.h" 10 #include "bindings/tests/idls/TestNode.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return static_cast<TestNode*>(V8Node::fromInternalPointer(object)); 46 return static_cast<TestNode*>(V8Node::fromInternalPointer(object));
47 } 47 }
48 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN ode*, v8::Isolate*) { } 48 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN ode*, v8::Isolate*) { }
49 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 49 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
50 50
51 private: 51 private:
52 friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creatio nContext, v8::Isolate*); 52 friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creatio nContext, v8::Isolate*);
53 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestNode> , v8::Handle<v8::Object> creationContext, v8::Isolate*); 53 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestNode> , v8::Handle<v8::Object> creationContext, v8::Isolate*);
54 }; 54 };
55 55
56 inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate) 56 v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creationConte xt, v8::Isolate*);
57 {
58 ASSERT(impl);
59 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl, isolate));
60 return V8TestNode::createWrapper(impl, creationContext, isolate);
61 }
62 57
63 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 58 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
64 { 59 {
65 if (UNLIKELY(!impl)) 60 if (UNLIKELY(!impl))
66 return v8::Null(isolate); 61 return v8::Null(isolate);
67 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNode>(impl, i solate); 62 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNode>(impl, i solate);
68 if (!wrapper.IsEmpty()) 63 if (!wrapper.IsEmpty())
69 return wrapper; 64 return wrapper;
70 return wrap(impl, creationContext, isolate); 65 return wrap(impl, creationContext, isolate);
71 } 66 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 123 }
129 124
130 template<class CallbackInfo, class Wrappable> 125 template<class CallbackInfo, class Wrappable>
131 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestNode> impl, Wrappable* wrappable) 126 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestNode> impl, Wrappable* wrappable)
132 { 127 {
133 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 128 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
134 } 129 }
135 130
136 } 131 }
137 #endif // V8TestNode_h 132 #endif // V8TestNode_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp ('k') | Source/bindings/tests/results/V8TestNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698