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

Unified Diff: src/objects-inl.h

Issue 1141523002: Implement unaligned allocate and allocate heap numbers in runtime double unaligned. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« src/heap/spaces-inl.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index cc264f6aef251d4680e4bb4b1621353a74f18483..22179b74f31ce7d3d5a8dcfa81be3b3242c1ca77 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2822,6 +2822,15 @@ bool HeapObject::NeedsToEnsureDoubleAlignment() {
}
+bool HeapObject::NeedsToEnsureDoubleUnalignment() {
+#ifndef V8_HOST_ARCH_64_BIT
Benedikt Meurer 2015/05/12 09:08:39 I'd prefer #ifdef V8_HOST_ARCH_32_BIT here.
Hannes Payer (out of office) 2015/05/12 11:14:55 Done.
+ return IsHeapNumber();
+#else
+ return false;
+#endif // V8_HOST_ARCH_64_BIT
+}
+
+
void FixedArray::set(int index,
Object* value,
WriteBarrierMode mode) {
« src/heap/spaces-inl.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698