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 3117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3128 }; | 3128 }; |
3129 | 3129 |
3130 | 3130 |
3131 // FixedDoubleArray describes fixed-sized arrays with element type double. | 3131 // FixedDoubleArray describes fixed-sized arrays with element type double. |
3132 class FixedDoubleArray: public FixedArrayBase { | 3132 class FixedDoubleArray: public FixedArrayBase { |
3133 public: | 3133 public: |
3134 // Setter and getter for elements. | 3134 // Setter and getter for elements. |
3135 inline double get_scalar(int index); | 3135 inline double get_scalar(int index); |
3136 inline int64_t get_representation(int index); | 3136 inline int64_t get_representation(int index); |
3137 MUST_USE_RESULT inline MaybeObject* get(int index); | 3137 MUST_USE_RESULT inline MaybeObject* get(int index); |
| 3138 // TODO(ishell): Rename as get() once all usages handlified. |
| 3139 inline Handle<Object> get_as_handle(int index); |
3138 inline void set(int index, double value); | 3140 inline void set(int index, double value); |
3139 inline void set_the_hole(int index); | 3141 inline void set_the_hole(int index); |
3140 | 3142 |
3141 // Checking for the hole. | 3143 // Checking for the hole. |
3142 inline bool is_the_hole(int index); | 3144 inline bool is_the_hole(int index); |
3143 | 3145 |
3144 // Copy operations | 3146 // Copy operations |
3145 MUST_USE_RESULT inline MaybeObject* Copy(); | 3147 MUST_USE_RESULT inline MaybeObject* Copy(); |
3146 | 3148 |
3147 // Garbage collection support. | 3149 // Garbage collection support. |
(...skipping 7664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10812 } else { | 10814 } else { |
10813 value &= ~(1 << bit_position); | 10815 value &= ~(1 << bit_position); |
10814 } | 10816 } |
10815 return value; | 10817 return value; |
10816 } | 10818 } |
10817 }; | 10819 }; |
10818 | 10820 |
10819 } } // namespace v8::internal | 10821 } } // namespace v8::internal |
10820 | 10822 |
10821 #endif // V8_OBJECTS_H_ | 10823 #endif // V8_OBJECTS_H_ |
OLD | NEW |