DescriptionSupport StringCharCodeAt in hydrogen/lithium.
This patch adds H- and L-variants of StringCharCodeAt and StringLength.
StringCharCodeAt is used to inline a constant function call of
String.prototype.charCodeAt and to implement the corresponding inline
runtime function. It does not yet use the recently introduced extra IC
state. (We can specialize on string encoding and avoid deopts because
of out of bounds accesses.)
StringLength needs more work because the stub version of it also
supports strings wrappers and it matters in some cases. (We have to
separate the string only case.)
Committed: http://code.google.com/p/v8/source/detail?r=6408
Patch Set 1 #Patch Set 2 : Addressed Florian's comments. #
Total comments: 4
Messages
Total messages: 3 (0 generated)
|