OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |