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

Side by Side Diff: Source/bindings/tests/results/V8TestSpecialOperationsNotEnumerable.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 "V8TestSpecialOperationsNotEnumerable.h" 8 #include "V8TestSpecialOperationsNotEnumerable.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate(); 96 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate();
97 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestSpecialO perationsNotEnumerableV8Internal::indexedPropertyGetterCallback, 0, 0, 0, 0); 97 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestSpecialO perationsNotEnumerableV8Internal::indexedPropertyGetterCallback, 0, 0, 0, 0);
98 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestSpecialOpe rationsNotEnumerableV8Internal::namedPropertyGetterCallback, 0, 0, 0, 0); 98 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestSpecialOpe rationsNotEnumerableV8Internal::namedPropertyGetterCallback, 0, 0, 0, 0);
99 99
100 // Custom toString template 100 // Custom toString template
101 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 101 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
102 } 102 }
103 103
104 v8::Handle<v8::FunctionTemplate> V8TestSpecialOperationsNotEnumerable::domTempla te(v8::Isolate* isolate) 104 v8::Handle<v8::FunctionTemplate> V8TestSpecialOperationsNotEnumerable::domTempla te(v8::Isolate* isolate)
105 { 105 {
106 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 106 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), configureV8TestSpecialOperationsNotEnumerableTemplate);
107 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas t<WrapperTypeInfo*>(&wrapperTypeInfo));
108 if (!result.IsEmpty())
109 return result;
110
111 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
112 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
113 configureV8TestSpecialOperationsNotEnumerableTemplate(result, isolate);
114 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ;
115 return result;
116 } 107 }
117 108
118 bool V8TestSpecialOperationsNotEnumerable::hasInstance(v8::Handle<v8::Value> v8V alue, v8::Isolate* isolate) 109 bool V8TestSpecialOperationsNotEnumerable::hasInstance(v8::Handle<v8::Value> v8V alue, v8::Isolate* isolate)
119 { 110 {
120 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 111 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
121 } 112 }
122 113
123 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 114 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
124 { 115 {
125 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 116 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
(...skipping 29 matching lines...) Expand all
155 fromInternalPointer(object)->deref(); 146 fromInternalPointer(object)->deref();
156 } 147 }
157 148
158 template<> 149 template<>
159 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate) 150 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate)
160 { 151 {
161 return toV8(impl, creationContext, isolate); 152 return toV8(impl, creationContext, isolate);
162 } 153 }
163 154
164 } // namespace WebCore 155 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestSpecialOperations.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698