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

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

Issue 1963583004: [turbofan] Initial version of allocation folding and write barrier elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Jaros comments; Created 4 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/mips64/builtins-mips64.cc ('k') | src/s390/builtins-s390.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 2722 matching lines...) Expand 10 before | Expand all | Expand 10 after
2733 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2733 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2734 RelocInfo::CODE_TARGET); 2734 RelocInfo::CODE_TARGET);
2735 } 2735 }
2736 2736
2737 // static 2737 // static
2738 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { 2738 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2739 // ----------- S t a t e ------------- 2739 // ----------- S t a t e -------------
2740 // -- r4 : requested object size (untagged) 2740 // -- r4 : requested object size (untagged)
2741 // -- lr : return address 2741 // -- lr : return address
2742 // ----------------------------------- 2742 // -----------------------------------
2743 Label runtime;
2744 __ Allocate(r4, r3, r5, r6, &runtime, NO_ALLOCATION_FLAGS);
2745 __ Ret();
2746
2747 __ bind(&runtime);
2748 __ SmiTag(r4); 2743 __ SmiTag(r4);
2749 __ Push(r4); 2744 __ Push(r4);
2750 __ LoadSmiLiteral(cp, Smi::FromInt(0)); 2745 __ LoadSmiLiteral(cp, Smi::FromInt(0));
2751 __ TailCallRuntime(Runtime::kAllocateInNewSpace); 2746 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
2752 } 2747 }
2753 2748
2754 // static 2749 // static
2755 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) { 2750 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) {
2756 // ----------- S t a t e ------------- 2751 // ----------- S t a t e -------------
2757 // -- r4 : requested object size (untagged) 2752 // -- r4 : requested object size (untagged)
2758 // -- lr : return address 2753 // -- lr : return address
2759 // ----------------------------------- 2754 // -----------------------------------
2760 Label runtime;
2761 __ Allocate(r4, r3, r5, r6, &runtime, PRETENURE);
2762 __ Ret();
2763
2764 __ bind(&runtime);
2765 __ SmiTag(r4); 2755 __ SmiTag(r4);
2766 __ LoadSmiLiteral(r5, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); 2756 __ LoadSmiLiteral(r5, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2767 __ Push(r4, r5); 2757 __ Push(r4, r5);
2768 __ LoadSmiLiteral(cp, Smi::FromInt(0)); 2758 __ LoadSmiLiteral(cp, Smi::FromInt(0));
2769 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); 2759 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2770 } 2760 }
2771 2761
2772 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { 2762 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
2773 // ----------- S t a t e ------------- 2763 // ----------- S t a t e -------------
2774 // -- r3 : actual number of arguments 2764 // -- r3 : actual number of arguments
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2901 __ bkpt(0); 2891 __ bkpt(0);
2902 } 2892 }
2903 } 2893 }
2904 2894
2905 2895
2906 #undef __ 2896 #undef __
2907 } // namespace internal 2897 } // namespace internal
2908 } // namespace v8 2898 } // namespace v8
2909 2899
2910 #endif // V8_TARGET_ARCH_PPC 2900 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698