Comment #4 on issue 455 by [email protected]: increased String.concat()  
performance (patch)
http://code.google.com/p/v8/issues/detail?id=455

The String.prototype.concat function is "intentionally generic" (see  
ECMAScript
specification, section 15.5.4.6), so it must convert "this" to a string.

Runtime functions always assume that they can be called maliciously by user  
code.
That is why they aggressively test their arguments, even if v8 code only  
ever calls
them with correctly typed arguments. It's security-in-depth: it shouldn't  
be possible
to call into the runtime system with user controlled arguments, but even if  
that
protection fails, invalid arguments will be caught and rejected.

So no inefficiencies here :)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to