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

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

Issue 2862763002: [wasm] Avoid js-typed-lowering optimization for wasm Memory objects (Closed)
Patch Set: Cleanup Created 3 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/wasm/wasm-module.cc » ('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 6950 matching lines...) Expand 10 before | Expand all | Expand 10 after
6961 } 6961 }
6962 6962
6963 bool JSArrayBuffer::has_guard_region() { 6963 bool JSArrayBuffer::has_guard_region() {
6964 return HasGuardRegion::decode(bit_field()); 6964 return HasGuardRegion::decode(bit_field());
6965 } 6965 }
6966 6966
6967 void JSArrayBuffer::set_has_guard_region(bool value) { 6967 void JSArrayBuffer::set_has_guard_region(bool value) {
6968 set_bit_field(HasGuardRegion::update(bit_field(), value)); 6968 set_bit_field(HasGuardRegion::update(bit_field(), value));
6969 } 6969 }
6970 6970
6971 bool JSArrayBuffer::is_wasm_buffer() {
6972 return IsWasmBuffer::decode(bit_field());
6973 }
6974
6975 void JSArrayBuffer::set_is_wasm_buffer(bool value) {
6976 set_bit_field(IsWasmBuffer::update(bit_field(), value));
6977 }
6978
6971 Object* JSArrayBufferView::byte_offset() const { 6979 Object* JSArrayBufferView::byte_offset() const {
6972 if (WasNeutered()) return Smi::kZero; 6980 if (WasNeutered()) return Smi::kZero;
6973 return Object::cast(READ_FIELD(this, kByteOffsetOffset)); 6981 return Object::cast(READ_FIELD(this, kByteOffsetOffset));
6974 } 6982 }
6975 6983
6976 6984
6977 void JSArrayBufferView::set_byte_offset(Object* value, WriteBarrierMode mode) { 6985 void JSArrayBufferView::set_byte_offset(Object* value, WriteBarrierMode mode) {
6978 WRITE_FIELD(this, kByteOffsetOffset, value); 6986 WRITE_FIELD(this, kByteOffsetOffset, value);
6979 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kByteOffsetOffset, value, mode); 6987 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kByteOffsetOffset, value, mode);
6980 } 6988 }
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
8239 #undef WRITE_BYTE_FIELD 8247 #undef WRITE_BYTE_FIELD
8240 #undef NOBARRIER_READ_BYTE_FIELD 8248 #undef NOBARRIER_READ_BYTE_FIELD
8241 #undef NOBARRIER_WRITE_BYTE_FIELD 8249 #undef NOBARRIER_WRITE_BYTE_FIELD
8242 8250
8243 } // namespace internal 8251 } // namespace internal
8244 } // namespace v8 8252 } // namespace v8
8245 8253
8246 #include "src/objects/object-macros-undef.h" 8254 #include "src/objects/object-macros-undef.h"
8247 8255
8248 #endif // V8_OBJECTS_INL_H_ 8256 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698