| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 break; | 1631 break; |
| 1632 } | 1632 } |
| 1633 | 1633 |
| 1634 __ bind(&done); | 1634 __ bind(&done); |
| 1635 context()->Plug(rax); | 1635 context()->Plug(rax); |
| 1636 } | 1636 } |
| 1637 | 1637 |
| 1638 | 1638 |
| 1639 void FullCodeGenerator::EmitBinaryOp(Token::Value op, | 1639 void FullCodeGenerator::EmitBinaryOp(Token::Value op, |
| 1640 OverwriteMode mode) { | 1640 OverwriteMode mode) { |
| 1641 __ pop(rdx); |
| 1641 TypeRecordingBinaryOpStub stub(op, mode); | 1642 TypeRecordingBinaryOpStub stub(op, mode); |
| 1642 __ pop(rdx); | 1643 EmitCallIC(stub.GetCode(), NULL); // NULL signals no inlined smi code. |
| 1643 __ CallStub(&stub); | |
| 1644 context()->Plug(rax); | 1644 context()->Plug(rax); |
| 1645 } | 1645 } |
| 1646 | 1646 |
| 1647 | 1647 |
| 1648 void FullCodeGenerator::EmitAssignment(Expression* expr, int bailout_ast_id) { | 1648 void FullCodeGenerator::EmitAssignment(Expression* expr, int bailout_ast_id) { |
| 1649 // Invalid left-hand sides are rewritten to have a 'throw | 1649 // Invalid left-hand sides are rewritten to have a 'throw |
| 1650 // ReferenceError' on the left-hand side. | 1650 // ReferenceError' on the left-hand side. |
| 1651 if (!expr->IsValidLeftHandSide()) { | 1651 if (!expr->IsValidLeftHandSide()) { |
| 1652 VisitForEffect(expr); | 1652 VisitForEffect(expr); |
| 1653 return; | 1653 return; |
| (...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3737 __ ret(0); | 3737 __ ret(0); |
| 3738 } | 3738 } |
| 3739 | 3739 |
| 3740 | 3740 |
| 3741 #undef __ | 3741 #undef __ |
| 3742 | 3742 |
| 3743 | 3743 |
| 3744 } } // namespace v8::internal | 3744 } } // namespace v8::internal |
| 3745 | 3745 |
| 3746 #endif // V8_TARGET_ARCH_X64 | 3746 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |