| 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 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4629 __ SmiAddConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); | 4629 __ SmiAddConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); |
| 4630 } else { | 4630 } else { |
| 4631 __ SmiSubConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); | 4631 __ SmiSubConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); |
| 4632 } | 4632 } |
| 4633 __ jmp(&stub_call, Label::kNear); | 4633 __ jmp(&stub_call, Label::kNear); |
| 4634 __ bind(&slow); | 4634 __ bind(&slow); |
| 4635 } | 4635 } |
| 4636 | 4636 |
| 4637 ToNumberStub convert_stub(isolate()); | 4637 ToNumberStub convert_stub(isolate()); |
| 4638 __ CallStub(&convert_stub); | 4638 __ CallStub(&convert_stub); |
| 4639 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
| 4639 | 4640 |
| 4640 // Save result for postfix expressions. | 4641 // Save result for postfix expressions. |
| 4641 if (expr->is_postfix()) { | 4642 if (expr->is_postfix()) { |
| 4642 if (!context()->IsEffect()) { | 4643 if (!context()->IsEffect()) { |
| 4643 // Save the result on the stack. If we have a named or keyed property | 4644 // Save the result on the stack. If we have a named or keyed property |
| 4644 // we store the result under the receiver that is currently on top | 4645 // we store the result under the receiver that is currently on top |
| 4645 // of the stack. | 4646 // of the stack. |
| 4646 switch (assign_type) { | 4647 switch (assign_type) { |
| 4647 case VARIABLE: | 4648 case VARIABLE: |
| 4648 __ Push(rax); | 4649 __ Push(rax); |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5193 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5194 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5194 Assembler::target_address_at(call_target_address, | 5195 Assembler::target_address_at(call_target_address, |
| 5195 unoptimized_code)); | 5196 unoptimized_code)); |
| 5196 return OSR_AFTER_STACK_CHECK; | 5197 return OSR_AFTER_STACK_CHECK; |
| 5197 } | 5198 } |
| 5198 | 5199 |
| 5199 | 5200 |
| 5200 } } // namespace v8::internal | 5201 } } // namespace v8::internal |
| 5201 | 5202 |
| 5202 #endif // V8_TARGET_ARCH_X64 | 5203 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |