OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2408 | 2408 |
2409 | 2409 |
2410 class FixedDoubleArray; | 2410 class FixedDoubleArray; |
2411 class IncrementalMarking; | 2411 class IncrementalMarking; |
2412 | 2412 |
2413 | 2413 |
2414 // FixedArray describes fixed-sized arrays with element type Object*. | 2414 // FixedArray describes fixed-sized arrays with element type Object*. |
2415 class FixedArray: public FixedArrayBase { | 2415 class FixedArray: public FixedArrayBase { |
2416 public: | 2416 public: |
2417 // Setter and getter for elements. | 2417 // Setter and getter for elements. |
2418 inline Object* get(int index); | 2418 inline Object* get(int index) const; |
2419 static inline Handle<Object> get(Handle<FixedArray> array, int index); | 2419 static inline Handle<Object> get(Handle<FixedArray> array, int index); |
2420 // Setter that uses write barrier. | 2420 // Setter that uses write barrier. |
2421 inline void set(int index, Object* value); | 2421 inline void set(int index, Object* value); |
2422 inline bool is_the_hole(int index); | 2422 inline bool is_the_hole(int index); |
2423 | 2423 |
2424 // Setter that doesn't need write barrier. | 2424 // Setter that doesn't need write barrier. |
2425 inline void set(int index, Smi* value); | 2425 inline void set(int index, Smi* value); |
2426 // Setter with explicit barrier mode. | 2426 // Setter with explicit barrier mode. |
2427 inline void set(int index, Object* value, WriteBarrierMode mode); | 2427 inline void set(int index, Object* value, WriteBarrierMode mode); |
2428 | 2428 |
(...skipping 8482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10911 } else { | 10911 } else { |
10912 value &= ~(1 << bit_position); | 10912 value &= ~(1 << bit_position); |
10913 } | 10913 } |
10914 return value; | 10914 return value; |
10915 } | 10915 } |
10916 }; | 10916 }; |
10917 | 10917 |
10918 } } // namespace v8::internal | 10918 } } // namespace v8::internal |
10919 | 10919 |
10920 #endif // V8_OBJECTS_H_ | 10920 #endif // V8_OBJECTS_H_ |
OLD | NEW |