OLD | NEW |
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 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2217 * | 2217 * |
2218 * Call with a value of true to make the __proto__ accessor ignore | 2218 * Call with a value of true to make the __proto__ accessor ignore |
2219 * instances of the function template. Call with a value of false | 2219 * instances of the function template. Call with a value of false |
2220 * to make the __proto__ accessor not ignore instances of the | 2220 * to make the __proto__ accessor not ignore instances of the |
2221 * function template. By default, instances of a function template | 2221 * function template. By default, instances of a function template |
2222 * are not ignored. | 2222 * are not ignored. |
2223 */ | 2223 */ |
2224 void SetHiddenPrototype(bool value); | 2224 void SetHiddenPrototype(bool value); |
2225 | 2225 |
2226 /** | 2226 /** |
2227 * Sets the property attributes of the 'prototype' property of functions | 2227 * Sets the ReadOnly flag in the attributes of the 'prototype' property |
2228 * created from this FunctionTemplate. Can be any combination of ReadOnly, | 2228 * of functions created from this FunctionTemplate to true. |
2229 * DontEnum and DontDelete. | |
2230 */ | 2229 */ |
2231 void SetPrototypeAttributes(int attributes); | 2230 void ReadOnlyPrototype(); |
2232 | 2231 |
2233 /** | 2232 /** |
2234 * Returns true if the given object is an instance of this function | 2233 * Returns true if the given object is an instance of this function |
2235 * template. | 2234 * template. |
2236 */ | 2235 */ |
2237 bool HasInstance(Handle<Value> object); | 2236 bool HasInstance(Handle<Value> object); |
2238 | 2237 |
2239 private: | 2238 private: |
2240 FunctionTemplate(); | 2239 FunctionTemplate(); |
2241 void AddInstancePropertyAccessor(Handle<String> name, | 2240 void AddInstancePropertyAccessor(Handle<String> name, |
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4182 | 4181 |
4183 | 4182 |
4184 } // namespace v8 | 4183 } // namespace v8 |
4185 | 4184 |
4186 | 4185 |
4187 #undef V8EXPORT | 4186 #undef V8EXPORT |
4188 #undef TYPE_CHECK | 4187 #undef TYPE_CHECK |
4189 | 4188 |
4190 | 4189 |
4191 #endif // V8_H_ | 4190 #endif // V8_H_ |
OLD | NEW |