OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2211 } | 2211 } |
2212 __ b(&arguments_done); | 2212 __ b(&arguments_done); |
2213 __ bind(&arguments_adaptor); | 2213 __ bind(&arguments_adaptor); |
2214 { | 2214 { |
2215 // Load the length from the ArgumentsAdaptorFrame. | 2215 // Load the length from the ArgumentsAdaptorFrame. |
2216 __ LoadP(r2, MemOperand(r5, ArgumentsAdaptorFrameConstants::kLengthOffset)); | 2216 __ LoadP(r2, MemOperand(r5, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
2217 } | 2217 } |
2218 __ bind(&arguments_done); | 2218 __ bind(&arguments_done); |
2219 | 2219 |
2220 Label stack_empty, stack_done, stack_overflow; | 2220 Label stack_empty, stack_done, stack_overflow; |
2221 #if !V8_TARGET_ARCH_S390X | |
2222 __ SmiUntag(r2); | 2221 __ SmiUntag(r2); |
2223 #endif | |
2224 __ SubP(r2, r2, r4); | 2222 __ SubP(r2, r2, r4); |
2225 __ CmpP(r2, Operand::Zero()); | 2223 __ CmpP(r2, Operand::Zero()); |
2226 __ ble(&stack_empty); | 2224 __ ble(&stack_empty); |
2227 { | 2225 { |
2228 // Check for stack overflow. | 2226 // Check for stack overflow. |
2229 Generate_StackOverflowCheck(masm, r2, r4, &stack_overflow); | 2227 Generate_StackOverflowCheck(masm, r2, r4, &stack_overflow); |
2230 | 2228 |
2231 // Forward the arguments from the caller frame. | 2229 // Forward the arguments from the caller frame. |
2232 { | 2230 { |
2233 Label loop; | 2231 Label loop; |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3124 // Now jump to the instructions of the returned code object. | 3122 // Now jump to the instructions of the returned code object. |
3125 __ Jump(ip); | 3123 __ Jump(ip); |
3126 } | 3124 } |
3127 | 3125 |
3128 #undef __ | 3126 #undef __ |
3129 | 3127 |
3130 } // namespace internal | 3128 } // namespace internal |
3131 } // namespace v8 | 3129 } // namespace v8 |
3132 | 3130 |
3133 #endif // V8_TARGET_ARCH_S390 | 3131 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |