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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 bool ShouldConvertToSlowElements(int new_capacity); | 1279 bool ShouldConvertToSlowElements(int new_capacity); |
1280 // Returns true if the backing storage for the slow-case elements of | 1280 // Returns true if the backing storage for the slow-case elements of |
1281 // this object takes up nearly as much space as a fast-case backing | 1281 // this object takes up nearly as much space as a fast-case backing |
1282 // storage would. In that case the JSObject should have fast | 1282 // storage would. In that case the JSObject should have fast |
1283 // elements. | 1283 // elements. |
1284 bool ShouldConvertToFastElements(); | 1284 bool ShouldConvertToFastElements(); |
1285 | 1285 |
1286 // Return the object's prototype (might be Heap::null_value()). | 1286 // Return the object's prototype (might be Heap::null_value()). |
1287 inline Object* GetPrototype(); | 1287 inline Object* GetPrototype(); |
1288 | 1288 |
1289 // Return the object's hidden properties object. If the object has no hidden | |
1290 // properties and create_if_needed is true, then a new hidden property object | |
1291 // will be allocated. Otherwise the Heap::undefined_value is returned. | |
1292 Object* GetHiddenProperties(bool create_if_needed); | |
1293 | |
1294 // Tells whether the index'th element is present. | 1289 // Tells whether the index'th element is present. |
1295 inline bool HasElement(uint32_t index); | 1290 inline bool HasElement(uint32_t index); |
1296 bool HasElementWithReceiver(JSObject* receiver, uint32_t index); | 1291 bool HasElementWithReceiver(JSObject* receiver, uint32_t index); |
1297 bool HasLocalElement(uint32_t index); | 1292 bool HasLocalElement(uint32_t index); |
1298 | 1293 |
1299 bool HasElementWithInterceptor(JSObject* receiver, uint32_t index); | 1294 bool HasElementWithInterceptor(JSObject* receiver, uint32_t index); |
1300 bool HasElementPostInterceptor(JSObject* receiver, uint32_t index); | 1295 bool HasElementPostInterceptor(JSObject* receiver, uint32_t index); |
1301 | 1296 |
1302 Object* SetFastElement(uint32_t index, Object* value); | 1297 Object* SetFastElement(uint32_t index, Object* value); |
1303 | 1298 |
(...skipping 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4377 } else { | 4372 } else { |
4378 value &= ~(1 << bit_position); | 4373 value &= ~(1 << bit_position); |
4379 } | 4374 } |
4380 return value; | 4375 return value; |
4381 } | 4376 } |
4382 }; | 4377 }; |
4383 | 4378 |
4384 } } // namespace v8::internal | 4379 } } // namespace v8::internal |
4385 | 4380 |
4386 #endif // V8_OBJECTS_H_ | 4381 #endif // V8_OBJECTS_H_ |
OLD | NEW |