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

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

Issue 684103002: allow disabling of ArrayBuffer neutering (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-typedarray.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 6282 matching lines...) Expand 10 before | Expand all | Expand 10 after
6293 bool JSArrayBuffer::should_be_freed() { 6293 bool JSArrayBuffer::should_be_freed() {
6294 return BooleanBit::get(flag(), kShouldBeFreed); 6294 return BooleanBit::get(flag(), kShouldBeFreed);
6295 } 6295 }
6296 6296
6297 6297
6298 void JSArrayBuffer::set_should_be_freed(bool value) { 6298 void JSArrayBuffer::set_should_be_freed(bool value) {
6299 set_flag(BooleanBit::set(flag(), kShouldBeFreed, value)); 6299 set_flag(BooleanBit::set(flag(), kShouldBeFreed, value));
6300 } 6300 }
6301 6301
6302 6302
6303 bool JSArrayBuffer::is_neuterable() {
6304 return BooleanBit::get(flag(), kIsNeuterableBit);
6305 }
6306
6307
6308 void JSArrayBuffer::set_is_neuterable(bool value) {
6309 set_flag(BooleanBit::set(flag(), kIsNeuterableBit, value));
6310 }
6311
6312
6303 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) 6313 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset)
6304 ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset) 6314 ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset)
6305 6315
6306 6316
6307 ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset) 6317 ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset)
6308 ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset) 6318 ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset)
6309 ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset) 6319 ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset)
6310 ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset) 6320 ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset)
6311 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) 6321 ACCESSORS(JSTypedArray, length, Object, kLengthOffset)
6312 6322
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
7278 #undef READ_SHORT_FIELD 7288 #undef READ_SHORT_FIELD
7279 #undef WRITE_SHORT_FIELD 7289 #undef WRITE_SHORT_FIELD
7280 #undef READ_BYTE_FIELD 7290 #undef READ_BYTE_FIELD
7281 #undef WRITE_BYTE_FIELD 7291 #undef WRITE_BYTE_FIELD
7282 #undef NOBARRIER_READ_BYTE_FIELD 7292 #undef NOBARRIER_READ_BYTE_FIELD
7283 #undef NOBARRIER_WRITE_BYTE_FIELD 7293 #undef NOBARRIER_WRITE_BYTE_FIELD
7284 7294
7285 } } // namespace v8::internal 7295 } } // namespace v8::internal
7286 7296
7287 #endif // V8_OBJECTS_INL_H_ 7297 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698