Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: src/code-stubs.cc

Issue 22089002: Clean some unuse code of unary negation (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698