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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1768233002: [wasm] Int64Lowering of I64ShrU and I64ShrS on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 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/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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 CheckedLoadRepresentationOf(node->op()).representation(); 1147 CheckedLoadRepresentationOf(node->op()).representation();
1148 MarkAsRepresentation(rep, node); 1148 MarkAsRepresentation(rep, node);
1149 return VisitCheckedLoad(node); 1149 return VisitCheckedLoad(node);
1150 } 1150 }
1151 case IrOpcode::kCheckedStore: 1151 case IrOpcode::kCheckedStore:
1152 return VisitCheckedStore(node); 1152 return VisitCheckedStore(node);
1153 case IrOpcode::kWord32PairShl: 1153 case IrOpcode::kWord32PairShl:
1154 MarkAsWord32(NodeProperties::FindProjection(node, 0)); 1154 MarkAsWord32(NodeProperties::FindProjection(node, 0));
1155 MarkAsWord32(NodeProperties::FindProjection(node, 1)); 1155 MarkAsWord32(NodeProperties::FindProjection(node, 1));
1156 return VisitWord32PairShl(node); 1156 return VisitWord32PairShl(node);
1157 case IrOpcode::kWord32PairShr:
1158 MarkAsWord32(NodeProperties::FindProjection(node, 0));
1159 MarkAsWord32(NodeProperties::FindProjection(node, 1));
1160 return VisitWord32PairShr(node);
1161 case IrOpcode::kWord32PairSar:
1162 MarkAsWord32(NodeProperties::FindProjection(node, 0));
1163 MarkAsWord32(NodeProperties::FindProjection(node, 1));
1164 return VisitWord32PairSar(node);
1157 default: 1165 default:
1158 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", 1166 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d",
1159 node->opcode(), node->op()->mnemonic(), node->id()); 1167 node->opcode(), node->op()->mnemonic(), node->id());
1160 break; 1168 break;
1161 } 1169 }
1162 } 1170 }
1163 1171
1164 1172
1165 void InstructionSelector::VisitLoadStackPointer(Node* node) { 1173 void InstructionSelector::VisitLoadStackPointer(Node* node) {
1166 OperandGenerator g(this); 1174 OperandGenerator g(this);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1381
1374 void InstructionSelector::VisitBitcastInt64ToFloat64(Node* node) { 1382 void InstructionSelector::VisitBitcastInt64ToFloat64(Node* node) {
1375 UNIMPLEMENTED(); 1383 UNIMPLEMENTED();
1376 } 1384 }
1377 1385
1378 #endif // V8_TARGET_ARCH_32_BIT 1386 #endif // V8_TARGET_ARCH_32_BIT
1379 1387
1380 // 32 bit targets do not implement the following instructions. 1388 // 32 bit targets do not implement the following instructions.
1381 #if V8_TARGET_ARCH_64_BIT 1389 #if V8_TARGET_ARCH_64_BIT
1382 void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); } 1390 void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); }
1391
1392 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); }
1393
1394 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); }
1383 #endif // V8_TARGET_ARCH_64_BIT 1395 #endif // V8_TARGET_ARCH_64_BIT
1384 1396
1385 void InstructionSelector::VisitFinishRegion(Node* node) { 1397 void InstructionSelector::VisitFinishRegion(Node* node) {
1386 OperandGenerator g(this); 1398 OperandGenerator g(this);
1387 Node* value = node->InputAt(0); 1399 Node* value = node->InputAt(0);
1388 Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(value)); 1400 Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(value));
1389 } 1401 }
1390 1402
1391 1403
1392 void InstructionSelector::VisitGuard(Node* node) { 1404 void InstructionSelector::VisitGuard(Node* node) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 switch (value->opcode()) { 1465 switch (value->opcode()) {
1454 case IrOpcode::kInt32AddWithOverflow: 1466 case IrOpcode::kInt32AddWithOverflow:
1455 case IrOpcode::kInt32SubWithOverflow: 1467 case IrOpcode::kInt32SubWithOverflow:
1456 case IrOpcode::kInt64AddWithOverflow: 1468 case IrOpcode::kInt64AddWithOverflow:
1457 case IrOpcode::kInt64SubWithOverflow: 1469 case IrOpcode::kInt64SubWithOverflow:
1458 case IrOpcode::kTryTruncateFloat32ToInt64: 1470 case IrOpcode::kTryTruncateFloat32ToInt64:
1459 case IrOpcode::kTryTruncateFloat64ToInt64: 1471 case IrOpcode::kTryTruncateFloat64ToInt64:
1460 case IrOpcode::kTryTruncateFloat32ToUint64: 1472 case IrOpcode::kTryTruncateFloat32ToUint64:
1461 case IrOpcode::kTryTruncateFloat64ToUint64: 1473 case IrOpcode::kTryTruncateFloat64ToUint64:
1462 case IrOpcode::kWord32PairShl: 1474 case IrOpcode::kWord32PairShl:
1475 case IrOpcode::kWord32PairShr:
1476 case IrOpcode::kWord32PairSar:
1463 if (ProjectionIndexOf(node->op()) == 0u) { 1477 if (ProjectionIndexOf(node->op()) == 0u) {
1464 Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(value)); 1478 Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(value));
1465 } else { 1479 } else {
1466 DCHECK(ProjectionIndexOf(node->op()) == 1u); 1480 DCHECK(ProjectionIndexOf(node->op()) == 1u);
1467 MarkAsUsed(value); 1481 MarkAsUsed(value);
1468 } 1482 }
1469 break; 1483 break;
1470 default: 1484 default:
1471 break; 1485 break;
1472 } 1486 }
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 return new (instruction_zone()) FrameStateDescriptor( 1771 return new (instruction_zone()) FrameStateDescriptor(
1758 instruction_zone(), state_info.type(), state_info.bailout_id(), 1772 instruction_zone(), state_info.type(), state_info.bailout_id(),
1759 state_info.state_combine(), parameters, locals, stack, 1773 state_info.state_combine(), parameters, locals, stack,
1760 state_info.shared_info(), outer_state); 1774 state_info.shared_info(), outer_state);
1761 } 1775 }
1762 1776
1763 1777
1764 } // namespace compiler 1778 } // namespace compiler
1765 } // namespace internal 1779 } // namespace internal
1766 } // namespace v8 1780 } // 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