Index: src/mips64/deoptimizer-mips64.cc |
diff --git a/src/mips64/deoptimizer-mips64.cc b/src/mips64/deoptimizer-mips64.cc |
index 7243e8e9e75926acfe87e6e79a0a1dbb0447af9c..4217e2d45cc00883f9895fddf4413e7e6b568e71 100644 |
--- a/src/mips64/deoptimizer-mips64.cc |
+++ b/src/mips64/deoptimizer-mips64.cc |
@@ -123,7 +123,7 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
int code = config->GetAllocatableDoubleCode(i); |
const DoubleRegister fpu_reg = DoubleRegister::from_code(code); |
int offset = code * kDoubleSize; |
- __ sdc1(fpu_reg, MemOperand(sp, offset)); |
+ __ Sdc1(fpu_reg, MemOperand(sp, offset)); |
} |
// Save all float FPU registers before messing with them. |
@@ -132,7 +132,7 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
int code = config->GetAllocatableFloatCode(i); |
const FloatRegister fpu_reg = FloatRegister::from_code(code); |
int offset = code * kFloatSize; |
- __ swc1(fpu_reg, MemOperand(sp, offset)); |
+ __ Swc1(fpu_reg, MemOperand(sp, offset)); |
} |
// Push saved_regs (needed to populate FrameDescription::registers_). |
@@ -140,18 +140,18 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
__ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize); |
for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { |
if ((saved_regs & (1 << i)) != 0) { |
- __ sd(ToRegister(i), MemOperand(sp, kPointerSize * i)); |
+ __ Sd(ToRegister(i), MemOperand(sp, kPointerSize * i)); |
} |
} |
__ li(a2, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
- __ sd(fp, MemOperand(a2)); |
+ __ Sd(fp, MemOperand(a2)); |
const int kSavedRegistersAreaSize = |
(kNumberOfRegisters * kPointerSize) + kDoubleRegsSize + kFloatRegsSize; |
// Get the bailout id from the stack. |
- __ ld(a2, MemOperand(sp, kSavedRegistersAreaSize)); |
+ __ Ld(a2, MemOperand(sp, kSavedRegistersAreaSize)); |
// Get the address of the location in the code object (a3) (return |
// address for lazy deoptimization) and compute the fp-to-sp delta in |
@@ -167,9 +167,9 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
// Pass six arguments, according to n64 ABI. |
__ mov(a0, zero_reg); |
Label context_check; |
- __ ld(a1, MemOperand(fp, CommonFrameConstants::kContextOrFrameTypeOffset)); |
+ __ Ld(a1, MemOperand(fp, CommonFrameConstants::kContextOrFrameTypeOffset)); |
__ JumpIfSmi(a1, &context_check); |
- __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
+ __ Ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
__ bind(&context_check); |
__ li(a1, Operand(type())); // Bailout type. |
// a2: bailout id already loaded. |
@@ -187,18 +187,18 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
// frame descriptor pointer to a1 (deoptimizer->input_); |
// Move deopt-obj to a0 for call to Deoptimizer::ComputeOutputFrames() below. |
__ mov(a0, v0); |
- __ ld(a1, MemOperand(v0, Deoptimizer::input_offset())); |
+ __ Ld(a1, MemOperand(v0, Deoptimizer::input_offset())); |
// Copy core registers into FrameDescription::registers_[kNumRegisters]. |
DCHECK(Register::kNumRegisters == kNumberOfRegisters); |
for (int i = 0; i < kNumberOfRegisters; i++) { |
int offset = (i * kPointerSize) + FrameDescription::registers_offset(); |
if ((saved_regs & (1 << i)) != 0) { |
- __ ld(a2, MemOperand(sp, i * kPointerSize)); |
- __ sd(a2, MemOperand(a1, offset)); |
+ __ Ld(a2, MemOperand(sp, i * kPointerSize)); |
+ __ Sd(a2, MemOperand(a1, offset)); |
} else if (FLAG_debug_code) { |
__ li(a2, kDebugZapValue); |
- __ sd(a2, MemOperand(a1, offset)); |
+ __ Sd(a2, MemOperand(a1, offset)); |
} |
} |
@@ -210,8 +210,8 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
int dst_offset = code * kDoubleSize + double_regs_offset; |
int src_offset = |
code * kDoubleSize + kNumberOfRegisters * kPointerSize + kFloatRegsSize; |
- __ ldc1(f0, MemOperand(sp, src_offset)); |
- __ sdc1(f0, MemOperand(a1, dst_offset)); |
+ __ Ldc1(f0, MemOperand(sp, src_offset)); |
+ __ Sdc1(f0, MemOperand(a1, dst_offset)); |
} |
int float_regs_offset = FrameDescription::float_registers_offset(); |
@@ -221,8 +221,8 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
int code = config->GetAllocatableFloatCode(i); |
int dst_offset = code * kFloatSize + float_regs_offset; |
int src_offset = code * kFloatSize + kNumberOfRegisters * kPointerSize; |
- __ lwc1(f0, MemOperand(sp, src_offset)); |
- __ swc1(f0, MemOperand(a1, dst_offset)); |
+ __ Lwc1(f0, MemOperand(sp, src_offset)); |
+ __ Swc1(f0, MemOperand(a1, dst_offset)); |
} |
// Remove the bailout id and the saved registers from the stack. |
@@ -230,7 +230,7 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
// Compute a pointer to the unwinding limit in register a2; that is |
// the first stack slot not part of the input frame. |
- __ ld(a2, MemOperand(a1, FrameDescription::frame_size_offset())); |
+ __ Ld(a2, MemOperand(a1, FrameDescription::frame_size_offset())); |
__ Daddu(a2, a2, sp); |
// Unwind the stack down to - but not including - the unwinding |
@@ -242,7 +242,7 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
__ BranchShort(&pop_loop_header); |
__ bind(&pop_loop); |
__ pop(a4); |
- __ sd(a4, MemOperand(a3, 0)); |
+ __ Sd(a4, MemOperand(a3, 0)); |
__ daddiu(a3, a3, sizeof(uint64_t)); |
__ bind(&pop_loop_header); |
__ BranchShort(&pop_loop, ne, a2, Operand(sp)); |
@@ -258,26 +258,26 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
} |
__ pop(a0); // Restore deoptimizer object (class Deoptimizer). |
- __ ld(sp, MemOperand(a0, Deoptimizer::caller_frame_top_offset())); |
+ __ Ld(sp, MemOperand(a0, Deoptimizer::caller_frame_top_offset())); |
// Replace the current (input) frame with the output frames. |
Label outer_push_loop, inner_push_loop, |
outer_loop_header, inner_loop_header; |
// Outer loop state: a4 = current "FrameDescription** output_", |
// a1 = one past the last FrameDescription**. |
- __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); |
- __ ld(a4, MemOperand(a0, Deoptimizer::output_offset())); // a4 is output_. |
+ __ Lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); |
+ __ Ld(a4, MemOperand(a0, Deoptimizer::output_offset())); // a4 is output_. |
__ Dlsa(a1, a4, a1, kPointerSizeLog2); |
__ BranchShort(&outer_loop_header); |
__ bind(&outer_push_loop); |
// Inner loop state: a2 = current FrameDescription*, a3 = loop index. |
- __ ld(a2, MemOperand(a4, 0)); // output_[ix] |
- __ ld(a3, MemOperand(a2, FrameDescription::frame_size_offset())); |
+ __ Ld(a2, MemOperand(a4, 0)); // output_[ix] |
+ __ Ld(a3, MemOperand(a2, FrameDescription::frame_size_offset())); |
__ BranchShort(&inner_loop_header); |
__ bind(&inner_push_loop); |
__ Dsubu(a3, a3, Operand(sizeof(uint64_t))); |
__ Daddu(a6, a2, Operand(a3)); |
- __ ld(a7, MemOperand(a6, FrameDescription::frame_content_offset())); |
+ __ Ld(a7, MemOperand(a6, FrameDescription::frame_content_offset())); |
__ push(a7); |
__ bind(&inner_loop_header); |
__ BranchShort(&inner_push_loop, ne, a3, Operand(zero_reg)); |
@@ -286,21 +286,21 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
__ bind(&outer_loop_header); |
__ BranchShort(&outer_push_loop, lt, a4, Operand(a1)); |
- __ ld(a1, MemOperand(a0, Deoptimizer::input_offset())); |
+ __ Ld(a1, MemOperand(a0, Deoptimizer::input_offset())); |
for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { |
int code = config->GetAllocatableDoubleCode(i); |
const DoubleRegister fpu_reg = DoubleRegister::from_code(code); |
int src_offset = code * kDoubleSize + double_regs_offset; |
- __ ldc1(fpu_reg, MemOperand(a1, src_offset)); |
+ __ Ldc1(fpu_reg, MemOperand(a1, src_offset)); |
} |
// Push state, pc, and continuation from the last output frame. |
- __ ld(a6, MemOperand(a2, FrameDescription::state_offset())); |
+ __ Ld(a6, MemOperand(a2, FrameDescription::state_offset())); |
__ push(a6); |
- __ ld(a6, MemOperand(a2, FrameDescription::pc_offset())); |
+ __ Ld(a6, MemOperand(a2, FrameDescription::pc_offset())); |
__ push(a6); |
- __ ld(a6, MemOperand(a2, FrameDescription::continuation_offset())); |
+ __ Ld(a6, MemOperand(a2, FrameDescription::continuation_offset())); |
__ push(a6); |
@@ -312,7 +312,7 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
for (int i = kNumberOfRegisters - 1; i >= 0; i--) { |
int offset = (i * kPointerSize) + FrameDescription::registers_offset(); |
if ((restored_regs & (1 << i)) != 0) { |
- __ ld(ToRegister(i), MemOperand(at, offset)); |
+ __ Ld(ToRegister(i), MemOperand(at, offset)); |
} |
} |