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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 case Token::SAR: { | 671 case Token::SAR: { |
672 ASSERT(expr->left()->location().is_value()); | 672 ASSERT(expr->left()->location().is_value()); |
673 ASSERT(expr->right()->location().is_value()); | 673 ASSERT(expr->right()->location().is_value()); |
674 | 674 |
675 Visit(expr->left()); | 675 Visit(expr->left()); |
676 Visit(expr->right()); | 676 Visit(expr->right()); |
677 GenericBinaryOpStub stub(expr->op(), | 677 GenericBinaryOpStub stub(expr->op(), |
678 NO_OVERWRITE, | 678 NO_OVERWRITE, |
679 NO_GENERIC_BINARY_FLAGS); | 679 NO_GENERIC_BINARY_FLAGS); |
680 __ CallStub(&stub); | 680 __ CallStub(&stub); |
681 Move(expr->location(), kReturnRegister); | 681 Move(expr->location(), rax); |
682 | 682 |
683 break; | 683 break; |
684 } | 684 } |
685 default: | 685 default: |
686 UNREACHABLE(); | 686 UNREACHABLE(); |
687 } | 687 } |
688 } | 688 } |
689 | 689 |
690 | 690 |
691 void FastCodeGenerator::EmitLogicalOperation(BinaryOperation* expr) { | 691 void FastCodeGenerator::EmitLogicalOperation(BinaryOperation* expr) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 } else { | 775 } else { |
776 Visit(right); | 776 Visit(right); |
777 Move(destination, right->location()); | 777 Move(destination, right->location()); |
778 } | 778 } |
779 | 779 |
780 __ bind(&done); | 780 __ bind(&done); |
781 } | 781 } |
782 | 782 |
783 | 783 |
784 } } // namespace v8::internal | 784 } } // namespace v8::internal |
OLD | NEW |