| Index: src/compiler/arm/instruction-selector-arm.cc
|
| diff --git a/src/compiler/arm/instruction-selector-arm.cc b/src/compiler/arm/instruction-selector-arm.cc
|
| index 7b929deb953260d2c1778eb064a2dbcb2967e186..4e97e7ca894f13cc201ba056dda4e25226d4ca61 100644
|
| --- a/src/compiler/arm/instruction-selector-arm.cc
|
| +++ b/src/compiler/arm/instruction-selector-arm.cc
|
| @@ -308,7 +308,7 @@ void InstructionSelector::VisitLoad(Node* node) {
|
| Node* base = node->InputAt(0);
|
| Node* index = node->InputAt(1);
|
|
|
| - ArchOpcode opcode;
|
| + ArchOpcode opcode = kArchNop;
|
| switch (load_rep.representation()) {
|
| case MachineRepresentation::kFloat32:
|
| opcode = kArmVldrF32;
|
| @@ -327,7 +327,8 @@ void InstructionSelector::VisitLoad(Node* node) {
|
| case MachineRepresentation::kWord32:
|
| opcode = kArmLdr;
|
| break;
|
| - default:
|
| + case MachineRepresentation::kNone: // Fall through.
|
| + case MachineRepresentation::kWord64:
|
| UNREACHABLE();
|
| return;
|
| }
|
| @@ -382,7 +383,7 @@ void InstructionSelector::VisitStore(Node* node) {
|
| code |= MiscField::encode(static_cast<int>(record_write_mode));
|
| Emit(code, 0, nullptr, input_count, inputs, temp_count, temps);
|
| } else {
|
| - ArchOpcode opcode;
|
| + ArchOpcode opcode = kArchNop;
|
| switch (rep) {
|
| case MachineRepresentation::kFloat32:
|
| opcode = kArmVstrF32;
|
| @@ -401,7 +402,8 @@ void InstructionSelector::VisitStore(Node* node) {
|
| case MachineRepresentation::kWord32:
|
| opcode = kArmStr;
|
| break;
|
| - default:
|
| + case MachineRepresentation::kNone: // Fall through.
|
| + case MachineRepresentation::kWord64:
|
| UNREACHABLE();
|
| return;
|
| }
|
| @@ -423,7 +425,7 @@ void InstructionSelector::VisitCheckedLoad(Node* node) {
|
| Node* const buffer = node->InputAt(0);
|
| Node* const offset = node->InputAt(1);
|
| Node* const length = node->InputAt(2);
|
| - ArchOpcode opcode;
|
| + ArchOpcode opcode = kArchNop;
|
| switch (load_rep.representation()) {
|
| case MachineRepresentation::kWord8:
|
| opcode = load_rep.IsSigned() ? kCheckedLoadInt8 : kCheckedLoadUint8;
|
| @@ -440,7 +442,10 @@ void InstructionSelector::VisitCheckedLoad(Node* node) {
|
| case MachineRepresentation::kFloat64:
|
| opcode = kCheckedLoadFloat64;
|
| break;
|
| - default:
|
| + case MachineRepresentation::kBit: // Fall through.
|
| + case MachineRepresentation::kTagged: // Fall through.
|
| + case MachineRepresentation::kWord64: // Fall through.
|
| + case MachineRepresentation::kNone:
|
| UNREACHABLE();
|
| return;
|
| }
|
| @@ -461,7 +466,7 @@ void InstructionSelector::VisitCheckedStore(Node* node) {
|
| Node* const offset = node->InputAt(1);
|
| Node* const length = node->InputAt(2);
|
| Node* const value = node->InputAt(3);
|
| - ArchOpcode opcode;
|
| + ArchOpcode opcode = kArchNop;
|
| switch (rep) {
|
| case MachineRepresentation::kWord8:
|
| opcode = kCheckedStoreWord8;
|
| @@ -478,7 +483,10 @@ void InstructionSelector::VisitCheckedStore(Node* node) {
|
| case MachineRepresentation::kFloat64:
|
| opcode = kCheckedStoreFloat64;
|
| break;
|
| - default:
|
| + case MachineRepresentation::kBit: // Fall through.
|
| + case MachineRepresentation::kTagged: // Fall through.
|
| + case MachineRepresentation::kWord64: // Fall through.
|
| + case MachineRepresentation::kNone:
|
| UNREACHABLE();
|
| return;
|
| }
|
|
|