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 2322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2333 private: | 2333 private: |
2334 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); | 2334 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); |
2335 }; | 2335 }; |
2336 | 2336 |
2337 | 2337 |
2338 // FixedDoubleArray describes fixed-sized arrays with element type double. | 2338 // FixedDoubleArray describes fixed-sized arrays with element type double. |
2339 class FixedDoubleArray: public FixedArrayBase { | 2339 class FixedDoubleArray: public FixedArrayBase { |
2340 public: | 2340 public: |
2341 // Setter and getter for elements. | 2341 // Setter and getter for elements. |
2342 inline double get_scalar(int index); | 2342 inline double get_scalar(int index); |
| 2343 inline int64_t get_representation(int index); |
2343 MUST_USE_RESULT inline MaybeObject* get(int index); | 2344 MUST_USE_RESULT inline MaybeObject* get(int index); |
2344 inline void set(int index, double value); | 2345 inline void set(int index, double value); |
2345 inline void set_the_hole(int index); | 2346 inline void set_the_hole(int index); |
2346 | 2347 |
2347 // Checking for the hole. | 2348 // Checking for the hole. |
2348 inline bool is_the_hole(int index); | 2349 inline bool is_the_hole(int index); |
2349 | 2350 |
2350 // Copy operations | 2351 // Copy operations |
2351 MUST_USE_RESULT inline MaybeObject* Copy(); | 2352 MUST_USE_RESULT inline MaybeObject* Copy(); |
2352 | 2353 |
(...skipping 6226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8579 } else { | 8580 } else { |
8580 value &= ~(1 << bit_position); | 8581 value &= ~(1 << bit_position); |
8581 } | 8582 } |
8582 return value; | 8583 return value; |
8583 } | 8584 } |
8584 }; | 8585 }; |
8585 | 8586 |
8586 } } // namespace v8::internal | 8587 } } // namespace v8::internal |
8587 | 8588 |
8588 #endif // V8_OBJECTS_H_ | 8589 #endif // V8_OBJECTS_H_ |
OLD | NEW |