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

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

Issue 536029: Fix a problem with const initialization in the top-level code generator.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/parser.cc » ('j') | 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 __ bind(&discard); 711 __ bind(&discard);
712 __ Drop(1); 712 __ Drop(1);
713 __ jmp(false_label_); 713 __ jmp(false_label_);
714 break; 714 break;
715 } 715 }
716 case Expression::kTestValue: { 716 case Expression::kTestValue: {
717 Label discard; 717 Label discard;
718 if (!result_saved) __ push(eax); 718 if (!result_saved) __ push(eax);
719 TestAndBranch(eax, &discard, false_label_); 719 TestAndBranch(eax, &discard, false_label_);
720 __ bind(&discard); 720 __ bind(&discard);
721 __ Drop (1); 721 __ Drop(1);
722 __ jmp(true_label_); 722 __ jmp(true_label_);
723 break; 723 break;
724 } 724 }
725 } 725 }
726 } 726 }
727 727
728 728
729 void FastCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { 729 void FastCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
730 Comment cmnt(masm_, "[ ArrayLiteral"); 730 Comment cmnt(masm_, "[ ArrayLiteral");
731 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 731 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 __ add(Operand(edx), Immediate(masm_->CodeObject())); 1725 __ add(Operand(edx), Immediate(masm_->CodeObject()));
1726 __ mov(Operand(esp, 0), edx); 1726 __ mov(Operand(esp, 0), edx);
1727 // And return. 1727 // And return.
1728 __ ret(0); 1728 __ ret(0);
1729 } 1729 }
1730 1730
1731 1731
1732 #undef __ 1732 #undef __
1733 1733
1734 } } // namespace v8::internal 1734 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698