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 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3804 __ push(rax); // Copy of key, needed for later store. | 3804 __ push(rax); // Copy of key, needed for later store. |
3805 EmitKeyedPropertyLoad(prop); | 3805 EmitKeyedPropertyLoad(prop); |
3806 } | 3806 } |
3807 } | 3807 } |
3808 | 3808 |
3809 // We need a second deoptimization point after loading the value | 3809 // We need a second deoptimization point after loading the value |
3810 // in case evaluating the property load my have a side effect. | 3810 // in case evaluating the property load my have a side effect. |
3811 if (assign_type == VARIABLE) { | 3811 if (assign_type == VARIABLE) { |
3812 PrepareForBailout(expr->expression(), TOS_REG); | 3812 PrepareForBailout(expr->expression(), TOS_REG); |
3813 } else { | 3813 } else { |
3814 PrepareForBailout(expr->increment(), TOS_REG); | 3814 PrepareForBailoutForId(expr->CountId(), TOS_REG); |
3815 } | 3815 } |
3816 | 3816 |
3817 // Call ToNumber only if operand is not a smi. | 3817 // Call ToNumber only if operand is not a smi. |
3818 NearLabel no_conversion; | 3818 NearLabel no_conversion; |
3819 Condition is_smi; | 3819 Condition is_smi; |
3820 is_smi = masm_->CheckSmi(rax); | 3820 is_smi = masm_->CheckSmi(rax); |
3821 __ j(is_smi, &no_conversion); | 3821 __ j(is_smi, &no_conversion); |
3822 ToNumberStub convert_stub; | 3822 ToNumberStub convert_stub; |
3823 __ CallStub(&convert_stub); | 3823 __ CallStub(&convert_stub); |
3824 __ bind(&no_conversion); | 3824 __ bind(&no_conversion); |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4330 __ ret(0); | 4330 __ ret(0); |
4331 } | 4331 } |
4332 | 4332 |
4333 | 4333 |
4334 #undef __ | 4334 #undef __ |
4335 | 4335 |
4336 | 4336 |
4337 } } // namespace v8::internal | 4337 } } // namespace v8::internal |
4338 | 4338 |
4339 #endif // V8_TARGET_ARCH_X64 | 4339 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |