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

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

Issue 1941613002: PPC: [turbofan] Run everything after representation selection concurrently. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/ppc/interface-descriptors-ppc.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 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 RelocInfo::CODE_TARGET); 2727 RelocInfo::CODE_TARGET);
2728 } 2728 }
2729 2729
2730 // Called Construct on an Object that doesn't have a [[Construct]] internal 2730 // Called Construct on an Object that doesn't have a [[Construct]] internal
2731 // method. 2731 // method.
2732 __ bind(&non_constructor); 2732 __ bind(&non_constructor);
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
2738 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2739 // ----------- S t a t e -------------
2740 // -- r4 : requested object size (untagged)
2741 // -- lr : return address
2742 // -----------------------------------
2743 Label runtime;
2744 __ Allocate(r4, r3, r5, r6, &runtime, NO_ALLOCATION_FLAGS);
2745 __ Ret();
2746
2747 __ bind(&runtime);
2748 __ SmiTag(r4);
2749 __ Push(r4);
2750 __ LoadSmiLiteral(cp, Smi::FromInt(0));
2751 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
2752 }
2753
2754 // static
2755 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) {
2756 // ----------- S t a t e -------------
2757 // -- r4 : requested object size (untagged)
2758 // -- lr : return address
2759 // -----------------------------------
2760 Label runtime;
2761 __ Allocate(r4, r3, r5, r6, &runtime, PRETENURE);
2762 __ Ret();
2763
2764 __ bind(&runtime);
2765 __ SmiTag(r4);
2766 __ LoadSmiLiteral(r5, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2767 __ Push(r4, r5);
2768 __ LoadSmiLiteral(cp, Smi::FromInt(0));
2769 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2770 }
2737 2771
2738 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { 2772 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
2739 // ----------- S t a t e ------------- 2773 // ----------- S t a t e -------------
2740 // -- r3 : actual number of arguments 2774 // -- r3 : actual number of arguments
2741 // -- r4 : function (passed through to callee) 2775 // -- r4 : function (passed through to callee)
2742 // -- r5 : expected number of arguments 2776 // -- r5 : expected number of arguments
2743 // -- r6 : new target (passed through to callee) 2777 // -- r6 : new target (passed through to callee)
2744 // ----------------------------------- 2778 // -----------------------------------
2745 2779
2746 Label invoke, dont_adapt_arguments, stack_overflow; 2780 Label invoke, dont_adapt_arguments, stack_overflow;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2867 __ bkpt(0); 2901 __ bkpt(0);
2868 } 2902 }
2869 } 2903 }
2870 2904
2871 2905
2872 #undef __ 2906 #undef __
2873 } // namespace internal 2907 } // namespace internal
2874 } // namespace v8 2908 } // namespace v8
2875 2909
2876 #endif // V8_TARGET_ARCH_PPC 2910 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/ppc/interface-descriptors-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698