| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1932 Label resume_frame, done; | 1932 Label resume_frame, done; |
| 1933 __ bind(&push_frame); | 1933 __ bind(&push_frame); |
| 1934 __ bl(&resume_frame); | 1934 __ bl(&resume_frame); |
| 1935 __ jmp(&done); | 1935 __ jmp(&done); |
| 1936 __ bind(&resume_frame); | 1936 __ bind(&resume_frame); |
| 1937 // lr = return address. | 1937 // lr = return address. |
| 1938 // fp = caller's frame pointer. | 1938 // fp = caller's frame pointer. |
| 1939 // pp = caller's constant pool (if FLAG_enable_embedded_constant_pool), | 1939 // pp = caller's constant pool (if FLAG_enable_embedded_constant_pool), |
| 1940 // cp = callee's context, | 1940 // cp = callee's context, |
| 1941 // r4 = callee's JS function. | 1941 // r4 = callee's JS function. |
| 1942 __ PushFixedFrame(r4); | 1942 __ PushStandardFrame(r4); |
| 1943 // Adjust FP to point to saved FP. | |
| 1944 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | |
| 1945 | 1943 |
| 1946 // Load the operand stack size. | 1944 // Load the operand stack size. |
| 1947 __ ldr(r3, FieldMemOperand(r1, JSGeneratorObject::kOperandStackOffset)); | 1945 __ ldr(r3, FieldMemOperand(r1, JSGeneratorObject::kOperandStackOffset)); |
| 1948 __ ldr(r3, FieldMemOperand(r3, FixedArray::kLengthOffset)); | 1946 __ ldr(r3, FieldMemOperand(r3, FixedArray::kLengthOffset)); |
| 1949 __ SmiUntag(r3); | 1947 __ SmiUntag(r3); |
| 1950 | 1948 |
| 1951 // If we are sending a value and there is no operand stack, we can jump back | 1949 // If we are sending a value and there is no operand stack, we can jump back |
| 1952 // in directly. | 1950 // in directly. |
| 1953 if (resume_mode == JSGeneratorObject::NEXT) { | 1951 if (resume_mode == JSGeneratorObject::NEXT) { |
| 1954 Label slow_resume; | 1952 Label slow_resume; |
| (...skipping 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4231 DCHECK(interrupt_address == | 4229 DCHECK(interrupt_address == |
| 4232 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4230 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4233 return OSR_AFTER_STACK_CHECK; | 4231 return OSR_AFTER_STACK_CHECK; |
| 4234 } | 4232 } |
| 4235 | 4233 |
| 4236 | 4234 |
| 4237 } // namespace internal | 4235 } // namespace internal |
| 4238 } // namespace v8 | 4236 } // namespace v8 |
| 4239 | 4237 |
| 4240 #endif // V8_TARGET_ARCH_ARM | 4238 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |