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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 properties of the 'prototype' property of functions created | |
Mads Ager (chromium)
2011/06/22 12:13:46
the properties -> the property attributes.
Jakob Kummerow
2011/06/22 12:36:59
Done.
| |
2148 * from this FunctionTemplate. Can be any combination of ReadOnly, | |
2149 * DontEnum and DontDelete. | |
2150 */ | |
2151 void SetPrototypeProperties(int flags); | |
Mads Ager (chromium)
2011/06/22 12:13:46
These flags are normally called property attribute
Jakob Kummerow
2011/06/22 12:36:59
Done.
| |
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 Loading... | |
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_ |
OLD | NEW |