From e544f130c53b2b040b5a8fe6f72763d006035330 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Mon, 5 Aug 2013 07:00:38 +0000 Subject: [PATCH] Remove unused UNARY_MINUS builtin. R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/22146002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16038 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/builtins.h | 1 - src/runtime.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/builtins.h b/src/builtins.h index 73a2e96..6a6ce9c 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) \ diff --git a/src/runtime.js b/src/runtime.js index 90fb36b..f1b4585 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); -- 2.7.4