Don't | int and bool
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 31 Mar 2014 12:24:51 +0000 (12:24 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 31 Mar 2014 12:24:51 +0000 (12:24 +0000)
BUG=
R=ishell@chromium.org

Review URL: https://codereview.chromium.org/219293002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20352 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/handles.cc

index a68a074..edb657c 100644 (file)
@@ -682,8 +682,10 @@ 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();
+            field_index = field_index << 1;
+            if (details.representation().IsDouble()) {
+              field_index |= 1;
+            }
             indices->set(index, Smi::FromInt(field_index));
           }
         }