Trace String.prototype.substring for two-arg case.
commite71f3def88ceefdc60ac08e5ca846860faab769d
authorshaver@mozilla.org <shaver@mozilla.org>
Tue, 29 Jul 2008 14:32:18 +0000 (29 07:32 -0700)
committershaver@mozilla.org <shaver@mozilla.org>
Tue, 29 Jul 2008 14:32:18 +0000 (29 07:32 -0700)
treea6d5453b9051f40781fa3d1a2cc731ecfcbe5697
parente8fe8a7b13cd48e96ecf3f4b22bc0c33dabd69c8
Trace String.prototype.substring for two-arg case.
* Export str_substring as js_str_substring.
* Add basic String_p_substring builtin (only handle end > begin, both in range).
* Add String_p_substring_1 builtin for the missing-end case.
* INS_CONST for named constants in traces.
* Support boxing of strings.
* Support CALLPROP with primitive this.
* Support traceable natives which require cx and this.
* Support fallible traceable natives.
* Fix JSOP_LENGTH to use i2f on result (need that everything-is-doubles T-shirt).
* Add strings test.
js/src/builtins.tbl
js/src/jsbuiltins.cpp
js/src/jsstr.cpp
js/src/jstracer.cpp
js/src/trace-test.js