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

Unified Diff: src/objects-inl.h

Issue 1128433006: Make sure fixed typed array is always double aligned for doubles (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
« no previous file with comments | « 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 73fcaf0444b284e9538c26e3f2156365e72b9d6b..1abe0c1dd4c219e63e01ca131b582e4df8c731de 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -4312,14 +4312,6 @@ typename Traits::ElementType FixedTypedArray<Traits>::get_scalar(int index) {
}
-template<> inline
-FixedTypedArray<Float64ArrayTraits>::ElementType
- FixedTypedArray<Float64ArrayTraits>::get_scalar(int index) {
- DCHECK((index >= 0) && (index < this->length()));
- return READ_DOUBLE_FIELD(this, ElementOffset(index));
-}
-
-
template <class Traits>
void FixedTypedArray<Traits>::set(int index, ElementType value) {
DCHECK((index >= 0) && (index < this->length()));
@@ -4329,14 +4321,6 @@ void FixedTypedArray<Traits>::set(int index, ElementType value) {
}
-template<> inline
-void FixedTypedArray<Float64ArrayTraits>::set(
- int index, Float64ArrayTraits::ElementType value) {
- DCHECK((index >= 0) && (index < this->length()));
- WRITE_DOUBLE_FIELD(this, ElementOffset(index), value);
-}
-
-
template <class Traits>
typename Traits::ElementType FixedTypedArray<Traits>::from_int(int value) {
return static_cast<ElementType>(value);
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698