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

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

Issue 2839343003: Reland of PPC/s390: SmiUntag only for 32bit (Closed)
Patch Set: Created 3 years, 7 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 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2207 __ LoadP(r2, FieldMemOperand(r2, JSFunction::kSharedFunctionInfoOffset)); 2207 __ LoadP(r2, FieldMemOperand(r2, JSFunction::kSharedFunctionInfoOffset));
2208 __ LoadW(r2, FieldMemOperand( 2208 __ LoadW(r2, FieldMemOperand(
2209 r2, SharedFunctionInfo::kFormalParameterCountOffset)); 2209 r2, SharedFunctionInfo::kFormalParameterCountOffset));
2210 __ LoadRR(r5, fp); 2210 __ LoadRR(r5, fp);
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 #if V8_TARGET_ARCH_S390X
2218 __ SmiUntag(r2);
2219 #endif
2217 } 2220 }
2218 __ bind(&arguments_done); 2221 __ bind(&arguments_done);
2219 2222
2220 Label stack_empty, stack_done, stack_overflow; 2223 Label stack_empty, stack_done, stack_overflow;
2224 #if !V8_TARGET_ARCH_S390X
2221 __ SmiUntag(r2); 2225 __ SmiUntag(r2);
2226 #endif
2222 __ SubP(r2, r2, r4); 2227 __ SubP(r2, r2, r4);
2223 __ CmpP(r2, Operand::Zero()); 2228 __ CmpP(r2, Operand::Zero());
2224 __ ble(&stack_empty); 2229 __ ble(&stack_empty);
2225 { 2230 {
2226 // Check for stack overflow. 2231 // Check for stack overflow.
2227 Generate_StackOverflowCheck(masm, r2, r4, &stack_overflow); 2232 Generate_StackOverflowCheck(masm, r2, r4, &stack_overflow);
2228 2233
2229 // Forward the arguments from the caller frame. 2234 // Forward the arguments from the caller frame.
2230 { 2235 {
2231 Label loop; 2236 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. 3127 // Now jump to the instructions of the returned code object.
3123 __ Jump(ip); 3128 __ Jump(ip);
3124 } 3129 }
3125 3130
3126 #undef __ 3131 #undef __
3127 3132
3128 } // namespace internal 3133 } // namespace internal
3129 } // namespace v8 3134 } // namespace v8
3130 3135
3131 #endif // V8_TARGET_ARCH_S390 3136 #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