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

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

Issue 1405453003: CTZ instruction implemented as optional operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a bug when bmi1=false Created 5 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
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.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/compiler/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 1691
1692 Type* Typer::Visitor::TypeWord32Ror(Node* node) { return Type::Integral32(); } 1692 Type* Typer::Visitor::TypeWord32Ror(Node* node) { return Type::Integral32(); }
1693 1693
1694 1694
1695 Type* Typer::Visitor::TypeWord32Equal(Node* node) { return Type::Boolean(); } 1695 Type* Typer::Visitor::TypeWord32Equal(Node* node) { return Type::Boolean(); }
1696 1696
1697 1697
1698 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } 1698 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); }
1699 1699
1700 1700
1701 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); }
1702
1703
1701 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } 1704 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); }
1702 1705
1703 1706
1704 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } 1707 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); }
1705 1708
1706 1709
1707 Type* Typer::Visitor::TypeWord64Xor(Node* node) { return Type::Internal(); } 1710 Type* Typer::Visitor::TypeWord64Xor(Node* node) { return Type::Internal(); }
1708 1711
1709 1712
1710 Type* Typer::Visitor::TypeWord64Shl(Node* node) { return Type::Internal(); } 1713 Type* Typer::Visitor::TypeWord64Shl(Node* node) { return Type::Internal(); }
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 } 2100 }
2098 if (Type::IsInteger(*value)) { 2101 if (Type::IsInteger(*value)) {
2099 return Type::Range(value->Number(), value->Number(), zone()); 2102 return Type::Range(value->Number(), value->Number(), zone());
2100 } 2103 }
2101 return Type::Constant(value, zone()); 2104 return Type::Constant(value, zone());
2102 } 2105 }
2103 2106
2104 } // namespace compiler 2107 } // namespace compiler
2105 } // namespace internal 2108 } // namespace internal
2106 } // namespace v8 2109 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698