OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 | 1114 |
1115 /** | 1115 /** |
1116 * Turns on access check on the object if the object is an instance of | 1116 * Turns on access check on the object if the object is an instance of |
1117 * a template that has access check callbacks. If an object has no | 1117 * a template that has access check callbacks. If an object has no |
1118 * access check info, the object cannot be accessed by anyone. | 1118 * access check info, the object cannot be accessed by anyone. |
1119 */ | 1119 */ |
1120 void TurnOnAccessCheck(); | 1120 void TurnOnAccessCheck(); |
1121 | 1121 |
1122 /** | 1122 /** |
1123 * Returns the identity hash for this object. The current implemenation uses | 1123 * Returns the identity hash for this object. The current implemenation uses |
1124 * a hidden property on the object to store the identity hash. | 1124 * a hidden property on the object to store the identity hash. |
| 1125 * |
| 1126 * The return value will never be 0. Also, it is not guaranteed to be |
| 1127 * unique. |
1125 */ | 1128 */ |
1126 int GetIdentityHash(); | 1129 int GetIdentityHash(); |
1127 | 1130 |
1128 /** | 1131 /** |
1129 * Access hidden properties on JavaScript objects. These properties are | 1132 * Access hidden properties on JavaScript objects. These properties are |
1130 * hidden from the executing JavaScript and only accessible through the V8 | 1133 * hidden from the executing JavaScript and only accessible through the V8 |
1131 * C++ API. Hidden properties introduced by V8 internally (for example the | 1134 * C++ API. Hidden properties introduced by V8 internally (for example the |
1132 * identity hash) are prefixed with "v8::". | 1135 * identity hash) are prefixed with "v8::". |
1133 */ | 1136 */ |
1134 bool SetHiddenValue(Handle<String> key, Handle<Value> value); | 1137 bool SetHiddenValue(Handle<String> key, Handle<Value> value); |
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2558 | 2561 |
2559 } // namespace v8 | 2562 } // namespace v8 |
2560 | 2563 |
2561 | 2564 |
2562 #undef V8EXPORT | 2565 #undef V8EXPORT |
2563 #undef V8EXPORT_INLINE | 2566 #undef V8EXPORT_INLINE |
2564 #undef TYPE_CHECK | 2567 #undef TYPE_CHECK |
2565 | 2568 |
2566 | 2569 |
2567 #endif // V8_H_ | 2570 #endif // V8_H_ |
OLD | NEW |