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

Side by Side Diff: include/v8.h

Issue 11631002: Extend API to allow setting length property for function templates. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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 | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 2319
2320 /** Causes the function template to inherit from a parent function template.*/ 2320 /** Causes the function template to inherit from a parent function template.*/
2321 void Inherit(Handle<FunctionTemplate> parent); 2321 void Inherit(Handle<FunctionTemplate> parent);
2322 2322
2323 /** 2323 /**
2324 * A PrototypeTemplate is the template used to create the prototype object 2324 * A PrototypeTemplate is the template used to create the prototype object
2325 * of the function created by this template. 2325 * of the function created by this template.
2326 */ 2326 */
2327 Local<ObjectTemplate> PrototypeTemplate(); 2327 Local<ObjectTemplate> PrototypeTemplate();
2328 2328
2329 /** Set the predefined length property for the FunctionTemplate. */
2330 void SetLength(int length);
2329 2331
2330 /** 2332 /**
2331 * Set the class name of the FunctionTemplate. This is used for 2333 * Set the class name of the FunctionTemplate. This is used for
2332 * printing objects created with the function created from the 2334 * printing objects created with the function created from the
2333 * FunctionTemplate as its constructor. 2335 * FunctionTemplate as its constructor.
2334 */ 2336 */
2335 void SetClassName(Handle<String> name); 2337 void SetClassName(Handle<String> name);
2336 2338
2337 /** 2339 /**
2338 * Determines whether the __proto__ accessor ignores instances of 2340 * Determines whether the __proto__ accessor ignores instances of
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after
4859 4861
4860 4862
4861 } // namespace v8 4863 } // namespace v8
4862 4864
4863 4865
4864 #undef V8EXPORT 4866 #undef V8EXPORT
4865 #undef TYPE_CHECK 4867 #undef TYPE_CHECK
4866 4868
4867 4869
4868 #endif // V8_H_ 4870 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698