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

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

Issue 999173003: [turbofan] Remove indirection in JSToBoolean/JSUnaryNot lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment. Created 5 years, 9 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
« no previous file with comments | « src/compiler/simplified-operator-reducer.cc ('k') | src/compiler/verifier.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/base/flags.h" 5 #include "src/base/flags.h"
6 #include "src/bootstrapper.h" 6 #include "src/bootstrapper.h"
7 #include "src/compiler/graph-reducer.h" 7 #include "src/compiler/graph-reducer.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 1527
1528 1528
1529 Bounds Typer::Visitor::TypeJSStackCheck(Node* node) { 1529 Bounds Typer::Visitor::TypeJSStackCheck(Node* node) {
1530 return Bounds::Unbounded(zone()); 1530 return Bounds::Unbounded(zone());
1531 } 1531 }
1532 1532
1533 1533
1534 // Simplified operators. 1534 // Simplified operators.
1535 1535
1536 1536
1537 Bounds Typer::Visitor::TypeAnyToBoolean(Node* node) {
1538 return TypeUnaryOp(node, ToBoolean);
1539 }
1540
1541
1542 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { 1537 Bounds Typer::Visitor::TypeBooleanNot(Node* node) {
1543 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1538 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1544 } 1539 }
1545 1540
1546 1541
1547 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) { 1542 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) {
1548 return TypeUnaryOp(node, ToNumber); 1543 return TypeUnaryOp(node, ToNumber);
1549 } 1544 }
1550 1545
1551 1546
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2218 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2224 #undef TYPED_ARRAY_CASE 2219 #undef TYPED_ARRAY_CASE
2225 } 2220 }
2226 } 2221 }
2227 return Type::Constant(value, zone()); 2222 return Type::Constant(value, zone());
2228 } 2223 }
2229 2224
2230 } // namespace compiler 2225 } // namespace compiler
2231 } // namespace internal 2226 } // namespace internal
2232 } // namespace v8 2227 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator-reducer.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698