Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 3f178c0abac12075a204d05e98b7877321b7e97b..1ea9441b7e5b3507f37075f87f862fdb53639d32 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3675,6 +3675,15 @@ typename Traits::ElementType FixedTypedArray<Traits>::get_scalar(int index) { |
return ptr[index]; |
} |
+ |
+template<> inline |
+FixedTypedArray<Float64ArrayTraits>::ElementType |
+ FixedTypedArray<Float64ArrayTraits>::get_scalar(int index) { |
+ ASSERT((index >= 0) && (index < this->length())); |
+ return READ_DOUBLE_FIELD(this, ElementOffset(index)); |
+} |
+ |
+ |
template <class Traits> |
void FixedTypedArray<Traits>::set(int index, ElementType value) { |
ASSERT((index >= 0) && (index < this->length())); |
@@ -3684,6 +3693,14 @@ void FixedTypedArray<Traits>::set(int index, ElementType value) { |
} |
+template<> inline |
+void FixedTypedArray<Float64ArrayTraits>::set( |
+ int index, Float64ArrayTraits::ElementType value) { |
+ ASSERT((index >= 0) && (index < this->length())); |
+ WRITE_DOUBLE_FIELD(this, ElementOffset(index), value); |
+} |
+ |
+ |
template <class Traits> |
MaybeObject* FixedTypedArray<Traits>::get(int index) { |
return Traits::ToObject(GetHeap(), get_scalar(index)); |