| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 // the generator was suspended. | 1930 // the generator was suspended. |
| 1931 Label resume_frame, done; | 1931 Label resume_frame, done; |
| 1932 __ bind(&push_frame); | 1932 __ bind(&push_frame); |
| 1933 __ Call(&resume_frame); | 1933 __ Call(&resume_frame); |
| 1934 __ jmp(&done); | 1934 __ jmp(&done); |
| 1935 __ bind(&resume_frame); | 1935 __ bind(&resume_frame); |
| 1936 // ra = return address. | 1936 // ra = return address. |
| 1937 // fp = caller's frame pointer. | 1937 // fp = caller's frame pointer. |
| 1938 // cp = callee's context, | 1938 // cp = callee's context, |
| 1939 // a4 = callee's JS function. | 1939 // a4 = callee's JS function. |
| 1940 __ Push(ra, fp, cp, a4); | 1940 __ PushStandardFrame(a4); |
| 1941 // Adjust FP to point to saved FP. | |
| 1942 __ Daddu(fp, sp, 2 * kPointerSize); | |
| 1943 | 1941 |
| 1944 // Load the operand stack size. | 1942 // Load the operand stack size. |
| 1945 __ ld(a3, FieldMemOperand(a1, JSGeneratorObject::kOperandStackOffset)); | 1943 __ ld(a3, FieldMemOperand(a1, JSGeneratorObject::kOperandStackOffset)); |
| 1946 __ ld(a3, FieldMemOperand(a3, FixedArray::kLengthOffset)); | 1944 __ ld(a3, FieldMemOperand(a3, FixedArray::kLengthOffset)); |
| 1947 __ SmiUntag(a3); | 1945 __ SmiUntag(a3); |
| 1948 | 1946 |
| 1949 // If we are sending a value and there is no operand stack, we can jump back | 1947 // If we are sending a value and there is no operand stack, we can jump back |
| 1950 // in directly. | 1948 // in directly. |
| 1951 if (resume_mode == JSGeneratorObject::NEXT) { | 1949 if (resume_mode == JSGeneratorObject::NEXT) { |
| 1952 Label slow_resume; | 1950 Label slow_resume; |
| (...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4190 reinterpret_cast<uint64_t>( | 4188 reinterpret_cast<uint64_t>( |
| 4191 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4189 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4192 return OSR_AFTER_STACK_CHECK; | 4190 return OSR_AFTER_STACK_CHECK; |
| 4193 } | 4191 } |
| 4194 | 4192 |
| 4195 | 4193 |
| 4196 } // namespace internal | 4194 } // namespace internal |
| 4197 } // namespace v8 | 4195 } // namespace v8 |
| 4198 | 4196 |
| 4199 #endif // V8_TARGET_ARCH_MIPS64 | 4197 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |