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

Side by Side Diff: include/v8.h

Issue 214051: Pushed 1.3.12 to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 3 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 | « LICENSE ('k') | src/SConscript » ('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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 1231
1232 /** 1232 /**
1233 * Access hidden properties on JavaScript objects. These properties are 1233 * Access hidden properties on JavaScript objects. These properties are
1234 * hidden from the executing JavaScript and only accessible through the V8 1234 * hidden from the executing JavaScript and only accessible through the V8
1235 * C++ API. Hidden properties introduced by V8 internally (for example the 1235 * C++ API. Hidden properties introduced by V8 internally (for example the
1236 * identity hash) are prefixed with "v8::". 1236 * identity hash) are prefixed with "v8::".
1237 */ 1237 */
1238 bool SetHiddenValue(Handle<String> key, Handle<Value> value); 1238 bool SetHiddenValue(Handle<String> key, Handle<Value> value);
1239 Local<Value> GetHiddenValue(Handle<String> key); 1239 Local<Value> GetHiddenValue(Handle<String> key);
1240 bool DeleteHiddenValue(Handle<String> key); 1240 bool DeleteHiddenValue(Handle<String> key);
1241
1242 /**
1243 * Returns true if this is an instance of an api function (one
1244 * created from a function created from a function template) and has
1245 * been modified since it was created. Note that this method is
1246 * conservative and may return true for objects that haven't actually
1247 * been modified.
1248 */
1249 bool IsDirty();
1241 1250
1242 /** 1251 /**
1243 * Clone this object with a fast but shallow copy. Values will point 1252 * Clone this object with a fast but shallow copy. Values will point
1244 * to the same values as the original object. 1253 * to the same values as the original object.
1245 */ 1254 */
1246 Local<Object> Clone(); 1255 Local<Object> Clone();
1247 1256
1248 /** 1257 /**
1249 * Set the backing store of the indexed properties to be managed by the 1258 * Set the backing store of the indexed properties to be managed by the
1250 * embedding layer. Access to the indexed properties will follow the rules 1259 * embedding layer. Access to the indexed properties will follow the rules
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 ACCESS_GET, 1539 ACCESS_GET,
1531 ACCESS_SET, 1540 ACCESS_SET,
1532 ACCESS_HAS, 1541 ACCESS_HAS,
1533 ACCESS_DELETE, 1542 ACCESS_DELETE,
1534 ACCESS_KEYS 1543 ACCESS_KEYS
1535 }; 1544 };
1536 1545
1537 1546
1538 /** 1547 /**
1539 * Returns true if cross-context access should be allowed to the named 1548 * Returns true if cross-context access should be allowed to the named
1540 * property with the given key on the global object. 1549 * property with the given key on the host object.
1541 */ 1550 */
1542 typedef bool (*NamedSecurityCallback)(Local<Object> global, 1551 typedef bool (*NamedSecurityCallback)(Local<Object> host,
1543 Local<Value> key, 1552 Local<Value> key,
1544 AccessType type, 1553 AccessType type,
1545 Local<Value> data); 1554 Local<Value> data);
1546 1555
1547 1556
1548 /** 1557 /**
1549 * Returns true if cross-context access should be allowed to the indexed 1558 * Returns true if cross-context access should be allowed to the indexed
1550 * property with the given index on the global object. 1559 * property with the given index on the host object.
1551 */ 1560 */
1552 typedef bool (*IndexedSecurityCallback)(Local<Object> global, 1561 typedef bool (*IndexedSecurityCallback)(Local<Object> host,
1553 uint32_t index, 1562 uint32_t index,
1554 AccessType type, 1563 AccessType type,
1555 Local<Value> data); 1564 Local<Value> data);
1556 1565
1557 1566
1558 /** 1567 /**
1559 * A FunctionTemplate is used to create functions at runtime. There 1568 * A FunctionTemplate is used to create functions at runtime. There
1560 * can only be one function created from a FunctionTemplate in a 1569 * can only be one function created from a FunctionTemplate in a
1561 * context. 1570 * context.
1562 * 1571 *
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 3089
3081 } // namespace v8 3090 } // namespace v8
3082 3091
3083 3092
3084 #undef V8EXPORT 3093 #undef V8EXPORT
3085 #undef V8EXPORT_INLINE 3094 #undef V8EXPORT_INLINE
3086 #undef TYPE_CHECK 3095 #undef TYPE_CHECK
3087 3096
3088 3097
3089 #endif // V8_H_ 3098 #endif // V8_H_
OLDNEW
« no previous file with comments | « LICENSE ('k') | src/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698