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 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 inline void set(int index, Object* value); | 2906 inline void set(int index, Object* value); |
2907 inline bool is_the_hole(int index); | 2907 inline bool is_the_hole(int index); |
2908 | 2908 |
2909 // Setter that doesn't need write barrier. | 2909 // Setter that doesn't need write barrier. |
2910 inline void set(int index, Smi* value); | 2910 inline void set(int index, Smi* value); |
2911 // Setter with explicit barrier mode. | 2911 // Setter with explicit barrier mode. |
2912 inline void set(int index, Object* value, WriteBarrierMode mode); | 2912 inline void set(int index, Object* value, WriteBarrierMode mode); |
2913 | 2913 |
2914 // Setters for frequently used oddballs located in old space. | 2914 // Setters for frequently used oddballs located in old space. |
2915 inline void set_undefined(int index); | 2915 inline void set_undefined(int index); |
2916 // TODO(isolates): duplicate. | |
2917 inline void set_undefined(Heap* heap, int index); | |
2918 inline void set_null(int index); | 2916 inline void set_null(int index); |
2919 // TODO(isolates): duplicate. | |
2920 inline void set_null(Heap* heap, int index); | |
2921 inline void set_the_hole(int index); | 2917 inline void set_the_hole(int index); |
2922 | 2918 |
2923 inline Object** GetFirstElementAddress(); | 2919 inline Object** GetFirstElementAddress(); |
2924 inline bool ContainsOnlySmisOrHoles(); | 2920 inline bool ContainsOnlySmisOrHoles(); |
2925 | 2921 |
2926 // Gives access to raw memory which stores the array's data. | 2922 // Gives access to raw memory which stores the array's data. |
2927 inline Object** data_start(); | 2923 inline Object** data_start(); |
2928 | 2924 |
2929 // Copy operations. | 2925 // Copy operations. |
2930 MUST_USE_RESULT inline MaybeObject* Copy(); | 2926 MUST_USE_RESULT inline MaybeObject* Copy(); |
(...skipping 7275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10206 } else { | 10202 } else { |
10207 value &= ~(1 << bit_position); | 10203 value &= ~(1 << bit_position); |
10208 } | 10204 } |
10209 return value; | 10205 return value; |
10210 } | 10206 } |
10211 }; | 10207 }; |
10212 | 10208 |
10213 } } // namespace v8::internal | 10209 } } // namespace v8::internal |
10214 | 10210 |
10215 #endif // V8_OBJECTS_H_ | 10211 #endif // V8_OBJECTS_H_ |
OLD | NEW |