| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
| 6 * | 6 * |
| 7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
| 8 * | 8 * |
| 9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
| 10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
| (...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2065 const PropertyCallbackInfo<void>& info); | 2065 const PropertyCallbackInfo<void>& info); |
| 2066 | 2066 |
| 2067 | 2067 |
| 2068 /** | 2068 /** |
| 2069 * Access control specifications. | 2069 * Access control specifications. |
| 2070 * | 2070 * |
| 2071 * Some accessors should be accessible across contexts. These | 2071 * Some accessors should be accessible across contexts. These |
| 2072 * accessors have an explicit access control parameter which specifies | 2072 * accessors have an explicit access control parameter which specifies |
| 2073 * the kind of cross-context access that should be allowed. | 2073 * the kind of cross-context access that should be allowed. |
| 2074 * | 2074 * |
| 2075 * Additionally, for security, accessors can prohibit overwriting by | 2075 * TODO(dcarney): Remove PROHIBITS_OVERWRITING as it is now unused. |
| 2076 * accessors defined in JavaScript. For objects that have such | |
| 2077 * accessors either locally or in their prototype chain it is not | |
| 2078 * possible to overwrite the accessor by using __defineGetter__ or | |
| 2079 * __defineSetter__ from JavaScript code. | |
| 2080 */ | 2076 */ |
| 2081 enum AccessControl { | 2077 enum AccessControl { |
| 2082 DEFAULT = 0, | 2078 DEFAULT = 0, |
| 2083 ALL_CAN_READ = 1, | 2079 ALL_CAN_READ = 1, |
| 2084 ALL_CAN_WRITE = 1 << 1, | 2080 ALL_CAN_WRITE = 1 << 1, |
| 2085 PROHIBITS_OVERWRITING = 1 << 2 | 2081 PROHIBITS_OVERWRITING = 1 << 2 |
| 2086 }; | 2082 }; |
| 2087 | 2083 |
| 2088 | 2084 |
| 2089 /** | 2085 /** |
| (...skipping 4540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6630 */ | 6626 */ |
| 6631 | 6627 |
| 6632 | 6628 |
| 6633 } // namespace v8 | 6629 } // namespace v8 |
| 6634 | 6630 |
| 6635 | 6631 |
| 6636 #undef TYPE_CHECK | 6632 #undef TYPE_CHECK |
| 6637 | 6633 |
| 6638 | 6634 |
| 6639 #endif // V8_H_ | 6635 #endif // V8_H_ |
| OLD | NEW |