Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: src/objects-inl.h

Issue 1149203003: Revert of Implement SharedArrayBuffer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6471 matching lines...) Expand 10 before | Expand all | Expand 10 after
6482 6482
6483 6483
6484 bool JSArrayBuffer::was_neutered() { return WasNeutered::decode(bit_field()); } 6484 bool JSArrayBuffer::was_neutered() { return WasNeutered::decode(bit_field()); }
6485 6485
6486 6486
6487 void JSArrayBuffer::set_was_neutered(bool value) { 6487 void JSArrayBuffer::set_was_neutered(bool value) {
6488 set_bit_field(WasNeutered::update(bit_field(), value)); 6488 set_bit_field(WasNeutered::update(bit_field(), value));
6489 } 6489 }
6490 6490
6491 6491
6492 bool JSArrayBuffer::is_shared() { return IsShared::decode(bit_field()); }
6493
6494
6495 void JSArrayBuffer::set_is_shared(bool value) {
6496 set_bit_field(IsShared::update(bit_field(), value));
6497 }
6498
6499
6500 Object* JSArrayBufferView::byte_offset() const { 6492 Object* JSArrayBufferView::byte_offset() const {
6501 if (WasNeutered()) return Smi::FromInt(0); 6493 if (WasNeutered()) return Smi::FromInt(0);
6502 return Object::cast(READ_FIELD(this, kByteOffsetOffset)); 6494 return Object::cast(READ_FIELD(this, kByteOffsetOffset));
6503 } 6495 }
6504 6496
6505 6497
6506 void JSArrayBufferView::set_byte_offset(Object* value, WriteBarrierMode mode) { 6498 void JSArrayBufferView::set_byte_offset(Object* value, WriteBarrierMode mode) {
6507 WRITE_FIELD(this, kByteOffsetOffset, value); 6499 WRITE_FIELD(this, kByteOffsetOffset, value);
6508 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kByteOffsetOffset, value, mode); 6500 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kByteOffsetOffset, value, mode);
6509 } 6501 }
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
7640 #undef READ_SHORT_FIELD 7632 #undef READ_SHORT_FIELD
7641 #undef WRITE_SHORT_FIELD 7633 #undef WRITE_SHORT_FIELD
7642 #undef READ_BYTE_FIELD 7634 #undef READ_BYTE_FIELD
7643 #undef WRITE_BYTE_FIELD 7635 #undef WRITE_BYTE_FIELD
7644 #undef NOBARRIER_READ_BYTE_FIELD 7636 #undef NOBARRIER_READ_BYTE_FIELD
7645 #undef NOBARRIER_WRITE_BYTE_FIELD 7637 #undef NOBARRIER_WRITE_BYTE_FIELD
7646 7638
7647 } } // namespace v8::internal 7639 } } // namespace v8::internal
7648 7640
7649 #endif // V8_OBJECTS_INL_H_ 7641 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698