Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index cad7b6389c7c4160b720f3ed5718b075c2102a7e..55ee156282fecff129a53843d6476668582acad6 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2190,6 +2190,15 @@ MaybeObject* FixedDoubleArray::get(int index) { |
} |
+Handle<Object> FixedDoubleArray::get_as_handle(int index) { |
+ if (is_the_hole(index)) { |
+ return GetIsolate()->factory()->the_hole_value(); |
+ } else { |
+ return GetIsolate()->factory()->NewNumber(get_scalar(index)); |
+ } |
+} |
+ |
+ |
void FixedDoubleArray::set(int index, double value) { |
ASSERT(map() != GetHeap()->fixed_cow_array_map() && |
map() != GetHeap()->fixed_array_map()); |