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

Unified Diff: src/codegen.cc

Issue 7346: Code formatting changes. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.cc
===================================================================
--- src/codegen.cc (revision 506)
+++ src/codegen.cc (working copy)
@@ -345,9 +345,10 @@
}
-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 @@
// 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 @@
case_targets, case_labels);
}
+
void CodeGenerator::GenerateFastCaseSwitchCases(
- SwitchStatement* node, SmartPointer<Label> &case_labels) {
-
+ 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());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698