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

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

Issue 2372113004: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Ross' comments Created 4 years, 2 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') | src/builtins/x64/builtins-x64.cc » ('j') | 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 2498 matching lines...) Expand 10 before | Expand all | Expand 10 after
2509 __ bind(&convert_to_object); 2509 __ bind(&convert_to_object);
2510 { 2510 {
2511 // Convert receiver using ToObject. 2511 // Convert receiver using ToObject.
2512 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2512 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2513 // in the fast case? (fall back to AllocateInNewSpace?) 2513 // in the fast case? (fall back to AllocateInNewSpace?)
2514 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 2514 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2515 __ SmiTag(r2); 2515 __ SmiTag(r2);
2516 __ Push(r2, r3); 2516 __ Push(r2, r3);
2517 __ LoadRR(r2, r5); 2517 __ LoadRR(r2, r5);
2518 __ Push(cp); 2518 __ Push(cp);
2519 ToObjectStub stub(masm->isolate()); 2519 __ Call(masm->isolate()->builtins()->ToObject(),
2520 __ CallStub(&stub); 2520 RelocInfo::CODE_TARGET);
2521 __ Pop(cp); 2521 __ Pop(cp);
2522 __ LoadRR(r5, r2); 2522 __ LoadRR(r5, r2);
2523 __ Pop(r2, r3); 2523 __ Pop(r2, r3);
2524 __ SmiUntag(r2); 2524 __ SmiUntag(r2);
2525 } 2525 }
2526 __ LoadP(r4, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); 2526 __ LoadP(r4, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset));
2527 __ bind(&convert_receiver); 2527 __ bind(&convert_receiver);
2528 } 2528 }
2529 __ ShiftLeftP(r6, r2, Operand(kPointerSizeLog2)); 2529 __ ShiftLeftP(r6, r2, Operand(kPointerSizeLog2));
2530 __ StoreP(r5, MemOperand(sp, r6)); 2530 __ StoreP(r5, MemOperand(sp, r6));
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
3023 __ bkpt(0); 3023 __ bkpt(0);
3024 } 3024 }
3025 } 3025 }
3026 3026
3027 #undef __ 3027 #undef __
3028 3028
3029 } // namespace internal 3029 } // namespace internal
3030 } // namespace v8 3030 } // namespace v8
3031 3031
3032 #endif // V8_TARGET_ARCH_S390 3032 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698