Status: New
Owner: ----
New issue 3264 by [email protected]: Type array constructors deopt
http://code.google.com/p/v8/issues/detail?id=3264
Typed array ctors which take an arraybuffer deopt (repeatedly until
optimizations are disabled) if offset is not specified.
See repro below.
This seems to have been introduced in
r20022 (Apply numeric casts correctly in typed arrays and related code.)
Although I think this is actually a compiler bug - for some reason it's
trying to convert offset and/or length to int when they're undefined (and
thus the deopts).
// in d8 I get a bunch of deopts for Uint8ArrayConstructByArrayBuffer
var b = new ArrayBuffer(1);
var total = 0;
for (var i = 0; i < 100000; i++) {
var x = new Uint8Array(b);
total += x[0];
}
print(total);
--
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/d/optout.