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

Side by Side Diff: Source/bindings/core/v8/WrapperTypeInfo.h

Issue 1008353002: bindings: Reduces the binary size by reducing # of callback functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 9 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
« no previous file with comments | « Source/bindings/core/v8/V8Binding.cpp ('k') | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 const gin::GinEmbedder ginEmbedder; 175 const gin::GinEmbedder ginEmbedder;
176 176
177 DomTemplateFunction domTemplateFunction; 177 DomTemplateFunction domTemplateFunction;
178 const RefObjectFunction refObjectFunction; 178 const RefObjectFunction refObjectFunction;
179 const DerefObjectFunction derefObjectFunction; 179 const DerefObjectFunction derefObjectFunction;
180 const TraceFunction traceFunction; 180 const TraceFunction traceFunction;
181 const ToActiveDOMObjectFunction toActiveDOMObjectFunction; 181 const ToActiveDOMObjectFunction toActiveDOMObjectFunction;
182 const ResolveWrapperReachabilityFunction visitDOMWrapperFunction; 182 const ResolveWrapperReachabilityFunction visitDOMWrapperFunction;
183 InstallConditionallyEnabledMethodsFunction installConditionallyEnabledMethod sFunction; 183 InstallConditionallyEnabledMethodsFunction installConditionallyEnabledMethod sFunction;
184 const InstallConditionallyEnabledPropertiesFunction installConditionallyEnab ledPropertiesFunction; 184 const InstallConditionallyEnabledPropertiesFunction installConditionallyEnab ledPropertiesFunction;
185 const char* const interfaceName;
185 const WrapperTypeInfo* parentClass; 186 const WrapperTypeInfo* parentClass;
186 const unsigned wrapperTypePrototype : 1; // WrapperTypePrototype 187 const unsigned wrapperTypePrototype : 1; // WrapperTypePrototype
187 const unsigned wrapperClassId : 2; // WrapperClassId 188 const unsigned wrapperClassId : 2; // WrapperClassId
188 const unsigned eventTargetInheritance : 1; // EventTargetInheritance 189 const unsigned eventTargetInheritance : 1; // EventTargetInheritance
189 const unsigned lifetime : 1; // Lifetime 190 const unsigned lifetime : 1; // Lifetime
190 const unsigned gcType : 2; // GCType 191 const unsigned gcType : 2; // GCType
191 }; 192 };
192 193
193 static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) == offsetof(struct g in::WrapperInfo, embedder), "offset of WrapperTypeInfo.ginEmbedder must be the s ame as gin::WrapperInfo.embedder"); 194 static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) == offsetof(struct g in::WrapperInfo, embedder), "offset of WrapperTypeInfo.ginEmbedder must be the s ame as gin::WrapperInfo.embedder");
194 195
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 228 }
228 229
229 inline void releaseObject(v8::Handle<v8::Object> wrapper) 230 inline void releaseObject(v8::Handle<v8::Object> wrapper)
230 { 231 {
231 toWrapperTypeInfo(wrapper)->derefObject(toScriptWrappable(wrapper)); 232 toWrapperTypeInfo(wrapper)->derefObject(toScriptWrappable(wrapper));
232 } 233 }
233 234
234 } // namespace blink 235 } // namespace blink
235 236
236 #endif // WrapperTypeInfo_h 237 #endif // WrapperTypeInfo_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8Binding.cpp ('k') | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698