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

Unified Diff: src/objects-inl.h

Issue 212573007: ElementsAccessor::CopyElements() and its callers handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/builtins.cc ('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 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());
« src/builtins.cc ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698