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

Side by Side Diff: include/v8.h

Issue 6903059: Expose hasOwnProperty() through API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add one more test. Created 9 years, 8 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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 /** Sets the value in an internal field. */ 1581 /** Sets the value in an internal field. */
1582 V8EXPORT void SetInternalField(int index, Handle<Value> value); 1582 V8EXPORT void SetInternalField(int index, Handle<Value> value);
1583 1583
1584 /** Gets a native pointer from an internal field. */ 1584 /** Gets a native pointer from an internal field. */
1585 inline void* GetPointerFromInternalField(int index); 1585 inline void* GetPointerFromInternalField(int index);
1586 1586
1587 /** Sets a native pointer in an internal field. */ 1587 /** Sets a native pointer in an internal field. */
1588 V8EXPORT void SetPointerInInternalField(int index, void* value); 1588 V8EXPORT void SetPointerInInternalField(int index, void* value);
1589 1589
1590 // Testers for local properties. 1590 // Testers for local properties.
1591 V8EXPORT bool HasOwnProperty(Handle<String> key);
1591 V8EXPORT bool HasRealNamedProperty(Handle<String> key); 1592 V8EXPORT bool HasRealNamedProperty(Handle<String> key);
1592 V8EXPORT bool HasRealIndexedProperty(uint32_t index); 1593 V8EXPORT bool HasRealIndexedProperty(uint32_t index);
1593 V8EXPORT bool HasRealNamedCallbackProperty(Handle<String> key); 1594 V8EXPORT bool HasRealNamedCallbackProperty(Handle<String> key);
1594 1595
1595 /** 1596 /**
1596 * If result.IsEmpty() no real property was located in the prototype chain. 1597 * If result.IsEmpty() no real property was located in the prototype chain.
1597 * This means interceptors in the prototype chain are not called. 1598 * This means interceptors in the prototype chain are not called.
1598 */ 1599 */
1599 V8EXPORT Local<Value> GetRealNamedPropertyInPrototypeChain( 1600 V8EXPORT Local<Value> GetRealNamedPropertyInPrototypeChain(
1600 Handle<String> key); 1601 Handle<String> key);
(...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after
3992 3993
3993 3994
3994 } // namespace v8 3995 } // namespace v8
3995 3996
3996 3997
3997 #undef V8EXPORT 3998 #undef V8EXPORT
3998 #undef TYPE_CHECK 3999 #undef TYPE_CHECK
3999 4000
4000 4001
4001 #endif // V8_H_ 4002 #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