OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 Handle<Object> GetProperty(Handle<Object> obj, | 233 Handle<Object> GetProperty(Handle<Object> obj, |
234 Handle<Object> key); | 234 Handle<Object> key); |
235 | 235 |
236 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 236 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
237 Handle<JSObject> holder, | 237 Handle<JSObject> holder, |
238 Handle<String> name, | 238 Handle<String> name, |
239 PropertyAttributes* attributes); | 239 PropertyAttributes* attributes); |
240 | 240 |
241 Handle<Object> GetPrototype(Handle<Object> obj); | 241 Handle<Object> GetPrototype(Handle<Object> obj); |
242 | 242 |
| 243 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); |
| 244 |
243 // Return the object's hidden properties object. If the object has no hidden | 245 // Return the object's hidden properties object. If the object has no hidden |
244 // properties and create_if_needed is true, then a new hidden property object | 246 // properties and create_if_needed is true, then a new hidden property object |
245 // will be allocated. Otherwise the Heap::undefined_value is returned. | 247 // will be allocated. Otherwise the Heap::undefined_value is returned. |
246 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed); | 248 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed); |
247 | 249 |
248 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); | 250 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); |
249 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); | 251 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); |
250 | 252 |
251 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); | 253 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); |
252 | 254 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 private: | 367 private: |
366 bool has_been_transformed_; // Tells whether the object has been transformed. | 368 bool has_been_transformed_; // Tells whether the object has been transformed. |
367 int unused_property_fields_; // Captures the unused number of field. | 369 int unused_property_fields_; // Captures the unused number of field. |
368 Handle<JSObject> object_; // The object being optimized. | 370 Handle<JSObject> object_; // The object being optimized. |
369 }; | 371 }; |
370 | 372 |
371 | 373 |
372 } } // namespace v8::internal | 374 } } // namespace v8::internal |
373 | 375 |
374 #endif // V8_HANDLES_H_ | 376 #endif // V8_HANDLES_H_ |
OLD | NEW |