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

Unified Diff: src/arm/fast-codegen-arm.cc

Issue 521019: Style cleanup of switches over Slot::Type in the nonoptimizing code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/fast-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/fast-codegen-arm.cc
===================================================================
--- src/arm/fast-codegen-arm.cc (revision 3529)
+++ src/arm/fast-codegen-arm.cc (working copy)
@@ -252,7 +252,7 @@
Slot* source,
Register scratch) {
switch (source->type()) {
- case Slot::PARAMETER:
+ case Slot::PARAMETER: // Fall through.
Lasse Reichstein 2010/01/05 06:16:57 I think two cases immediately after each other is
Lasse Reichstein 2010/01/05 06:17:52 "Idiom", even.
case Slot::LOCAL:
return MemOperand(fp, SlotOffset(source));
case Slot::CONTEXT: {
@@ -260,15 +260,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 MemOperand(r0, 0); // Dead code to make the compiler happy.
}
+ UNREACHABLE();
+ return MemOperand(r0, 0);
}
@@ -337,8 +334,6 @@
}
case Slot::LOOKUP:
UNIMPLEMENTED();
- default:
- UNREACHABLE();
}
}
@@ -563,7 +558,7 @@
Slot* slot = rewrite->AsSlot();
if (FLAG_debug_code) {
switch (slot->type()) {
- case Slot::LOCAL:
+ case Slot::LOCAL: // Fall through.
case Slot::PARAMETER: {
Comment cmnt(masm_, "Stack slot");
break;
@@ -575,8 +570,6 @@
case Slot::LOOKUP:
UNIMPLEMENTED();
break;
- default:
- UNREACHABLE();
}
}
Move(context, slot, r0);
« no previous file with comments | « no previous file | src/fast-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698