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

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

Issue 1925073002: Revert of [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 | « src/ia32/interface-descriptors-ia32.cc ('k') | src/mips64/builtins-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 RelocInfo::CODE_TARGET); 2729 RelocInfo::CODE_TARGET);
2730 } 2730 }
2731 2731
2732 // Called Construct on an Object that doesn't have a [[Construct]] internal 2732 // Called Construct on an Object that doesn't have a [[Construct]] internal
2733 // method. 2733 // method.
2734 __ bind(&non_constructor); 2734 __ bind(&non_constructor);
2735 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2735 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2736 RelocInfo::CODE_TARGET); 2736 RelocInfo::CODE_TARGET);
2737 } 2737 }
2738 2738
2739 // static
2740 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2741 // ----------- S t a t e -------------
2742 // -- a0 : requested object size (tagged)
2743 // -- cp : context
2744 // -----------------------------------
2745 __ AssertSmi(a0);
2746
2747 Label runtime;
2748 __ SmiUntag(a0);
2749 __ Allocate(a0, v0, a1, a2, &runtime, NO_ALLOCATION_FLAGS);
2750 __ Ret();
2751
2752 __ bind(&runtime);
2753 __ SmiTag(a0);
2754 __ Push(a0);
2755 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
2756 }
2757
2758 // static
2759 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) {
2760 // ----------- S t a t e -------------
2761 // -- a0 : requested object size (tagged)
2762 // -- cp : context
2763 // -----------------------------------
2764 __ AssertSmi(a0);
2765
2766 Label runtime;
2767 __ SmiUntag(a0);
2768 __ Allocate(a0, v0, a1, a2, &runtime, PRETENURE);
2769 __ Ret();
2770
2771 __ bind(&runtime);
2772 __ SmiTag(a0);
2773 __ Push(a0);
2774 __ Push(Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2775 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2776 }
2777 2739
2778 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { 2740 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
2779 // State setup as expected by MacroAssembler::InvokePrologue. 2741 // State setup as expected by MacroAssembler::InvokePrologue.
2780 // ----------- S t a t e ------------- 2742 // ----------- S t a t e -------------
2781 // -- a0: actual arguments count 2743 // -- a0: actual arguments count
2782 // -- a1: function (passed through to callee) 2744 // -- a1: function (passed through to callee)
2783 // -- a2: expected arguments count 2745 // -- a2: expected arguments count
2784 // -- a3: new target (passed through to callee) 2746 // -- a3: new target (passed through to callee)
2785 // ----------------------------------- 2747 // -----------------------------------
2786 2748
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 } 2868 }
2907 } 2869 }
2908 2870
2909 2871
2910 #undef __ 2872 #undef __
2911 2873
2912 } // namespace internal 2874 } // namespace internal
2913 } // namespace v8 2875 } // namespace v8
2914 2876
2915 #endif // V8_TARGET_ARCH_MIPS 2877 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698