| 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 5441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5452 bool JSArrayBuffer::is_external() { | 5452 bool JSArrayBuffer::is_external() { |
| 5453 return BooleanBit::get(flag(), kIsExternalBit); | 5453 return BooleanBit::get(flag(), kIsExternalBit); |
| 5454 } | 5454 } |
| 5455 | 5455 |
| 5456 | 5456 |
| 5457 void JSArrayBuffer::set_is_external(bool value) { | 5457 void JSArrayBuffer::set_is_external(bool value) { |
| 5458 set_flag(BooleanBit::set(flag(), kIsExternalBit, value)); | 5458 set_flag(BooleanBit::set(flag(), kIsExternalBit, value)); |
| 5459 } | 5459 } |
| 5460 | 5460 |
| 5461 | 5461 |
| 5462 bool JSArrayBuffer::should_be_freed() { |
| 5463 return BooleanBit::get(flag(), kShouldBeFreed); |
| 5464 } |
| 5465 |
| 5466 |
| 5467 void JSArrayBuffer::set_should_be_freed(bool value) { |
| 5468 set_flag(BooleanBit::set(flag(), kShouldBeFreed, value)); |
| 5469 } |
| 5470 |
| 5471 |
| 5462 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) | 5472 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) |
| 5463 ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset) | 5473 ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset) |
| 5464 | 5474 |
| 5465 | 5475 |
| 5466 ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset) | 5476 ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset) |
| 5467 ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset) | 5477 ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset) |
| 5468 ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset) | 5478 ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset) |
| 5469 ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset) | 5479 ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset) |
| 5470 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) | 5480 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) |
| 5471 | 5481 |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6414 #undef WRITE_UINT32_FIELD | 6424 #undef WRITE_UINT32_FIELD |
| 6415 #undef READ_SHORT_FIELD | 6425 #undef READ_SHORT_FIELD |
| 6416 #undef WRITE_SHORT_FIELD | 6426 #undef WRITE_SHORT_FIELD |
| 6417 #undef READ_BYTE_FIELD | 6427 #undef READ_BYTE_FIELD |
| 6418 #undef WRITE_BYTE_FIELD | 6428 #undef WRITE_BYTE_FIELD |
| 6419 | 6429 |
| 6420 | 6430 |
| 6421 } } // namespace v8::internal | 6431 } } // namespace v8::internal |
| 6422 | 6432 |
| 6423 #endif // V8_OBJECTS_INL_H_ | 6433 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |