| OLD | NEW |
| 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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 */ | 1106 */ |
| 1107 Local<String> ObjectProtoToString(); | 1107 Local<String> ObjectProtoToString(); |
| 1108 | 1108 |
| 1109 /** Gets the number of internal fields for this Object. */ | 1109 /** Gets the number of internal fields for this Object. */ |
| 1110 int InternalFieldCount(); | 1110 int InternalFieldCount(); |
| 1111 /** Gets the value in an internal field. */ | 1111 /** Gets the value in an internal field. */ |
| 1112 Local<Value> GetInternalField(int index); | 1112 Local<Value> GetInternalField(int index); |
| 1113 /** Sets the value in an internal field. */ | 1113 /** Sets the value in an internal field. */ |
| 1114 void SetInternalField(int index, Handle<Value> value); | 1114 void SetInternalField(int index, Handle<Value> value); |
| 1115 | 1115 |
| 1116 // The two functions below do not perform index bounds checks and |
| 1117 // they do not check that the VM is still running. Use with caution. |
| 1118 /** Gets a native pointer from an internal field. */ |
| 1119 void* GetPointerFromInternalField(int index); |
| 1120 /** Sets a native pointer in an internal field. */ |
| 1121 void SetPointerInInternalField(int index, void* value); |
| 1122 |
| 1116 // Testers for local properties. | 1123 // Testers for local properties. |
| 1117 bool HasRealNamedProperty(Handle<String> key); | 1124 bool HasRealNamedProperty(Handle<String> key); |
| 1118 bool HasRealIndexedProperty(uint32_t index); | 1125 bool HasRealIndexedProperty(uint32_t index); |
| 1119 bool HasRealNamedCallbackProperty(Handle<String> key); | 1126 bool HasRealNamedCallbackProperty(Handle<String> key); |
| 1120 | 1127 |
| 1121 /** | 1128 /** |
| 1122 * If result.IsEmpty() no real property was located in the prototype chain. | 1129 * If result.IsEmpty() no real property was located in the prototype chain. |
| 1123 * This means interceptors in the prototype chain are not called. | 1130 * This means interceptors in the prototype chain are not called. |
| 1124 */ | 1131 */ |
| 1125 Handle<Value> GetRealNamedPropertyInPrototypeChain(Handle<String> key); | 1132 Handle<Value> GetRealNamedPropertyInPrototypeChain(Handle<String> key); |
| (...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2611 | 2618 |
| 2612 } // namespace v8 | 2619 } // namespace v8 |
| 2613 | 2620 |
| 2614 | 2621 |
| 2615 #undef V8EXPORT | 2622 #undef V8EXPORT |
| 2616 #undef V8EXPORT_INLINE | 2623 #undef V8EXPORT_INLINE |
| 2617 #undef TYPE_CHECK | 2624 #undef TYPE_CHECK |
| 2618 | 2625 |
| 2619 | 2626 |
| 2620 #endif // V8_H_ | 2627 #endif // V8_H_ |
| OLD | NEW |