| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 bool ShouldConvertToSlowElements(int new_capacity); | 1310 bool ShouldConvertToSlowElements(int new_capacity); |
| 1311 // Returns true if the backing storage for the slow-case elements of | 1311 // Returns true if the backing storage for the slow-case elements of |
| 1312 // this object takes up nearly as much space as a fast-case backing | 1312 // this object takes up nearly as much space as a fast-case backing |
| 1313 // storage would. In that case the JSObject should have fast | 1313 // storage would. In that case the JSObject should have fast |
| 1314 // elements. | 1314 // elements. |
| 1315 bool ShouldConvertToFastElements(); | 1315 bool ShouldConvertToFastElements(); |
| 1316 | 1316 |
| 1317 // Return the object's prototype (might be Heap::null_value()). | 1317 // Return the object's prototype (might be Heap::null_value()). |
| 1318 inline Object* GetPrototype(); | 1318 inline Object* GetPrototype(); |
| 1319 | 1319 |
| 1320 // Set the object's prototype (only JSObject and null are allowed). |
| 1321 Object* SetPrototype(Object* value, bool skip_hidden_prototypes); |
| 1322 |
| 1320 // Tells whether the index'th element is present. | 1323 // Tells whether the index'th element is present. |
| 1321 inline bool HasElement(uint32_t index); | 1324 inline bool HasElement(uint32_t index); |
| 1322 bool HasElementWithReceiver(JSObject* receiver, uint32_t index); | 1325 bool HasElementWithReceiver(JSObject* receiver, uint32_t index); |
| 1323 bool HasLocalElement(uint32_t index); | 1326 bool HasLocalElement(uint32_t index); |
| 1324 | 1327 |
| 1325 bool HasElementWithInterceptor(JSObject* receiver, uint32_t index); | 1328 bool HasElementWithInterceptor(JSObject* receiver, uint32_t index); |
| 1326 bool HasElementPostInterceptor(JSObject* receiver, uint32_t index); | 1329 bool HasElementPostInterceptor(JSObject* receiver, uint32_t index); |
| 1327 | 1330 |
| 1328 Object* SetFastElement(uint32_t index, Object* value); | 1331 Object* SetFastElement(uint32_t index, Object* value); |
| 1329 | 1332 |
| (...skipping 3642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4972 } else { | 4975 } else { |
| 4973 value &= ~(1 << bit_position); | 4976 value &= ~(1 << bit_position); |
| 4974 } | 4977 } |
| 4975 return value; | 4978 return value; |
| 4976 } | 4979 } |
| 4977 }; | 4980 }; |
| 4978 | 4981 |
| 4979 } } // namespace v8::internal | 4982 } } // namespace v8::internal |
| 4980 | 4983 |
| 4981 #endif // V8_OBJECTS_H_ | 4984 #endif // V8_OBJECTS_H_ |
| OLD | NEW |