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

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

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use ByteReverse in simulator Created 4 years, 5 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
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/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } 1959 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); }
1960 1960
1961 1961
1962 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } 1962 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); }
1963 1963
1964 1964
1965 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { 1965 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) {
1966 return Type::Integral32(); 1966 return Type::Integral32();
1967 } 1967 }
1968 1968
1969 Type* Typer::Visitor::TypeWord16ReverseBytes(Node* node) {
1970 return Type::Integral32();
1971 }
1972
1973 Type* Typer::Visitor::TypeWord32ReverseBytes(Node* node) {
1974 return Type::Integral32();
1975 }
1969 1976
1970 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { 1977 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) {
1971 return Type::Integral32(); 1978 return Type::Integral32();
1972 } 1979 }
1973 1980
1974 1981
1975 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } 1982 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); }
1976 1983
1977 1984
1978 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } 1985 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); }
(...skipping 17 matching lines...) Expand all
1996 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } 2003 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); }
1997 2004
1998 2005
1999 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } 2006 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); }
2000 2007
2001 2008
2002 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { 2009 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) {
2003 return Type::Internal(); 2010 return Type::Internal();
2004 } 2011 }
2005 2012
2013 Type* Typer::Visitor::TypeWord64ReverseBytes(Node* node) {
2014 return Type::Internal();
2015 }
2006 2016
2007 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } 2017 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); }
2008 2018
2009 2019
2010 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } 2020 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); }
2011 2021
2012 2022
2013 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } 2023 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); }
2014 2024
2015 2025
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 } 2550 }
2541 if (Type::IsInteger(*value)) { 2551 if (Type::IsInteger(*value)) {
2542 return Type::Range(value->Number(), value->Number(), zone()); 2552 return Type::Range(value->Number(), value->Number(), zone());
2543 } 2553 }
2544 return Type::Constant(value, zone()); 2554 return Type::Constant(value, zone());
2545 } 2555 }
2546 2556
2547 } // namespace compiler 2557 } // namespace compiler
2548 } // namespace internal 2558 } // namespace internal
2549 } // namespace v8 2559 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698