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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 6429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6440 | 6440 |
6441 | 6441 |
6442 bool JSArrayBuffer::is_external() { return IsExternal::decode(bit_field()); } | 6442 bool JSArrayBuffer::is_external() { return IsExternal::decode(bit_field()); } |
6443 | 6443 |
6444 | 6444 |
6445 void JSArrayBuffer::set_is_external(bool value) { | 6445 void JSArrayBuffer::set_is_external(bool value) { |
6446 set_bit_field(IsExternal::update(bit_field(), value)); | 6446 set_bit_field(IsExternal::update(bit_field(), value)); |
6447 } | 6447 } |
6448 | 6448 |
6449 | 6449 |
6450 bool JSArrayBuffer::should_be_freed() { | |
6451 return ShouldBeFreed::decode(bit_field()); | |
6452 } | |
6453 | |
6454 | |
6455 void JSArrayBuffer::set_should_be_freed(bool value) { | |
6456 set_bit_field(ShouldBeFreed::update(bit_field(), value)); | |
6457 } | |
6458 | |
6459 | |
6460 bool JSArrayBuffer::is_neuterable() { | 6450 bool JSArrayBuffer::is_neuterable() { |
6461 return IsNeuterable::decode(bit_field()); | 6451 return IsNeuterable::decode(bit_field()); |
6462 } | 6452 } |
6463 | 6453 |
6464 | 6454 |
6465 void JSArrayBuffer::set_is_neuterable(bool value) { | 6455 void JSArrayBuffer::set_is_neuterable(bool value) { |
6466 set_bit_field(IsNeuterable::update(bit_field(), value)); | 6456 set_bit_field(IsNeuterable::update(bit_field(), value)); |
6467 } | 6457 } |
6468 | 6458 |
6469 | 6459 |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7611 #undef READ_SHORT_FIELD | 7601 #undef READ_SHORT_FIELD |
7612 #undef WRITE_SHORT_FIELD | 7602 #undef WRITE_SHORT_FIELD |
7613 #undef READ_BYTE_FIELD | 7603 #undef READ_BYTE_FIELD |
7614 #undef WRITE_BYTE_FIELD | 7604 #undef WRITE_BYTE_FIELD |
7615 #undef NOBARRIER_READ_BYTE_FIELD | 7605 #undef NOBARRIER_READ_BYTE_FIELD |
7616 #undef NOBARRIER_WRITE_BYTE_FIELD | 7606 #undef NOBARRIER_WRITE_BYTE_FIELD |
7617 | 7607 |
7618 } } // namespace v8::internal | 7608 } } // namespace v8::internal |
7619 | 7609 |
7620 #endif // V8_OBJECTS_INL_H_ | 7610 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |