Ensure that ToPositiveInteger is optimizable.
'throw %NAME(..)' cause hydrogen optimizations to be disabled for surrounding function. This patch rectifies. R=yangguo@chromium.org Review URL: https://codereview.chromium.org/71153004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17832 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
99133912bd
commit
f5c632b5e1
@ -665,7 +665,7 @@ function DefaultString(x) {
|
||||
|
||||
function ToPositiveInteger(x, rangeErrorName) {
|
||||
var i = TO_INTEGER(x);
|
||||
if (i < 0) throw %MakeRangeError(rangeErrorName);
|
||||
if (i < 0) throw MakeRangeError(rangeErrorName);
|
||||
return i;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user