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 4181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4192 return reinterpret_cast<SeededNumberDictionary*>(obj); | 4192 return reinterpret_cast<SeededNumberDictionary*>(obj); |
4193 } | 4193 } |
4194 | 4194 |
4195 // Type specific at put (default NONE attributes is used when adding). | 4195 // Type specific at put (default NONE attributes is used when adding). |
4196 MUST_USE_RESULT MaybeObject* AtNumberPut(uint32_t key, Object* value); | 4196 MUST_USE_RESULT MaybeObject* AtNumberPut(uint32_t key, Object* value); |
4197 MUST_USE_RESULT static Handle<SeededNumberDictionary> AddNumberEntry( | 4197 MUST_USE_RESULT static Handle<SeededNumberDictionary> AddNumberEntry( |
4198 Handle<SeededNumberDictionary> dictionary, | 4198 Handle<SeededNumberDictionary> dictionary, |
4199 uint32_t key, | 4199 uint32_t key, |
4200 Handle<Object> value, | 4200 Handle<Object> value, |
4201 PropertyDetails details); | 4201 PropertyDetails details); |
4202 MUST_USE_RESULT MaybeObject* AddNumberEntry(uint32_t key, | |
4203 Object* value, | |
4204 PropertyDetails details); | |
4205 | 4202 |
4206 // Set an existing entry or add a new one if needed. | 4203 // Set an existing entry or add a new one if needed. |
4207 // Return the updated dictionary. | 4204 // Return the updated dictionary. |
4208 MUST_USE_RESULT static Handle<SeededNumberDictionary> Set( | 4205 MUST_USE_RESULT static Handle<SeededNumberDictionary> Set( |
4209 Handle<SeededNumberDictionary> dictionary, | 4206 Handle<SeededNumberDictionary> dictionary, |
4210 uint32_t key, | 4207 uint32_t key, |
4211 Handle<Object> value, | 4208 Handle<Object> value, |
4212 PropertyDetails details); | 4209 PropertyDetails details); |
4213 | 4210 |
4214 MUST_USE_RESULT MaybeObject* Set(uint32_t key, | 4211 MUST_USE_RESULT MaybeObject* Set(uint32_t key, |
(...skipping 27 matching lines...) Expand all Loading... |
4242 UnseededNumberDictionaryShape, | 4239 UnseededNumberDictionaryShape, |
4243 uint32_t> { | 4240 uint32_t> { |
4244 public: | 4241 public: |
4245 static UnseededNumberDictionary* cast(Object* obj) { | 4242 static UnseededNumberDictionary* cast(Object* obj) { |
4246 ASSERT(obj->IsDictionary()); | 4243 ASSERT(obj->IsDictionary()); |
4247 return reinterpret_cast<UnseededNumberDictionary*>(obj); | 4244 return reinterpret_cast<UnseededNumberDictionary*>(obj); |
4248 } | 4245 } |
4249 | 4246 |
4250 // Type specific at put (default NONE attributes is used when adding). | 4247 // Type specific at put (default NONE attributes is used when adding). |
4251 MUST_USE_RESULT MaybeObject* AtNumberPut(uint32_t key, Object* value); | 4248 MUST_USE_RESULT MaybeObject* AtNumberPut(uint32_t key, Object* value); |
4252 MUST_USE_RESULT MaybeObject* AddNumberEntry(uint32_t key, Object* value); | |
4253 MUST_USE_RESULT static Handle<UnseededNumberDictionary> AddNumberEntry( | 4249 MUST_USE_RESULT static Handle<UnseededNumberDictionary> AddNumberEntry( |
4254 Handle<UnseededNumberDictionary> dictionary, | 4250 Handle<UnseededNumberDictionary> dictionary, |
4255 uint32_t key, | 4251 uint32_t key, |
4256 Handle<Object> value); | 4252 Handle<Object> value); |
4257 | 4253 |
4258 // Set an existing entry or add a new one if needed. | 4254 // Set an existing entry or add a new one if needed. |
4259 // Return the updated dictionary. | 4255 // Return the updated dictionary. |
4260 MUST_USE_RESULT static Handle<UnseededNumberDictionary> Set( | 4256 MUST_USE_RESULT static Handle<UnseededNumberDictionary> Set( |
4261 Handle<UnseededNumberDictionary> dictionary, | 4257 Handle<UnseededNumberDictionary> dictionary, |
4262 uint32_t key, | 4258 uint32_t key, |
(...skipping 7018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11281 } else { | 11277 } else { |
11282 value &= ~(1 << bit_position); | 11278 value &= ~(1 << bit_position); |
11283 } | 11279 } |
11284 return value; | 11280 return value; |
11285 } | 11281 } |
11286 }; | 11282 }; |
11287 | 11283 |
11288 } } // namespace v8::internal | 11284 } } // namespace v8::internal |
11289 | 11285 |
11290 #endif // V8_OBJECTS_H_ | 11286 #endif // V8_OBJECTS_H_ |
OLD | NEW |