DescriptionX87: [builtins] Migrate Number constructor similar to String constructor.
port 322ffda30dfefd7101a2bd93e33563cf19fbb022 (r33265)
original commit message:
Also migrate the Number constructor to a native builtin, using the
same mechanism already used by the String constructor. Otherwise just
parsing and compiling the Number constructor to optimized code already
eats 2ms on desktop for no good reason, and the resulting optimized
code is not even close to awesome.
Drive-by-fix: Use correct context for the [[Construct]] case of the
String constructor as well, and share some code with it.
BUG=
Committed: https://crrev.com/fe33d20fd1fb31e1fe22b98be226fe87b2f6cf72
Cr-Commit-Position: refs/heads/master@{#33280}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|