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

Unified Diff: src/handles.cc

Issue 211333002: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (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
« no previous file with comments | « src/factory.cc ('k') | src/heap.h » ('j') | src/json-parser.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index ea0f8aebafa612a348037ebcbaeb1b9710f8d0c8..a68a07435c335a8be18d795cbc597f6266a328db 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -682,6 +682,8 @@ Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
if (field_index >= map->inobject_properties()) {
field_index = -(field_index - map->inobject_properties() + 1);
}
+ field_index = (field_index << 1)
+ | details.representation().IsDouble();
indices->set(index, Smi::FromInt(field_index));
}
}
« no previous file with comments | « src/factory.cc ('k') | src/heap.h » ('j') | src/json-parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698