Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Side by Side Diff: src/builtins/s390/builtins-s390.cc

Issue 2842843005: PPC/s390: SmiUntag only for 32bit (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
2221 __ SmiUntag(r2); 2222 __ SmiUntag(r2);
2223 #endif
2222 __ SubP(r2, r2, r4); 2224 __ SubP(r2, r2, r4);
2223 __ CmpP(r2, Operand::Zero()); 2225 __ CmpP(r2, Operand::Zero());
2224 __ ble(&stack_empty); 2226 __ ble(&stack_empty);
2225 { 2227 {
2226 // Check for stack overflow. 2228 // Check for stack overflow.
2227 Generate_StackOverflowCheck(masm, r2, r4, &stack_overflow); 2229 Generate_StackOverflowCheck(masm, r2, r4, &stack_overflow);
2228 2230
2229 // Forward the arguments from the caller frame. 2231 // Forward the arguments from the caller frame.
2230 { 2232 {
2231 Label loop; 2233 Label loop;
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 // Now jump to the instructions of the returned code object. 3124 // Now jump to the instructions of the returned code object.
3123 __ Jump(ip); 3125 __ Jump(ip);
3124 } 3126 }
3125 3127
3126 #undef __ 3128 #undef __
3127 3129
3128 } // namespace internal 3130 } // namespace internal
3129 } // namespace v8 3131 } // namespace v8
3130 3132
3131 #endif // V8_TARGET_ARCH_S390 3133 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698