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

Side by Side Diff: include/v8.h

Issue 40324: 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.
1081 */
1082 int GetIdentityHash();
1083
1084 /**
1085 * Access hidden properties on JavaScript objects. These properties are
1086 * hidden from the executing JavaScript and only accessible through the V8
1087 * C++ API.
1088 */
1089 bool SetHiddenValue(Handle<String> key, Handle<Value> value);
1090 Local<Value> GetHiddenValue(Handle<String> key);
1091 bool DeleteHiddenValue(Handle<String> key);
1078 1092
1079 /** 1093 /**
1080 * Clone this object with a fast but shallow copy. Values will point 1094 * Clone this object with a fast but shallow copy. Values will point
1081 * to the same values as the original object. 1095 * to the same values as the original object.
1082 */ 1096 */
1083 Local<Object> Clone(); 1097 Local<Object> Clone();
1084 1098
1085 static Local<Object> New(); 1099 static Local<Object> New();
1086 static Object* Cast(Value* obj); 1100 static Object* Cast(Value* obj);
1087 private: 1101 private:
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 2493
2480 } // namespace v8 2494 } // namespace v8
2481 2495
2482 2496
2483 #undef V8EXPORT 2497 #undef V8EXPORT
2484 #undef V8EXPORT_INLINE 2498 #undef V8EXPORT_INLINE
2485 #undef TYPE_CHECK 2499 #undef TYPE_CHECK
2486 2500
2487 2501
2488 #endif // V8_H_ 2502 #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