| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 bool strict); | 114 bool strict); |
| 115 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, | 115 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, |
| 116 Register lhs, | 116 Register lhs, |
| 117 Register rhs); | 117 Register rhs); |
| 118 | 118 |
| 119 | 119 |
| 120 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 120 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 121 // Update the static counter each time a new code stub is generated. | 121 // Update the static counter each time a new code stub is generated. |
| 122 isolate()->counters()->code_stubs()->Increment(); | 122 isolate()->counters()->code_stubs()->Increment(); |
| 123 | 123 |
| 124 CodeStubInterfaceDescriptor descriptor; | 124 CodeStubInterfaceDescriptor descriptor(this); |
| 125 InitializeInterfaceDescriptor(&descriptor); | |
| 126 int param_count = descriptor.GetEnvironmentParameterCount(); | 125 int param_count = descriptor.GetEnvironmentParameterCount(); |
| 127 { | 126 { |
| 128 // Call the runtime system in a fresh internal frame. | 127 // Call the runtime system in a fresh internal frame. |
| 129 FrameScope scope(masm, StackFrame::INTERNAL); | 128 FrameScope scope(masm, StackFrame::INTERNAL); |
| 130 DCHECK((param_count == 0) || | 129 DCHECK((param_count == 0) || |
| 131 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 130 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); |
| 132 // Push arguments, adjust sp. | 131 // Push arguments, adjust sp. |
| 133 __ Dsubu(sp, sp, Operand(param_count * kPointerSize)); | 132 __ Dsubu(sp, sp, Operand(param_count * kPointerSize)); |
| 134 for (int i = 0; i < param_count; ++i) { | 133 for (int i = 0; i < param_count; ++i) { |
| 135 // Store argument to stack. | 134 // Store argument to stack. |
| (...skipping 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4925 MemOperand(fp, 6 * kPointerSize), | 4924 MemOperand(fp, 6 * kPointerSize), |
| 4926 NULL); | 4925 NULL); |
| 4927 } | 4926 } |
| 4928 | 4927 |
| 4929 | 4928 |
| 4930 #undef __ | 4929 #undef __ |
| 4931 | 4930 |
| 4932 } } // namespace v8::internal | 4931 } } // namespace v8::internal |
| 4933 | 4932 |
| 4934 #endif // V8_TARGET_ARCH_MIPS64 | 4933 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |