Reviewers: Benedikt Meurer,
Description:
Remove unused UNARY_MINUS builtin.
Please review this at https://codereview.chromium.org/22146002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/builtins.h
M src/runtime.js
Index: src/builtins.h
diff --git a/src/builtins.h b/src/builtins.h
index
73a2e9645907452ec64e7186e9012281eb467e41..6a6ce9c294468b2d677a1f7c0f581a147ec42ff7
100644
--- a/src/builtins.h
+++ b/src/builtins.h
@@ -259,7 +259,6 @@ enum BuiltinExtraArguments {
V(BIT_OR, 1) \
V(BIT_AND, 1) \
V(BIT_XOR, 1) \
- V(UNARY_MINUS, 0) \
V(BIT_NOT, 0) \
V(SHL, 1) \
V(SAR, 1) \
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index
90fb36b42231c810cf0e74b7684a65f71dbe4e96..f1b4585d3bbd111ccd4ef777dc96ae7b0f8bc21b
100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -294,13 +294,6 @@ function BIT_XOR(y) {
}
-// ECMA-262, section 11.4.7, page 47.
-function UNARY_MINUS() {
- var x = IS_NUMBER(this) ? this : %NonNumberToNumber(this);
- return %NumberUnaryMinus(x);
-}
-
-
// ECMA-262, section 11.4.8, page 48.
function BIT_NOT() {
var x = IS_NUMBER(this) ? this : %NonNumberToNumber(this);
--
--
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.