Cleanup and fix generated comments in the top-level compiler.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 13 Nov 2009 09:42:18 +0000 (09:42 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 13 Nov 2009 09:42:18 +0000 (09:42 +0000)
Review URL: http://codereview.chromium.org/384087

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3298 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/fast-codegen-arm.cc
src/fast-codegen.cc
src/ia32/fast-codegen-ia32.cc
src/x64/fast-codegen-x64.cc

index 6ddf2ff..0757b98 100644 (file)
@@ -123,7 +123,7 @@ void FastCodeGenerator::Generate(FunctionLiteral* fun) {
   // Put the lr setup instruction in the delay slot.  The kInstrSize is
   // added to the implicit 8 byte offset that always applies to operations
   // with pc and gives a return address 12 bytes down.
-  Comment cmnt(masm_, "[ Stack check");
+  Comment cmnt(masm_, "[ Stack check");
   __ LoadRoot(r2, Heap::kStackLimitRootIndex);
   __ add(lr, pc, Operand(Assembler::kInstrSize));
   __ cmp(sp, Operand(r2));
@@ -133,6 +133,7 @@ void FastCodeGenerator::Generate(FunctionLiteral* fun) {
                  RelocInfo::CODE_TARGET),
          LeaveCC,
          lo);
+  }
 
   { Comment cmnt(masm_, "[ Declarations");
     VisitDeclarations(fun->scope()->declarations());
@@ -326,6 +327,7 @@ void FastCodeGenerator::TestAndBranch(Register source,
 
 
 void FastCodeGenerator::VisitDeclaration(Declaration* decl) {
+  Comment cmnt(masm_, "[ Declaration");
   Variable* var = decl->proxy()->var();
   ASSERT(var != NULL);  // Must have been resolved.
   Slot* slot = var->slot();
index 1c69e21..53fcf31 100644 (file)
@@ -76,7 +76,6 @@ int FastCodeGenerator::SlotOffset(Slot* slot) {
 
 void FastCodeGenerator::VisitDeclarations(
     ZoneList<Declaration*>* declarations) {
-  Comment cmnt(masm_, "[ Declarations");
   int length = declarations->length();
   int globals = 0;
   for (int i = 0; i < length; i++) {
index 571e28b..c366b40 100644 (file)
@@ -322,6 +322,7 @@ void FastCodeGenerator::TestAndBranch(Register source,
 
 
 void FastCodeGenerator::VisitDeclaration(Declaration* decl) {
+  Comment cmnt(masm_, "[ Declaration");
   Variable* var = decl->proxy()->var();
   ASSERT(var != NULL);  // Must have been resolved.
   Slot* slot = var->slot();
index a0037d4..bb85ef5 100644 (file)
@@ -336,6 +336,7 @@ void FastCodeGenerator::TestAndBranch(Register source,
 
 
 void FastCodeGenerator::VisitDeclaration(Declaration* decl) {
+  Comment cmnt(masm_, "[ Declaration");
   Variable* var = decl->proxy()->var();
   ASSERT(var != NULL);  // Must have been resolved.
   Slot* slot = var->slot();