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 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 Register lhs, | 104 Register lhs, |
105 Register rhs); | 105 Register rhs); |
106 | 106 |
107 | 107 |
108 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 108 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
109 ExternalReference miss) { | 109 ExternalReference miss) { |
110 // Update the static counter each time a new code stub is generated. | 110 // Update the static counter each time a new code stub is generated. |
111 isolate()->counters()->code_stubs()->Increment(); | 111 isolate()->counters()->code_stubs()->Increment(); |
112 | 112 |
113 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); | 113 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); |
114 int param_count = descriptor.GetEnvironmentParameterCount(); | 114 int param_count = descriptor.GetRegisterParameterCount(); |
115 { | 115 { |
116 // Call the runtime system in a fresh internal frame. | 116 // Call the runtime system in a fresh internal frame. |
117 FrameScope scope(masm, StackFrame::INTERNAL); | 117 FrameScope scope(masm, StackFrame::INTERNAL); |
118 DCHECK((param_count == 0) || | 118 DCHECK((param_count == 0) || |
119 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 119 a0.is(descriptor.GetRegisterParameter(param_count - 1))); |
120 // Push arguments, adjust sp. | 120 // Push arguments, adjust sp. |
121 __ Dsubu(sp, sp, Operand(param_count * kPointerSize)); | 121 __ Dsubu(sp, sp, Operand(param_count * kPointerSize)); |
122 for (int i = 0; i < param_count; ++i) { | 122 for (int i = 0; i < param_count; ++i) { |
123 // Store argument to stack. | 123 // Store argument to stack. |
124 __ sd(descriptor.GetEnvironmentParameterRegister(i), | 124 __ sd(descriptor.GetRegisterParameter(i), |
125 MemOperand(sp, (param_count - 1 - i) * kPointerSize)); | 125 MemOperand(sp, (param_count - 1 - i) * kPointerSize)); |
126 } | 126 } |
127 __ CallExternalReference(miss, param_count); | 127 __ CallExternalReference(miss, param_count); |
128 } | 128 } |
129 | 129 |
130 __ Ret(); | 130 __ Ret(); |
131 } | 131 } |
132 | 132 |
133 | 133 |
134 void DoubleToIStub::Generate(MacroAssembler* masm) { | 134 void DoubleToIStub::Generate(MacroAssembler* masm) { |
(...skipping 5480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5615 MemOperand(fp, 6 * kPointerSize), NULL); | 5615 MemOperand(fp, 6 * kPointerSize), NULL); |
5616 } | 5616 } |
5617 | 5617 |
5618 | 5618 |
5619 #undef __ | 5619 #undef __ |
5620 | 5620 |
5621 } // namespace internal | 5621 } // namespace internal |
5622 } // namespace v8 | 5622 } // namespace v8 |
5623 | 5623 |
5624 #endif // V8_TARGET_ARCH_MIPS64 | 5624 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |