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 3999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4010 | 4010 |
4011 // Set the details for entry. | 4011 // Set the details for entry. |
4012 void DetailsAtPut(int entry, PropertyDetails value) { | 4012 void DetailsAtPut(int entry, PropertyDetails value) { |
4013 this->set(DerivedHashTable::EntryToIndex(entry) + 2, value.AsSmi()); | 4013 this->set(DerivedHashTable::EntryToIndex(entry) + 2, value.AsSmi()); |
4014 } | 4014 } |
4015 | 4015 |
4016 // Sorting support | 4016 // Sorting support |
4017 void CopyValuesTo(FixedArray* elements); | 4017 void CopyValuesTo(FixedArray* elements); |
4018 | 4018 |
4019 // Delete a property from the dictionary. | 4019 // Delete a property from the dictionary. |
4020 Object* DeleteProperty(int entry, JSObject::DeleteMode mode); | |
4021 // TODO(ishell): Temporary wrapper until handlified. | |
4022 static Handle<Object> DeleteProperty( | 4020 static Handle<Object> DeleteProperty( |
4023 Handle<Dictionary> dictionary, | 4021 Handle<Derived> dictionary, |
4024 int entry, | 4022 int entry, |
4025 JSObject::DeleteMode mode); | 4023 JSObject::DeleteMode mode); |
4026 | 4024 |
4027 // Attempt to shrink the dictionary after deletion of key. | 4025 // Attempt to shrink the dictionary after deletion of key. |
4028 static inline Handle<Derived> Shrink(Handle<Derived> dictionary, Key key) { | 4026 static inline Handle<Derived> Shrink(Handle<Derived> dictionary, Key key) { |
4029 return DerivedHashTable::Shrink(dictionary, key); | 4027 return DerivedHashTable::Shrink(dictionary, key); |
4030 } | 4028 } |
4031 | 4029 |
4032 // Returns the number of elements in the dictionary filtering out properties | 4030 // Returns the number of elements in the dictionary filtering out properties |
4033 // with the specified attributes. | 4031 // with the specified attributes. |
(...skipping 7245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11279 } else { | 11277 } else { |
11280 value &= ~(1 << bit_position); | 11278 value &= ~(1 << bit_position); |
11281 } | 11279 } |
11282 return value; | 11280 return value; |
11283 } | 11281 } |
11284 }; | 11282 }; |
11285 | 11283 |
11286 } } // namespace v8::internal | 11284 } } // namespace v8::internal |
11287 | 11285 |
11288 #endif // V8_OBJECTS_H_ | 11286 #endif // V8_OBJECTS_H_ |
OLD | NEW |