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

Side by Side Diff: src/compiler/typer.cc

Issue 669133004: [turbofan] Improve code generation for inline comparisons with zero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 #include "src/compiler/graph-inl.h" 6 #include "src/compiler/graph-inl.h"
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 1037
1038 // Simplified operators. 1038 // Simplified operators.
1039 1039
1040 1040
1041 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { 1041 Bounds Typer::Visitor::TypeBooleanNot(Node* node) {
1042 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1042 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1043 } 1043 }
1044 1044
1045 1045
1046 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) { 1046 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) {
1047 return Bounds(Type::None(zone()), Type::Number(zone())); 1047 return Bounds(Type::None(zone()), typer_->zero_or_one);
1048 } 1048 }
1049 1049
1050 1050
1051 Bounds Typer::Visitor::TypeNumberEqual(Node* node) { 1051 Bounds Typer::Visitor::TypeNumberEqual(Node* node) {
1052 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1052 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1053 } 1053 }
1054 1054
1055 1055
1056 Bounds Typer::Visitor::TypeNumberLessThan(Node* node) { 1056 Bounds Typer::Visitor::TypeNumberLessThan(Node* node) {
1057 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1057 return Bounds(Type::None(zone()), Type::Boolean(zone()));
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 return typer_->float64_array_fun_; 1635 return typer_->float64_array_fun_;
1636 } 1636 }
1637 } 1637 }
1638 } 1638 }
1639 return Type::Constant(value, zone()); 1639 return Type::Constant(value, zone());
1640 } 1640 }
1641 1641
1642 } 1642 }
1643 } 1643 }
1644 } // namespace v8::internal::compiler 1644 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698