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

Side by Side Diff: include/v8.h

Issue 50016: Allow hidden properties and implement GetIdentityHash (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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 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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 1068
1069 /** Tests for an index lookup interceptor.*/ 1069 /** Tests for an index lookup interceptor.*/
1070 bool HasIndexedLookupInterceptor(); 1070 bool HasIndexedLookupInterceptor();
1071 1071
1072 /** 1072 /**
1073 * Turns on access check on the object if the object is an instance of 1073 * Turns on access check on the object if the object is an instance of
1074 * a template that has access check callbacks. If an object has no 1074 * a template that has access check callbacks. If an object has no
1075 * access check info, the object cannot be accessed by anyone. 1075 * access check info, the object cannot be accessed by anyone.
1076 */ 1076 */
1077 void TurnOnAccessCheck(); 1077 void TurnOnAccessCheck();
1078
1079 /**
1080 * Returns the identity hash for this object. The current implemenation uses
1081 * a hidden property on the object to store the identity hash.
1082 */
1083 int GetIdentityHash();
1084
1085 /**
1086 * Access hidden properties on JavaScript objects. These properties are
1087 * hidden from the executing JavaScript and only accessible through the V8
1088 * C++ API. Hidden properties introduced by V8 internally (for example the
1089 * identity hash) are prefixed with "v8::".
1090 */
1091 bool SetHiddenValue(Handle<String> key, Handle<Value> value);
1092 Local<Value> GetHiddenValue(Handle<String> key);
1093 bool DeleteHiddenValue(Handle<String> key);
1078 1094
1079 /** 1095 /**
1080 * Clone this object with a fast but shallow copy. Values will point 1096 * Clone this object with a fast but shallow copy. Values will point
1081 * to the same values as the original object. 1097 * to the same values as the original object.
1082 */ 1098 */
1083 Local<Object> Clone(); 1099 Local<Object> Clone();
1084 1100
1085 static Local<Object> New(); 1101 static Local<Object> New();
1086 static Object* Cast(Value* obj); 1102 static Object* Cast(Value* obj);
1087 private: 1103 private:
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 2495
2480 } // namespace v8 2496 } // namespace v8
2481 2497
2482 2498
2483 #undef V8EXPORT 2499 #undef V8EXPORT
2484 #undef V8EXPORT_INLINE 2500 #undef V8EXPORT_INLINE
2485 #undef TYPE_CHECK 2501 #undef TYPE_CHECK
2486 2502
2487 2503
2488 #endif // V8_H_ 2504 #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