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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor2.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 "V8TestInterfaceConstructor2.h" 8 #include "V8TestInterfaceConstructor2.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 functionTemplate->SetLength(1); 204 functionTemplate->SetLength(1);
205 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate(); 205 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate();
206 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate(); 206 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate();
207 207
208 // Custom toString template 208 // Custom toString template
209 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 209 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
210 } 210 }
211 211
212 v8::Handle<v8::FunctionTemplate> V8TestInterfaceConstructor2::domTemplate(v8::Is olate* isolate) 212 v8::Handle<v8::FunctionTemplate> V8TestInterfaceConstructor2::domTemplate(v8::Is olate* isolate)
213 { 213 {
214 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 214 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), configureV8TestInterfaceConstructor2Template);
215 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas t<WrapperTypeInfo*>(&wrapperTypeInfo));
216 if (!result.IsEmpty())
217 return result;
218
219 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
220 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
221 configureV8TestInterfaceConstructor2Template(result, isolate);
222 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ;
223 return result;
224 } 215 }
225 216
226 bool V8TestInterfaceConstructor2::hasInstance(v8::Handle<v8::Value> v8Value, v8: :Isolate* isolate) 217 bool V8TestInterfaceConstructor2::hasInstance(v8::Handle<v8::Value> v8Value, v8: :Isolate* isolate)
227 { 218 {
228 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 219 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
229 } 220 }
230 221
231 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain (v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 222 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain (v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
232 { 223 {
233 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 224 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
(...skipping 29 matching lines...) Expand all
263 fromInternalPointer(object)->deref(); 254 fromInternalPointer(object)->deref();
264 } 255 }
265 256
266 template<> 257 template<>
267 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 258 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
268 { 259 {
269 return toV8(impl, creationContext, isolate); 260 return toV8(impl, creationContext, isolate);
270 } 261 }
271 262
272 } // namespace WebCore 263 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698