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

Side by Side Diff: src/x64/fast-codegen-x64.cc

Issue 384087: Cleanup and fix generated comments in the top-level compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/fast-codegen-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 __ push(source); 329 __ push(source);
330 ToBooleanStub stub; 330 ToBooleanStub stub;
331 __ CallStub(&stub); 331 __ CallStub(&stub);
332 __ testq(rax, rax); // The stub returns nonzero for true. 332 __ testq(rax, rax); // The stub returns nonzero for true.
333 __ j(not_zero, true_label); 333 __ j(not_zero, true_label);
334 __ jmp(false_label); 334 __ jmp(false_label);
335 } 335 }
336 336
337 337
338 void FastCodeGenerator::VisitDeclaration(Declaration* decl) { 338 void FastCodeGenerator::VisitDeclaration(Declaration* decl) {
339 Comment cmnt(masm_, "[ Declaration");
339 Variable* var = decl->proxy()->var(); 340 Variable* var = decl->proxy()->var();
340 ASSERT(var != NULL); // Must have been resolved. 341 ASSERT(var != NULL); // Must have been resolved.
341 Slot* slot = var->slot(); 342 Slot* slot = var->slot();
342 ASSERT(slot != NULL); // No global declarations here. 343 ASSERT(slot != NULL); // No global declarations here.
343 344
344 // We have 3 cases for slots: LOOKUP, LOCAL, CONTEXT. 345 // We have 3 cases for slots: LOOKUP, LOCAL, CONTEXT.
345 switch (slot->type()) { 346 switch (slot->type()) {
346 case Slot::LOOKUP: { 347 case Slot::LOOKUP: {
347 __ push(rsi); 348 __ push(rsi);
348 __ Push(var->name()); 349 __ Push(var->name());
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 true_label_ = saved_true; 1548 true_label_ = saved_true;
1548 false_label_ = saved_false; 1549 false_label_ = saved_false;
1549 // Convert current context to test context: End post-test code. 1550 // Convert current context to test context: End post-test code.
1550 } 1551 }
1551 1552
1552 1553
1553 #undef __ 1554 #undef __
1554 1555
1555 1556
1556 } } // namespace v8::internal 1557 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/fast-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698