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

Side by Side Diff: include/v8.h

Issue 7229007: Add possibility to configure 'prototype' property via FunctionTemplate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 * 2137 *
2138 * Call with a value of true to make the __proto__ accessor ignore 2138 * Call with a value of true to make the __proto__ accessor ignore
2139 * instances of the function template. Call with a value of false 2139 * instances of the function template. Call with a value of false
2140 * to make the __proto__ accessor not ignore instances of the 2140 * to make the __proto__ accessor not ignore instances of the
2141 * function template. By default, instances of a function template 2141 * function template. By default, instances of a function template
2142 * are not ignored. 2142 * are not ignored.
2143 */ 2143 */
2144 void SetHiddenPrototype(bool value); 2144 void SetHiddenPrototype(bool value);
2145 2145
2146 /** 2146 /**
2147 * Sets the property attributes of the 'prototype' property of functions
2148 * created from this FunctionTemplate. Can be any combination of ReadOnly,
2149 * DontEnum and DontDelete.
2150 */
2151 void SetPrototypeAttributes(int attributes);
2152
2153 /**
2147 * Returns true if the given object is an instance of this function 2154 * Returns true if the given object is an instance of this function
2148 * template. 2155 * template.
2149 */ 2156 */
2150 bool HasInstance(Handle<Value> object); 2157 bool HasInstance(Handle<Value> object);
2151 2158
2152 private: 2159 private:
2153 FunctionTemplate(); 2160 FunctionTemplate();
2154 void AddInstancePropertyAccessor(Handle<String> name, 2161 void AddInstancePropertyAccessor(Handle<String> name,
2155 AccessorGetter getter, 2162 AccessorGetter getter,
2156 AccessorSetter setter, 2163 AccessorSetter setter,
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
4147 4154
4148 4155
4149 } // namespace v8 4156 } // namespace v8
4150 4157
4151 4158
4152 #undef V8EXPORT 4159 #undef V8EXPORT
4153 #undef TYPE_CHECK 4160 #undef TYPE_CHECK
4154 4161
4155 4162
4156 #endif // V8_H_ 4163 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698