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

Side by Side Diff: src/compiler/instruction-selector.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: Fix according to titzer Created 4 years, 4 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/ia32/instruction-selector-ia32.cc ('k') | src/compiler/int64-lowering.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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 case IrOpcode::kWord32Ror: 951 case IrOpcode::kWord32Ror:
952 return MarkAsWord32(node), VisitWord32Ror(node); 952 return MarkAsWord32(node), VisitWord32Ror(node);
953 case IrOpcode::kWord32Equal: 953 case IrOpcode::kWord32Equal:
954 return VisitWord32Equal(node); 954 return VisitWord32Equal(node);
955 case IrOpcode::kWord32Clz: 955 case IrOpcode::kWord32Clz:
956 return MarkAsWord32(node), VisitWord32Clz(node); 956 return MarkAsWord32(node), VisitWord32Clz(node);
957 case IrOpcode::kWord32Ctz: 957 case IrOpcode::kWord32Ctz:
958 return MarkAsWord32(node), VisitWord32Ctz(node); 958 return MarkAsWord32(node), VisitWord32Ctz(node);
959 case IrOpcode::kWord32ReverseBits: 959 case IrOpcode::kWord32ReverseBits:
960 return MarkAsWord32(node), VisitWord32ReverseBits(node); 960 return MarkAsWord32(node), VisitWord32ReverseBits(node);
961 case IrOpcode::kWord32ReverseBytes:
962 return MarkAsWord32(node), VisitWord32ReverseBytes(node);
961 case IrOpcode::kWord32Popcnt: 963 case IrOpcode::kWord32Popcnt:
962 return MarkAsWord32(node), VisitWord32Popcnt(node); 964 return MarkAsWord32(node), VisitWord32Popcnt(node);
963 case IrOpcode::kWord64Popcnt: 965 case IrOpcode::kWord64Popcnt:
964 return MarkAsWord32(node), VisitWord64Popcnt(node); 966 return MarkAsWord32(node), VisitWord64Popcnt(node);
965 case IrOpcode::kWord64And: 967 case IrOpcode::kWord64And:
966 return MarkAsWord64(node), VisitWord64And(node); 968 return MarkAsWord64(node), VisitWord64And(node);
967 case IrOpcode::kWord64Or: 969 case IrOpcode::kWord64Or:
968 return MarkAsWord64(node), VisitWord64Or(node); 970 return MarkAsWord64(node), VisitWord64Or(node);
969 case IrOpcode::kWord64Xor: 971 case IrOpcode::kWord64Xor:
970 return MarkAsWord64(node), VisitWord64Xor(node); 972 return MarkAsWord64(node), VisitWord64Xor(node);
971 case IrOpcode::kWord64Shl: 973 case IrOpcode::kWord64Shl:
972 return MarkAsWord64(node), VisitWord64Shl(node); 974 return MarkAsWord64(node), VisitWord64Shl(node);
973 case IrOpcode::kWord64Shr: 975 case IrOpcode::kWord64Shr:
974 return MarkAsWord64(node), VisitWord64Shr(node); 976 return MarkAsWord64(node), VisitWord64Shr(node);
975 case IrOpcode::kWord64Sar: 977 case IrOpcode::kWord64Sar:
976 return MarkAsWord64(node), VisitWord64Sar(node); 978 return MarkAsWord64(node), VisitWord64Sar(node);
977 case IrOpcode::kWord64Ror: 979 case IrOpcode::kWord64Ror:
978 return MarkAsWord64(node), VisitWord64Ror(node); 980 return MarkAsWord64(node), VisitWord64Ror(node);
979 case IrOpcode::kWord64Clz: 981 case IrOpcode::kWord64Clz:
980 return MarkAsWord64(node), VisitWord64Clz(node); 982 return MarkAsWord64(node), VisitWord64Clz(node);
981 case IrOpcode::kWord64Ctz: 983 case IrOpcode::kWord64Ctz:
982 return MarkAsWord64(node), VisitWord64Ctz(node); 984 return MarkAsWord64(node), VisitWord64Ctz(node);
983 case IrOpcode::kWord64ReverseBits: 985 case IrOpcode::kWord64ReverseBits:
984 return MarkAsWord64(node), VisitWord64ReverseBits(node); 986 return MarkAsWord64(node), VisitWord64ReverseBits(node);
987 case IrOpcode::kWord64ReverseBytes:
988 return MarkAsWord64(node), VisitWord64ReverseBytes(node);
985 case IrOpcode::kWord64Equal: 989 case IrOpcode::kWord64Equal:
986 return VisitWord64Equal(node); 990 return VisitWord64Equal(node);
987 case IrOpcode::kInt32Add: 991 case IrOpcode::kInt32Add:
988 return MarkAsWord32(node), VisitInt32Add(node); 992 return MarkAsWord32(node), VisitInt32Add(node);
989 case IrOpcode::kInt32AddWithOverflow: 993 case IrOpcode::kInt32AddWithOverflow:
990 return MarkAsWord32(node), VisitInt32AddWithOverflow(node); 994 return MarkAsWord32(node), VisitInt32AddWithOverflow(node);
991 case IrOpcode::kInt32Sub: 995 case IrOpcode::kInt32Sub:
992 return MarkAsWord32(node), VisitInt32Sub(node); 996 return MarkAsWord32(node), VisitInt32Sub(node);
993 case IrOpcode::kInt32SubWithOverflow: 997 case IrOpcode::kInt32SubWithOverflow:
994 return VisitInt32SubWithOverflow(node); 998 return VisitInt32SubWithOverflow(node);
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 return new (instruction_zone()) FrameStateDescriptor( 2051 return new (instruction_zone()) FrameStateDescriptor(
2048 instruction_zone(), state_info.type(), state_info.bailout_id(), 2052 instruction_zone(), state_info.type(), state_info.bailout_id(),
2049 state_info.state_combine(), parameters, locals, stack, 2053 state_info.state_combine(), parameters, locals, stack,
2050 state_info.shared_info(), outer_state); 2054 state_info.shared_info(), outer_state);
2051 } 2055 }
2052 2056
2053 2057
2054 } // namespace compiler 2058 } // namespace compiler
2055 } // namespace internal 2059 } // namespace internal
2056 } // namespace v8 2060 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/int64-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698