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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 4663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4674 __ li(scratch1, Operand(Smi::FromInt(count_value))); | 4674 __ li(scratch1, Operand(Smi::FromInt(count_value))); |
4675 __ AdduAndCheckForOverflow(v0, v0, scratch1, scratch2); | 4675 __ AdduAndCheckForOverflow(v0, v0, scratch1, scratch2); |
4676 __ BranchOnNoOverflow(&done, scratch2); | 4676 __ BranchOnNoOverflow(&done, scratch2); |
4677 // Call stub. Undo operation first. | 4677 // Call stub. Undo operation first. |
4678 __ Move(v0, a0); | 4678 __ Move(v0, a0); |
4679 __ jmp(&stub_call); | 4679 __ jmp(&stub_call); |
4680 __ bind(&slow); | 4680 __ bind(&slow); |
4681 } | 4681 } |
4682 ToNumberStub convert_stub(isolate()); | 4682 ToNumberStub convert_stub(isolate()); |
4683 __ CallStub(&convert_stub); | 4683 __ CallStub(&convert_stub); |
| 4684 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
4684 | 4685 |
4685 // Save result for postfix expressions. | 4686 // Save result for postfix expressions. |
4686 if (expr->is_postfix()) { | 4687 if (expr->is_postfix()) { |
4687 if (!context()->IsEffect()) { | 4688 if (!context()->IsEffect()) { |
4688 // Save the result on the stack. If we have a named or keyed property | 4689 // Save the result on the stack. If we have a named or keyed property |
4689 // we store the result under the receiver that is currently on top | 4690 // we store the result under the receiver that is currently on top |
4690 // of the stack. | 4691 // of the stack. |
4691 switch (assign_type) { | 4692 switch (assign_type) { |
4692 case VARIABLE: | 4693 case VARIABLE: |
4693 __ push(v0); | 4694 __ push(v0); |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5241 Assembler::target_address_at(pc_immediate_load_address)) == | 5242 Assembler::target_address_at(pc_immediate_load_address)) == |
5242 reinterpret_cast<uint64_t>( | 5243 reinterpret_cast<uint64_t>( |
5243 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5244 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5244 return OSR_AFTER_STACK_CHECK; | 5245 return OSR_AFTER_STACK_CHECK; |
5245 } | 5246 } |
5246 | 5247 |
5247 | 5248 |
5248 } } // namespace v8::internal | 5249 } } // namespace v8::internal |
5249 | 5250 |
5250 #endif // V8_TARGET_ARCH_MIPS64 | 5251 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |