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 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2329 Object* value); | 2329 Object* value); |
2330 | 2330 |
2331 private: | 2331 private: |
2332 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); | 2332 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); |
2333 }; | 2333 }; |
2334 | 2334 |
2335 | 2335 |
2336 // FixedDoubleArray describes fixed-sized arrays with element type double. | 2336 // FixedDoubleArray describes fixed-sized arrays with element type double. |
2337 class FixedDoubleArray: public FixedArrayBase { | 2337 class FixedDoubleArray: public FixedArrayBase { |
2338 public: | 2338 public: |
2339 inline void Initialize(FixedArray* from); | |
2340 inline void Initialize(FixedDoubleArray* from); | |
2341 inline void Initialize(SeededNumberDictionary* from); | |
2342 | |
2343 // Setter and getter for elements. | 2339 // Setter and getter for elements. |
2344 inline double get_scalar(int index); | 2340 inline double get_scalar(int index); |
2345 MUST_USE_RESULT inline MaybeObject* get(int index); | 2341 MUST_USE_RESULT inline MaybeObject* get(int index); |
2346 inline void set(int index, double value); | 2342 inline void set(int index, double value); |
2347 inline void set_the_hole(int index); | 2343 inline void set_the_hole(int index); |
2348 | 2344 |
2349 // Checking for the hole. | 2345 // Checking for the hole. |
2350 inline bool is_the_hole(int index); | 2346 inline bool is_the_hole(int index); |
2351 | 2347 |
2352 // Copy operations | 2348 // Copy operations |
(...skipping 6218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8571 } else { | 8567 } else { |
8572 value &= ~(1 << bit_position); | 8568 value &= ~(1 << bit_position); |
8573 } | 8569 } |
8574 return value; | 8570 return value; |
8575 } | 8571 } |
8576 }; | 8572 }; |
8577 | 8573 |
8578 } } // namespace v8::internal | 8574 } } // namespace v8::internal |
8579 | 8575 |
8580 #endif // V8_OBJECTS_H_ | 8576 #endif // V8_OBJECTS_H_ |
OLD | NEW |