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

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

Issue 149053009: V8 JavaScript shared memory prototype. Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: Tweaks Created 6 years, 6 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.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 // 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 6084 matching lines...) Expand 10 before | Expand all | Expand 10 after
6095 6095
6096 bool JSArrayBuffer::should_be_freed() { 6096 bool JSArrayBuffer::should_be_freed() {
6097 return BooleanBit::get(flag(), kShouldBeFreed); 6097 return BooleanBit::get(flag(), kShouldBeFreed);
6098 } 6098 }
6099 6099
6100 6100
6101 void JSArrayBuffer::set_should_be_freed(bool value) { 6101 void JSArrayBuffer::set_should_be_freed(bool value) {
6102 set_flag(BooleanBit::set(flag(), kShouldBeFreed, value)); 6102 set_flag(BooleanBit::set(flag(), kShouldBeFreed, value));
6103 } 6103 }
6104 6104
6105 bool JSArrayBuffer::is_shared() {
6106 return BooleanBit::get(flag(), kShared);
6107 }
6108
6109 void JSArrayBuffer::set_is_shared(bool value) {
6110 set_flag(BooleanBit::set(flag(), kShared, value));
6111 }
6105 6112
6106 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) 6113 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset)
6107 ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset) 6114 ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset)
6108 6115
6109 6116
6110 ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset) 6117 ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset)
6111 ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset) 6118 ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset)
6112 ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset) 6119 ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset)
6113 ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset) 6120 ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset)
6114 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) 6121 ACCESSORS(JSTypedArray, length, Object, kLengthOffset)
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
7049 #undef READ_SHORT_FIELD 7056 #undef READ_SHORT_FIELD
7050 #undef WRITE_SHORT_FIELD 7057 #undef WRITE_SHORT_FIELD
7051 #undef READ_BYTE_FIELD 7058 #undef READ_BYTE_FIELD
7052 #undef WRITE_BYTE_FIELD 7059 #undef WRITE_BYTE_FIELD
7053 #undef NOBARRIER_READ_BYTE_FIELD 7060 #undef NOBARRIER_READ_BYTE_FIELD
7054 #undef NOBARRIER_WRITE_BYTE_FIELD 7061 #undef NOBARRIER_WRITE_BYTE_FIELD
7055 7062
7056 } } // namespace v8::internal 7063 } } // namespace v8::internal
7057 7064
7058 #endif // V8_OBJECTS_INL_H_ 7065 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698