| 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 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1866 uint32_t index, | 1866 uint32_t index, |
| 1867 Object* value, | 1867 Object* value, |
| 1868 PropertyAttributes attributes, | 1868 PropertyAttributes attributes, |
| 1869 StrictModeFlag strict_mode, | 1869 StrictModeFlag strict_mode, |
| 1870 bool check_prototype = true, | 1870 bool check_prototype = true, |
| 1871 SetPropertyMode set_mode = SET_PROPERTY); | 1871 SetPropertyMode set_mode = SET_PROPERTY); |
| 1872 | 1872 |
| 1873 // Returns the index'th element. | 1873 // Returns the index'th element. |
| 1874 // The undefined object if index is out of bounds. | 1874 // The undefined object if index is out of bounds. |
| 1875 MUST_USE_RESULT MaybeObject* GetElementWithInterceptor(Object* receiver, | 1875 MUST_USE_RESULT MaybeObject* GetElementWithInterceptor(Object* receiver, |
| 1876 uint32_t index); | 1876 uint32_t index, |
| 1877 Isolate* isolate); |
| 1877 | 1878 |
| 1878 enum SetFastElementsCapacitySmiMode { | 1879 enum SetFastElementsCapacitySmiMode { |
| 1879 kAllowSmiElements, | 1880 kAllowSmiElements, |
| 1880 kForceSmiElements, | 1881 kForceSmiElements, |
| 1881 kDontAllowSmiElements | 1882 kDontAllowSmiElements |
| 1882 }; | 1883 }; |
| 1883 | 1884 |
| 1884 // Replace the elements' backing store with fast elements of the given | 1885 // Replace the elements' backing store with fast elements of the given |
| 1885 // capacity. Update the length for JSArrays. Returns the new backing | 1886 // capacity. Update the length for JSArrays. Returns the new backing |
| 1886 // store. | 1887 // store. |
| (...skipping 7051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8938 } else { | 8939 } else { |
| 8939 value &= ~(1 << bit_position); | 8940 value &= ~(1 << bit_position); |
| 8940 } | 8941 } |
| 8941 return value; | 8942 return value; |
| 8942 } | 8943 } |
| 8943 }; | 8944 }; |
| 8944 | 8945 |
| 8945 } } // namespace v8::internal | 8946 } } // namespace v8::internal |
| 8946 | 8947 |
| 8947 #endif // V8_OBJECTS_H_ | 8948 #endif // V8_OBJECTS_H_ |
| OLD | NEW |