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 2320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2331 Object* value); | 2331 Object* value); |
2332 | 2332 |
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 inline void Initialize(FixedArray* from); | |
2342 inline void Initialize(FixedDoubleArray* from); | |
2343 inline void Initialize(SeededNumberDictionary* from); | |
2344 | |
2345 // Setter and getter for elements. | 2341 // Setter and getter for elements. |
2346 inline double get_scalar(int index); | 2342 inline double get_scalar(int index); |
2347 MUST_USE_RESULT inline MaybeObject* get(int index); | 2343 MUST_USE_RESULT inline MaybeObject* get(int index); |
2348 inline void set(int index, double value); | 2344 inline void set(int index, double value); |
2349 inline void set_the_hole(int index); | 2345 inline void set_the_hole(int index); |
2350 | 2346 |
2351 // Checking for the hole. | 2347 // Checking for the hole. |
2352 inline bool is_the_hole(int index); | 2348 inline bool is_the_hole(int index); |
2353 | 2349 |
2354 // Copy operations | 2350 // Copy operations |
(...skipping 6231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8586 } else { | 8582 } else { |
8587 value &= ~(1 << bit_position); | 8583 value &= ~(1 << bit_position); |
8588 } | 8584 } |
8589 return value; | 8585 return value; |
8590 } | 8586 } |
8591 }; | 8587 }; |
8592 | 8588 |
8593 } } // namespace v8::internal | 8589 } } // namespace v8::internal |
8594 | 8590 |
8595 #endif // V8_OBJECTS_H_ | 8591 #endif // V8_OBJECTS_H_ |
OLD | NEW |