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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 Register lhs, | 105 Register lhs, |
106 Register rhs); | 106 Register rhs); |
107 | 107 |
108 | 108 |
109 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 109 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
110 ExternalReference miss) { | 110 ExternalReference miss) { |
111 // Update the static counter each time a new code stub is generated. | 111 // Update the static counter each time a new code stub is generated. |
112 isolate()->counters()->code_stubs()->Increment(); | 112 isolate()->counters()->code_stubs()->Increment(); |
113 | 113 |
114 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); | 114 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); |
115 int param_count = descriptor.GetEnvironmentParameterCount(); | 115 int param_count = descriptor.GetRegisterParameterCount(); |
116 { | 116 { |
117 // Call the runtime system in a fresh internal frame. | 117 // Call the runtime system in a fresh internal frame. |
118 FrameScope scope(masm, StackFrame::INTERNAL); | 118 FrameScope scope(masm, StackFrame::INTERNAL); |
119 DCHECK(param_count == 0 || | 119 DCHECK(param_count == 0 || |
120 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 120 a0.is(descriptor.GetRegisterParameter(param_count - 1))); |
121 // Push arguments, adjust sp. | 121 // Push arguments, adjust sp. |
122 __ Subu(sp, sp, Operand(param_count * kPointerSize)); | 122 __ Subu(sp, sp, Operand(param_count * kPointerSize)); |
123 for (int i = 0; i < param_count; ++i) { | 123 for (int i = 0; i < param_count; ++i) { |
124 // Store argument to stack. | 124 // Store argument to stack. |
125 __ sw(descriptor.GetEnvironmentParameterRegister(i), | 125 __ sw(descriptor.GetRegisterParameter(i), |
126 MemOperand(sp, (param_count - 1 - i) * kPointerSize)); | 126 MemOperand(sp, (param_count - 1 - i) * kPointerSize)); |
127 } | 127 } |
128 __ CallExternalReference(miss, param_count); | 128 __ CallExternalReference(miss, param_count); |
129 } | 129 } |
130 | 130 |
131 __ Ret(); | 131 __ Ret(); |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 void DoubleToIStub::Generate(MacroAssembler* masm) { | 135 void DoubleToIStub::Generate(MacroAssembler* masm) { |
(...skipping 5438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5574 MemOperand(fp, 6 * kPointerSize), NULL); | 5574 MemOperand(fp, 6 * kPointerSize), NULL); |
5575 } | 5575 } |
5576 | 5576 |
5577 | 5577 |
5578 #undef __ | 5578 #undef __ |
5579 | 5579 |
5580 } // namespace internal | 5580 } // namespace internal |
5581 } // namespace v8 | 5581 } // namespace v8 |
5582 | 5582 |
5583 #endif // V8_TARGET_ARCH_MIPS | 5583 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |