| 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 6452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6463 | 6463 |
| 6464 | 6464 |
| 6465 bool JSArrayBuffer::was_neutered() { return WasNeutered::decode(bit_field()); } | 6465 bool JSArrayBuffer::was_neutered() { return WasNeutered::decode(bit_field()); } |
| 6466 | 6466 |
| 6467 | 6467 |
| 6468 void JSArrayBuffer::set_was_neutered(bool value) { | 6468 void JSArrayBuffer::set_was_neutered(bool value) { |
| 6469 set_bit_field(WasNeutered::update(bit_field(), value)); | 6469 set_bit_field(WasNeutered::update(bit_field(), value)); |
| 6470 } | 6470 } |
| 6471 | 6471 |
| 6472 | 6472 |
| 6473 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) |
| 6474 |
| 6475 |
| 6473 Object* JSArrayBufferView::byte_offset() const { | 6476 Object* JSArrayBufferView::byte_offset() const { |
| 6474 if (WasNeutered()) return Smi::FromInt(0); | 6477 if (WasNeutered()) return Smi::FromInt(0); |
| 6475 return Object::cast(READ_FIELD(this, kByteOffsetOffset)); | 6478 return Object::cast(READ_FIELD(this, kByteOffsetOffset)); |
| 6476 } | 6479 } |
| 6477 | 6480 |
| 6478 | 6481 |
| 6479 void JSArrayBufferView::set_byte_offset(Object* value, WriteBarrierMode mode) { | 6482 void JSArrayBufferView::set_byte_offset(Object* value, WriteBarrierMode mode) { |
| 6480 WRITE_FIELD(this, kByteOffsetOffset, value); | 6483 WRITE_FIELD(this, kByteOffsetOffset, value); |
| 6481 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kByteOffsetOffset, value, mode); | 6484 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kByteOffsetOffset, value, mode); |
| 6482 } | 6485 } |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7603 #undef READ_SHORT_FIELD | 7606 #undef READ_SHORT_FIELD |
| 7604 #undef WRITE_SHORT_FIELD | 7607 #undef WRITE_SHORT_FIELD |
| 7605 #undef READ_BYTE_FIELD | 7608 #undef READ_BYTE_FIELD |
| 7606 #undef WRITE_BYTE_FIELD | 7609 #undef WRITE_BYTE_FIELD |
| 7607 #undef NOBARRIER_READ_BYTE_FIELD | 7610 #undef NOBARRIER_READ_BYTE_FIELD |
| 7608 #undef NOBARRIER_WRITE_BYTE_FIELD | 7611 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7609 | 7612 |
| 7610 } } // namespace v8::internal | 7613 } } // namespace v8::internal |
| 7611 | 7614 |
| 7612 #endif // V8_OBJECTS_INL_H_ | 7615 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |