Reviewers: Yang,
Message:
PTAL. Gives some speedup for typed arrays and friends
Description:
Ensure that ToPositiveInteger is optimizable.
'throw %NAME(..)' cause hydrogen optimizations to be disabled for
surrounding function. This patch rectifies.
[email protected]
Please review this at https://codereview.chromium.org/71153004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/runtime.js
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index
19b858b27ed90cce80cb5aac06b2a1ed8482bf87..35bc07a10e8c26f37ccb96dc5ce5dc2d6cbac625
100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -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;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.