| 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 <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
| (...skipping 4924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4935 | 4935 |
| 4936 void MacroAssembler::LeaveExitFrame(bool save_doubles, Register argument_count, | 4936 void MacroAssembler::LeaveExitFrame(bool save_doubles, Register argument_count, |
| 4937 bool restore_context, bool do_return, | 4937 bool restore_context, bool do_return, |
| 4938 bool argument_count_is_length) { | 4938 bool argument_count_is_length) { |
| 4939 // Optionally restore all double registers. | 4939 // Optionally restore all double registers. |
| 4940 if (save_doubles) { | 4940 if (save_doubles) { |
| 4941 // Remember: we only need to restore every 2nd double FPU value. | 4941 // Remember: we only need to restore every 2nd double FPU value. |
| 4942 lw(t8, MemOperand(fp, ExitFrameConstants::kSPOffset)); | 4942 lw(t8, MemOperand(fp, ExitFrameConstants::kSPOffset)); |
| 4943 for (int i = 0; i < FPURegister::kMaxNumRegisters; i+=2) { | 4943 for (int i = 0; i < FPURegister::kMaxNumRegisters; i+=2) { |
| 4944 FPURegister reg = FPURegister::from_code(i); | 4944 FPURegister reg = FPURegister::from_code(i); |
| 4945 ldc1(reg, MemOperand(t8, i * kDoubleSize + kPointerSize)); | 4945 ldc1(reg, MemOperand(t8, i * kDoubleSize + kPointerSize)); |
| 4946 } | 4946 } |
| 4947 } | 4947 } |
| 4948 | 4948 |
| 4949 // Clear top frame. | 4949 // Clear top frame. |
| 4950 li(t8, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); | 4950 li(t8, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
| 4951 sw(zero_reg, MemOperand(t8)); | 4951 sw(zero_reg, MemOperand(t8)); |
| 4952 | 4952 |
| 4953 // Restore current context from top and clear it in debug mode. | 4953 // Restore current context from top and clear it in debug mode. |
| 4954 if (restore_context) { | 4954 if (restore_context) { |
| 4955 li(t8, Operand(ExternalReference(Isolate::kContextAddress, isolate()))); | 4955 li(t8, Operand(ExternalReference(Isolate::kContextAddress, isolate()))); |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6004 if (mag.shift > 0) sra(result, result, mag.shift); | 6004 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6005 srl(at, dividend, 31); | 6005 srl(at, dividend, 31); |
| 6006 Addu(result, result, Operand(at)); | 6006 Addu(result, result, Operand(at)); |
| 6007 } | 6007 } |
| 6008 | 6008 |
| 6009 | 6009 |
| 6010 } // namespace internal | 6010 } // namespace internal |
| 6011 } // namespace v8 | 6011 } // namespace v8 |
| 6012 | 6012 |
| 6013 #endif // V8_TARGET_ARCH_MIPS | 6013 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |