OLD | NEW |
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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 return new_space_front; | 1932 return new_space_front; |
1933 } | 1933 } |
1934 | 1934 |
1935 | 1935 |
1936 STATIC_ASSERT((FixedDoubleArray::kHeaderSize & kDoubleAlignmentMask) == | 1936 STATIC_ASSERT((FixedDoubleArray::kHeaderSize & kDoubleAlignmentMask) == |
1937 0); // NOLINT | 1937 0); // NOLINT |
1938 STATIC_ASSERT((ConstantPoolArray::kFirstEntryOffset & kDoubleAlignmentMask) == | 1938 STATIC_ASSERT((ConstantPoolArray::kFirstEntryOffset & kDoubleAlignmentMask) == |
1939 0); // NOLINT | 1939 0); // NOLINT |
1940 STATIC_ASSERT((ConstantPoolArray::kExtendedFirstOffset & | 1940 STATIC_ASSERT((ConstantPoolArray::kExtendedFirstOffset & |
1941 kDoubleAlignmentMask) == 0); // NOLINT | 1941 kDoubleAlignmentMask) == 0); // NOLINT |
| 1942 STATIC_ASSERT((FixedTypedArrayBase::kDataOffset & kDoubleAlignmentMask) == |
| 1943 0); // NOLINT |
1942 | 1944 |
1943 | 1945 |
1944 HeapObject* Heap::EnsureDoubleAligned(HeapObject* object, int size) { | 1946 HeapObject* Heap::EnsureDoubleAligned(HeapObject* object, int size) { |
1945 if ((OffsetFrom(object->address()) & kDoubleAlignmentMask) != 0) { | 1947 if ((OffsetFrom(object->address()) & kDoubleAlignmentMask) != 0) { |
1946 CreateFillerObjectAt(object->address(), kPointerSize); | 1948 CreateFillerObjectAt(object->address(), kPointerSize); |
1947 return HeapObject::FromAddress(object->address() + kPointerSize); | 1949 return HeapObject::FromAddress(object->address() + kPointerSize); |
1948 } else { | 1950 } else { |
1949 CreateFillerObjectAt(object->address() + size - kPointerSize, kPointerSize); | 1951 CreateFillerObjectAt(object->address() + size - kPointerSize, kPointerSize); |
1950 return object; | 1952 return object; |
1951 } | 1953 } |
(...skipping 4517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6469 } | 6471 } |
6470 delete list; | 6472 delete list; |
6471 } else { | 6473 } else { |
6472 prev = list; | 6474 prev = list; |
6473 } | 6475 } |
6474 list = next; | 6476 list = next; |
6475 } | 6477 } |
6476 } | 6478 } |
6477 } | 6479 } |
6478 } // namespace v8::internal | 6480 } // namespace v8::internal |
OLD | NEW |