From b8fab1cf197e10d7d4ecfca42056b6b6ff80d836 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 31 Mar 2014 12:24:51 +0000 Subject: [PATCH] Don't | int and bool 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/handles.cc b/src/handles.cc index a68a074..edb657c 100644 --- a/src/handles.cc +++ b/src/handles.cc @@ -682,8 +682,10 @@ Handle GetEnumPropertyKeys(Handle 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)); } } -- 2.7.4