| 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 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 Object* value, | 1873 Object* value, |
| 1874 StrictModeFlag strict_mode, | 1874 StrictModeFlag strict_mode, |
| 1875 bool check_prototype = true); | 1875 bool check_prototype = true); |
| 1876 | 1876 |
| 1877 static Handle<Object> SetOwnElement(Handle<JSObject> object, | 1877 static Handle<Object> SetOwnElement(Handle<JSObject> object, |
| 1878 uint32_t index, | 1878 uint32_t index, |
| 1879 Handle<Object> value, | 1879 Handle<Object> value, |
| 1880 StrictModeFlag strict_mode); | 1880 StrictModeFlag strict_mode); |
| 1881 | 1881 |
| 1882 // Empty handle is returned if the element cannot be set to the given value. | 1882 // Empty handle is returned if the element cannot be set to the given value. |
| 1883 static MUST_USE_RESULT Handle<Object> SetElement( | 1883 static Handle<Object> SetElement( |
| 1884 Handle<JSObject> object, | 1884 Handle<JSObject> object, |
| 1885 uint32_t index, | 1885 uint32_t index, |
| 1886 Handle<Object> value, | 1886 Handle<Object> value, |
| 1887 PropertyAttributes attr, | 1887 PropertyAttributes attr, |
| 1888 StrictModeFlag strict_mode, | 1888 StrictModeFlag strict_mode, |
| 1889 SetPropertyMode set_mode = SET_PROPERTY); | 1889 SetPropertyMode set_mode = SET_PROPERTY); |
| 1890 | 1890 |
| 1891 // A Failure object is returned if GC is needed. | 1891 // A Failure object is returned if GC is needed. |
| 1892 MUST_USE_RESULT MaybeObject* SetElement( | 1892 MUST_USE_RESULT MaybeObject* SetElement( |
| 1893 uint32_t index, | 1893 uint32_t index, |
| (...skipping 7107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9001 } else { | 9001 } else { |
| 9002 value &= ~(1 << bit_position); | 9002 value &= ~(1 << bit_position); |
| 9003 } | 9003 } |
| 9004 return value; | 9004 return value; |
| 9005 } | 9005 } |
| 9006 }; | 9006 }; |
| 9007 | 9007 |
| 9008 } } // namespace v8::internal | 9008 } } // namespace v8::internal |
| 9009 | 9009 |
| 9010 #endif // V8_OBJECTS_H_ | 9010 #endif // V8_OBJECTS_H_ |
| OLD | NEW |