[runtime] Remove unused %NumberUnaryMinus runtime function.
authorbmeurer <bmeurer@chromium.org>
Wed, 9 Sep 2015 13:55:11 +0000 (06:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 9 Sep 2015 13:55:24 +0000 (13:55 +0000)
This has been dead code for quite a while now.

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/1314353006

Cr-Commit-Position: refs/heads/master@{#30652}

src/runtime/runtime-numbers.cc
src/runtime/runtime.h

index 19f0278..ac50f00 100644 (file)
@@ -250,15 +250,6 @@ RUNTIME_FUNCTION(Runtime_NumberMul) {
 }
 
 
-RUNTIME_FUNCTION(Runtime_NumberUnaryMinus) {
-  HandleScope scope(isolate);
-  DCHECK(args.length() == 1);
-
-  CONVERT_DOUBLE_ARG_CHECKED(x, 0);
-  return *isolate->factory()->NewNumber(-x);
-}
-
-
 RUNTIME_FUNCTION(Runtime_NumberDiv) {
   HandleScope scope(isolate);
   DCHECK(args.length() == 2);
index 88cd363..990fb64 100644 (file)
@@ -408,7 +408,6 @@ namespace internal {
   F(NumberAdd, 2, 1)                   \
   F(NumberSub, 2, 1)                   \
   F(NumberMul, 2, 1)                   \
-  F(NumberUnaryMinus, 1, 1)            \
   F(NumberDiv, 2, 1)                   \
   F(NumberMod, 2, 1)                   \
   F(NumberImul, 2, 1)                  \