Code formatting changes.

Review URL: http://codereview.chromium.org/7346

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@518 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kmillikin@chromium.org 2008-10-17 09:54:34 +00:00
parent 7cd44cea9b
commit ebd11b7382

View File

@ -345,9 +345,10 @@ bool CodeGenerator::CheckForInlineRuntimeCall(CallRuntime* node) {
}
void CodeGenerator::GenerateFastCaseSwitchStatement(
SwitchStatement *node, int min_index, int range, int default_index) {
void CodeGenerator::GenerateFastCaseSwitchStatement(SwitchStatement* node,
int min_index,
int range,
int default_index) {
ZoneList<CaseClause*>* cases = node->cases();
int length = cases->length();
@ -357,8 +358,8 @@ void CodeGenerator::GenerateFastCaseSwitchStatement(
// Label per switch case
SmartPointer<Label> case_labels(NewArray<Label>(length));
Label* fail_label = (default_index >= 0 ? &(case_labels[default_index])
: node->break_target());
Label* fail_label = default_index >= 0 ? &(case_labels[default_index])
: node->break_target();
// Populate array of label pointers for each number in the range.
// Initally put the failure label everywhere.
@ -382,14 +383,15 @@ void CodeGenerator::GenerateFastCaseSwitchStatement(
case_targets, case_labels);
}
void CodeGenerator::GenerateFastCaseSwitchCases(
SwitchStatement* node, SmartPointer<Label> &case_labels) {
void CodeGenerator::GenerateFastCaseSwitchCases(
SwitchStatement* node,
SmartPointer<Label>& case_labels) {
ZoneList<CaseClause*>* cases = node->cases();
int length = cases->length();
for (int i = 0; i < length; i++) {
Comment cmnt(masm(), "[ case clause");
Comment cmnt(masm(), "[ Case clause");
masm()->bind(&(case_labels[i]));
VisitStatements(cases->at(i)->statements());
}