Chromium Code Reviews| Index: src/code-stubs.cc |
| =================================================================== |
| --- src/code-stubs.cc (revision 16035) |
| +++ src/code-stubs.cc (working copy) |
| @@ -208,8 +208,6 @@ |
| switch (operation_) { |
| default: |
| UNREACHABLE(); |
| - case Token::SUB: |
| - return Builtins::UNARY_MINUS; |
|
Sven Panne
2013/08/05 06:22:43
I think that the whole builtin can be nuked, I'll
|
| case Token::BIT_NOT: |
| return Builtins::BIT_NOT; |
| } |
| @@ -239,10 +237,6 @@ |
| State old_state(state_); |
| if (object->IsSmi()) { |
| state_.Add(SMI); |
| - if (operation_ == Token::SUB && *object == 0) { |
| - // The result (-0) has to be represented as double. |
| - state_.Add(HEAP_NUMBER); |
| - } |
| } else if (object->IsHeapNumber()) { |
| state_.Add(HEAP_NUMBER); |
| } else { |
| @@ -356,7 +350,6 @@ |
| void UnaryOpStub::PrintBaseName(StringStream* stream) { |
| CodeStub::PrintBaseName(stream); |
| - if (operation_ == Token::SUB) stream->Add("Minus"); |
| if (operation_ == Token::BIT_NOT) stream->Add("Not"); |
| } |