OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1765 case Token::SHL: | 1765 case Token::SHL: |
1766 case Token::SHR: | 1766 case Token::SHR: |
1767 GenerateTypeTransitionWithSavedArgs(masm); | 1767 GenerateTypeTransitionWithSavedArgs(masm); |
1768 break; | 1768 break; |
1769 default: | 1769 default: |
1770 UNREACHABLE(); | 1770 UNREACHABLE(); |
1771 } | 1771 } |
1772 } | 1772 } |
1773 | 1773 |
1774 | 1774 |
1775 | |
1776 void TypeRecordingBinaryOpStub::GenerateStringStub(MacroAssembler* masm) { | 1775 void TypeRecordingBinaryOpStub::GenerateStringStub(MacroAssembler* masm) { |
1777 Label call_runtime; | 1776 Label call_runtime; |
1778 ASSERT(operands_type_ == TRBinaryOpIC::STRING); | 1777 ASSERT(operands_type_ == TRBinaryOpIC::STRING); |
1779 ASSERT(op_ == Token::ADD); | 1778 ASSERT(op_ == Token::ADD); |
1780 // If one of the arguments is a string, call the string add stub. | 1779 // If one of the arguments is a string, call the string add stub. |
1781 // Otherwise, transition to the generic TRBinaryOpIC type. | 1780 // Otherwise, transition to the generic TRBinaryOpIC type. |
1782 | 1781 |
1783 // Registers containing left and right operands respectively. | 1782 // Registers containing left and right operands respectively. |
1784 Register left = edx; | 1783 Register left = edx; |
1785 Register right = eax; | 1784 Register right = eax; |
(...skipping 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6405 // Do a tail call to the rewritten stub. | 6404 // Do a tail call to the rewritten stub. |
6406 __ jmp(Operand(edi)); | 6405 __ jmp(Operand(edi)); |
6407 } | 6406 } |
6408 | 6407 |
6409 | 6408 |
6410 #undef __ | 6409 #undef __ |
6411 | 6410 |
6412 } } // namespace v8::internal | 6411 } } // namespace v8::internal |
6413 | 6412 |
6414 #endif // V8_TARGET_ARCH_IA32 | 6413 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |