| Index: src/x64/fast-codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/fast-codegen-x64.cc (revision 3529)
|
| +++ src/x64/fast-codegen-x64.cc (working copy)
|
| @@ -240,7 +240,7 @@
|
| Operand FastCodeGenerator::CreateSlotOperand<Operand>(Slot* source,
|
| Register scratch) {
|
| switch (source->type()) {
|
| - case Slot::PARAMETER:
|
| + case Slot::PARAMETER: // Fall through.
|
| case Slot::LOCAL:
|
| return Operand(rbp, SlotOffset(source));
|
| case Slot::CONTEXT: {
|
| @@ -248,15 +248,12 @@
|
| function_->scope()->ContextChainLength(source->var()->scope());
|
| __ LoadContext(scratch, context_chain_length);
|
| return CodeGenerator::ContextOperand(scratch, source->index());
|
| - break;
|
| }
|
| case Slot::LOOKUP:
|
| UNIMPLEMENTED();
|
| - // Fall-through.
|
| - default:
|
| - UNREACHABLE();
|
| - return Operand(rax, 0); // Dead code to make the compiler happy.
|
| }
|
| + UNREACHABLE();
|
| + return Operand(rax, 0);
|
| }
|
|
|
|
|
| @@ -331,8 +328,6 @@
|
| }
|
| case Slot::LOOKUP:
|
| UNIMPLEMENTED();
|
| - default:
|
| - UNREACHABLE();
|
| }
|
| }
|
|
|
| @@ -583,8 +578,6 @@
|
| case Slot::LOOKUP:
|
| UNIMPLEMENTED();
|
| break;
|
| - default:
|
| - UNREACHABLE();
|
| }
|
| }
|
| Move(context, slot, rax);
|
|
|