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

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

Issue 1164743002: [turbofan] Enable typed lowering of string addition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests. Created 5 years, 6 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.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 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 Bounds Typer::Visitor::TypeStringLessThan(Node* node) { 1722 Bounds Typer::Visitor::TypeStringLessThan(Node* node) {
1723 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1723 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1724 } 1724 }
1725 1725
1726 1726
1727 Bounds Typer::Visitor::TypeStringLessThanOrEqual(Node* node) { 1727 Bounds Typer::Visitor::TypeStringLessThanOrEqual(Node* node) {
1728 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1728 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1729 } 1729 }
1730 1730
1731 1731
1732 Bounds Typer::Visitor::TypeStringAdd(Node* node) {
1733 return Bounds(Type::None(zone()), Type::String(zone()));
1734 }
1735
1736
1737 namespace { 1732 namespace {
1738 1733
1739 Type* ChangeRepresentation(Type* type, Type* rep, Zone* zone) { 1734 Type* ChangeRepresentation(Type* type, Type* rep, Zone* zone) {
1740 return Type::Union(Type::Semantic(type, zone), 1735 return Type::Union(Type::Semantic(type, zone),
1741 Type::Representation(rep, zone), zone); 1736 Type::Representation(rep, zone), zone);
1742 } 1737 }
1743 1738
1744 } // namespace 1739 } // namespace
1745 1740
1746 1741
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2395 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2401 #undef TYPED_ARRAY_CASE 2396 #undef TYPED_ARRAY_CASE
2402 } 2397 }
2403 } 2398 }
2404 return Type::Constant(value, zone()); 2399 return Type::Constant(value, zone());
2405 } 2400 }
2406 2401
2407 } // namespace compiler 2402 } // namespace compiler
2408 } // namespace internal 2403 } // namespace internal
2409 } // namespace v8 2404 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698