| 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 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 Handle<Object> value, | 2369 Handle<Object> value, |
| 2370 StrictModeFlag strict_mode); | 2370 StrictModeFlag strict_mode); |
| 2371 | 2371 |
| 2372 // Empty handle is returned if the element cannot be set to the given value. | 2372 // Empty handle is returned if the element cannot be set to the given value. |
| 2373 static Handle<Object> SetElement( | 2373 static Handle<Object> SetElement( |
| 2374 Handle<JSObject> object, | 2374 Handle<JSObject> object, |
| 2375 uint32_t index, | 2375 uint32_t index, |
| 2376 Handle<Object> value, | 2376 Handle<Object> value, |
| 2377 PropertyAttributes attr, | 2377 PropertyAttributes attr, |
| 2378 StrictModeFlag strict_mode, | 2378 StrictModeFlag strict_mode, |
| 2379 bool check_prototype = true, |
| 2379 SetPropertyMode set_mode = SET_PROPERTY); | 2380 SetPropertyMode set_mode = SET_PROPERTY); |
| 2380 | 2381 |
| 2381 // A Failure object is returned if GC is needed. | 2382 // A Failure object is returned if GC is needed. |
| 2382 MUST_USE_RESULT MaybeObject* SetElement( | 2383 MUST_USE_RESULT MaybeObject* SetElement( |
| 2383 uint32_t index, | 2384 uint32_t index, |
| 2384 Object* value, | 2385 Object* value, |
| 2385 PropertyAttributes attributes, | 2386 PropertyAttributes attributes, |
| 2386 StrictModeFlag strict_mode, | 2387 StrictModeFlag strict_mode, |
| 2387 bool check_prototype = true, | 2388 bool check_prototype = true, |
| 2388 SetPropertyMode set_mode = SET_PROPERTY); | 2389 SetPropertyMode set_mode = SET_PROPERTY); |
| (...skipping 8087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10476 } else { | 10477 } else { |
| 10477 value &= ~(1 << bit_position); | 10478 value &= ~(1 << bit_position); |
| 10478 } | 10479 } |
| 10479 return value; | 10480 return value; |
| 10480 } | 10481 } |
| 10481 }; | 10482 }; |
| 10482 | 10483 |
| 10483 } } // namespace v8::internal | 10484 } } // namespace v8::internal |
| 10484 | 10485 |
| 10485 #endif // V8_OBJECTS_H_ | 10486 #endif // V8_OBJECTS_H_ |
| OLD | NEW |