| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 4954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4965 case KEYED_PROPERTY: | 4965 case KEYED_PROPERTY: |
| 4966 __ movp(Operand(rsp, 2 * kPointerSize), rax); | 4966 __ movp(Operand(rsp, 2 * kPointerSize), rax); |
| 4967 break; | 4967 break; |
| 4968 case KEYED_SUPER_PROPERTY: | 4968 case KEYED_SUPER_PROPERTY: |
| 4969 __ movp(Operand(rsp, 3 * kPointerSize), rax); | 4969 __ movp(Operand(rsp, 3 * kPointerSize), rax); |
| 4970 break; | 4970 break; |
| 4971 } | 4971 } |
| 4972 } | 4972 } |
| 4973 } | 4973 } |
| 4974 | 4974 |
| 4975 SmiOperationExecutionMode mode; | 4975 SmiOperationConstraints constraints = |
| 4976 mode.Add(PRESERVE_SOURCE_REGISTER); | 4976 SmiOperationConstraint::kPreserveSourceRegister | |
| 4977 mode.Add(BAILOUT_ON_NO_OVERFLOW); | 4977 SmiOperationConstraint::kBailoutOnNoOverflow; |
| 4978 if (expr->op() == Token::INC) { | 4978 if (expr->op() == Token::INC) { |
| 4979 __ SmiAddConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); | 4979 __ SmiAddConstant(rax, rax, Smi::FromInt(1), constraints, &done, |
| 4980 Label::kNear); |
| 4980 } else { | 4981 } else { |
| 4981 __ SmiSubConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); | 4982 __ SmiSubConstant(rax, rax, Smi::FromInt(1), constraints, &done, |
| 4983 Label::kNear); |
| 4982 } | 4984 } |
| 4983 __ jmp(&stub_call, Label::kNear); | 4985 __ jmp(&stub_call, Label::kNear); |
| 4984 __ bind(&slow); | 4986 __ bind(&slow); |
| 4985 } | 4987 } |
| 4986 if (!is_strong(language_mode())) { | 4988 if (!is_strong(language_mode())) { |
| 4987 ToNumberStub convert_stub(isolate()); | 4989 ToNumberStub convert_stub(isolate()); |
| 4988 __ CallStub(&convert_stub); | 4990 __ CallStub(&convert_stub); |
| 4989 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); | 4991 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
| 4990 } | 4992 } |
| 4991 | 4993 |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5483 Assembler::target_address_at(call_target_address, | 5485 Assembler::target_address_at(call_target_address, |
| 5484 unoptimized_code)); | 5486 unoptimized_code)); |
| 5485 return OSR_AFTER_STACK_CHECK; | 5487 return OSR_AFTER_STACK_CHECK; |
| 5486 } | 5488 } |
| 5487 | 5489 |
| 5488 | 5490 |
| 5489 } // namespace internal | 5491 } // namespace internal |
| 5490 } // namespace v8 | 5492 } // namespace v8 |
| 5491 | 5493 |
| 5492 #endif // V8_TARGET_ARCH_X64 | 5494 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |