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

Unified Diff: src/heap/heap.cc

Issue 2694063005: [HEAP] Remove SIMD 128 bit alignment from heap. (Closed)
Patch Set: Restore deleted bounds check in deserializer. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/globals.h ('k') | src/snapshot/deserializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 9078ad208b21295325daabae4c5a01dd58b8c643..699d364cba41cf67a87ffa17ae93bc638625929a 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1970,8 +1970,6 @@ int Heap::GetMaximumFillToAlign(AllocationAlignment alignment) {
case kDoubleAligned:
case kDoubleUnaligned:
return kDoubleSize - kPointerSize;
- case kSimd128Unaligned:
- return kSimd128Size - kPointerSize;
default:
UNREACHABLE();
}
@@ -1985,10 +1983,6 @@ int Heap::GetFillToAlign(Address address, AllocationAlignment alignment) {
return kPointerSize;
if (alignment == kDoubleUnaligned && (offset & kDoubleAlignmentMask) == 0)
return kDoubleSize - kPointerSize; // No fill if double is always aligned.
- if (alignment == kSimd128Unaligned) {
- return (kSimd128Size - (static_cast<int>(offset) + kPointerSize)) &
- kSimd128AlignmentMask;
- }
return 0;
}
« no previous file with comments | « src/globals.h ('k') | src/snapshot/deserializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698