| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 class ObjectTemplate; | 107 class ObjectTemplate; |
| 108 class Primitive; | 108 class Primitive; |
| 109 class RawOperationDescriptor; | 109 class RawOperationDescriptor; |
| 110 class Signature; | 110 class Signature; |
| 111 class StackFrame; | 111 class StackFrame; |
| 112 class StackTrace; | 112 class StackTrace; |
| 113 class String; | 113 class String; |
| 114 class StringObject; | 114 class StringObject; |
| 115 class Symbol; | 115 class Symbol; |
| 116 class SymbolObject; | 116 class SymbolObject; |
| 117 class Private; |
| 117 class Uint32; | 118 class Uint32; |
| 118 class Utils; | 119 class Utils; |
| 119 class Value; | 120 class Value; |
| 120 template <class T> class Handle; | 121 template <class T> class Handle; |
| 121 template <class T> class Local; | 122 template <class T> class Local; |
| 122 template <class T> class Eternal; | 123 template <class T> class Eternal; |
| 123 template<class T> class NonCopyablePersistentTraits; | 124 template<class T> class NonCopyablePersistentTraits; |
| 124 template<class T, | 125 template<class T, |
| 125 class M = NonCopyablePersistentTraits<T> > class Persistent; | 126 class M = NonCopyablePersistentTraits<T> > class Persistent; |
| 126 template<class T, class P> class WeakCallbackObject; | 127 template<class T, class P> class WeakCallbackObject; |
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 static Local<Symbol> New(Isolate *isolate, const char* data, int length = -1); | 1934 static Local<Symbol> New(Isolate *isolate, const char* data, int length = -1); |
| 1934 | 1935 |
| 1935 V8_INLINE static Symbol* Cast(v8::Value* obj); | 1936 V8_INLINE static Symbol* Cast(v8::Value* obj); |
| 1936 private: | 1937 private: |
| 1937 Symbol(); | 1938 Symbol(); |
| 1938 static void CheckCast(v8::Value* obj); | 1939 static void CheckCast(v8::Value* obj); |
| 1939 }; | 1940 }; |
| 1940 | 1941 |
| 1941 | 1942 |
| 1942 /** | 1943 /** |
| 1944 * A private symbol |
| 1945 * |
| 1946 * This is an experimental feature. Use at your own risk. |
| 1947 */ |
| 1948 class V8_EXPORT Private : public Data { |
| 1949 public: |
| 1950 // Returns the print name string of the private symbol, or undefined if none. |
| 1951 Local<Value> Name() const; |
| 1952 |
| 1953 // Create a private symbol without a print name. |
| 1954 static Local<Private> New(Isolate* isolate); |
| 1955 |
| 1956 // Create a private symbol with a print name. |
| 1957 static Local<Private> New( |
| 1958 Isolate *isolate, const char* data, int length = -1); |
| 1959 |
| 1960 private: |
| 1961 Private(); |
| 1962 }; |
| 1963 |
| 1964 |
| 1965 /** |
| 1943 * A JavaScript number value (ECMA-262, 4.3.20) | 1966 * A JavaScript number value (ECMA-262, 4.3.20) |
| 1944 */ | 1967 */ |
| 1945 class V8_EXPORT Number : public Primitive { | 1968 class V8_EXPORT Number : public Primitive { |
| 1946 public: | 1969 public: |
| 1947 double Value() const; | 1970 double Value() const; |
| 1948 static Local<Number> New(double value); | 1971 static Local<Number> New(double value); |
| 1949 static Local<Number> New(Isolate* isolate, double value); | 1972 static Local<Number> New(Isolate* isolate, double value); |
| 1950 V8_INLINE static Number* Cast(v8::Value* obj); | 1973 V8_INLINE static Number* Cast(v8::Value* obj); |
| 1951 private: | 1974 private: |
| 1952 Number(); | 1975 Number(); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2102 AccessControl settings = DEFAULT, | 2125 AccessControl settings = DEFAULT, |
| 2103 PropertyAttribute attribute = None); | 2126 PropertyAttribute attribute = None); |
| 2104 | 2127 |
| 2105 // This function is not yet stable and should not be used at this time. | 2128 // This function is not yet stable and should not be used at this time. |
| 2106 bool SetDeclaredAccessor(Local<String> name, | 2129 bool SetDeclaredAccessor(Local<String> name, |
| 2107 Local<DeclaredAccessorDescriptor> descriptor, | 2130 Local<DeclaredAccessorDescriptor> descriptor, |
| 2108 PropertyAttribute attribute = None, | 2131 PropertyAttribute attribute = None, |
| 2109 AccessControl settings = DEFAULT); | 2132 AccessControl settings = DEFAULT); |
| 2110 | 2133 |
| 2111 /** | 2134 /** |
| 2135 * Functionality for private properties. |
| 2136 * This is an experimental feature, use at your own risk. |
| 2137 * Note: Private properties are inherited. Do not rely on this, since it may |
| 2138 * change. |
| 2139 */ |
| 2140 bool HasPrivate(Handle<Private> key); |
| 2141 bool SetPrivate(Handle<Private> key, Handle<Value> value); |
| 2142 bool DeletePrivate(Handle<Private> key); |
| 2143 Local<Value> GetPrivate(Handle<Private> key); |
| 2144 |
| 2145 /** |
| 2112 * Returns an array containing the names of the enumerable properties | 2146 * Returns an array containing the names of the enumerable properties |
| 2113 * of this object, including properties from prototype objects. The | 2147 * of this object, including properties from prototype objects. The |
| 2114 * array returned by this method contains the same values as would | 2148 * array returned by this method contains the same values as would |
| 2115 * be enumerated by a for-in statement over this object. | 2149 * be enumerated by a for-in statement over this object. |
| 2116 */ | 2150 */ |
| 2117 Local<Array> GetPropertyNames(); | 2151 Local<Array> GetPropertyNames(); |
| 2118 | 2152 |
| 2119 /** | 2153 /** |
| 2120 * This function has the same functionality as GetPropertyNames but | 2154 * This function has the same functionality as GetPropertyNames but |
| 2121 * the returned array doesn't contain the names of properties from | 2155 * the returned array doesn't contain the names of properties from |
| (...skipping 4377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6499 */ | 6533 */ |
| 6500 | 6534 |
| 6501 | 6535 |
| 6502 } // namespace v8 | 6536 } // namespace v8 |
| 6503 | 6537 |
| 6504 | 6538 |
| 6505 #undef TYPE_CHECK | 6539 #undef TYPE_CHECK |
| 6506 | 6540 |
| 6507 | 6541 |
| 6508 #endif // V8_H_ | 6542 #endif // V8_H_ |
| OLD | NEW |