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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp

Issue 336653004: Decrease binary size by 43 KB by removing V8XXX::domTemplate (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 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceEventTarget.h" 8 #include "V8TestInterfaceEventTarget.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 isolate); 104 isolate);
105 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate(); 105 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate();
106 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate(); 106 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate();
107 107
108 // Custom toString template 108 // Custom toString template
109 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 109 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
110 } 110 }
111 111
112 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTarget::domTemplate(v8::Iso late* isolate) 112 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTarget::domTemplate(v8::Iso late* isolate)
113 { 113 {
114 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 114 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), configureV8TestInterfaceEventTargetTemplate);
115 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas t<WrapperTypeInfo*>(&wrapperTypeInfo));
116 if (!result.IsEmpty())
117 return result;
118
119 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
120 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
121 configureV8TestInterfaceEventTargetTemplate(result, isolate);
122 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ;
123 return result;
124 } 115 }
125 116
126 bool V8TestInterfaceEventTarget::hasInstance(v8::Handle<v8::Value> v8Value, v8:: Isolate* isolate) 117 bool V8TestInterfaceEventTarget::hasInstance(v8::Handle<v8::Value> v8Value, v8:: Isolate* isolate)
127 { 118 {
128 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 119 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
129 } 120 }
130 121
131 v8::Handle<v8::Object> V8TestInterfaceEventTarget::findInstanceInPrototypeChain( v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 122 v8::Handle<v8::Object> V8TestInterfaceEventTarget::findInstanceInPrototypeChain( v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
132 { 123 {
133 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 124 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 #endif // !ENABLE(OILPAN) 161 #endif // !ENABLE(OILPAN)
171 } 162 }
172 163
173 template<> 164 template<>
174 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 165 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
175 { 166 {
176 return toV8(impl, creationContext, isolate); 167 return toV8(impl, creationContext, isolate);
177 } 168 }
178 169
179 } // namespace WebCore 170 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698