Status: Accepted
Owner: ----
CC: [email protected],  [email protected]
Labels: Type-Bug Priority-Medium

New issue 3167 by [email protected]: Keyed loads shouldn't deopt on non-number keys that they've seen before
http://code.google.com/p/v8/issues/detail?id=3167

The following code deopts even though type feedback is complete and stable, because monomorphic keyed loads assume that the index is a number.

var o = {
  "foo": "bar",
}

function get(obj, key) {
  return obj[key];
}

get(o, "foo");
get(o, "foo");
get(o, "foo");
%OptimizeFunctionOnNextCall(get);
get(o, "foo");  // Deopts.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to