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

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

Issue 2497523002: [promises] Move promise constructor to TFS (Closed)
Patch Set: fixees Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 } 2777 }
2778 2778
2779 // Called Construct on an Object that doesn't have a [[Construct]] internal 2779 // Called Construct on an Object that doesn't have a [[Construct]] internal
2780 // method. 2780 // method.
2781 __ bind(&non_constructor); 2781 __ bind(&non_constructor);
2782 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2782 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2783 RelocInfo::CODE_TARGET); 2783 RelocInfo::CODE_TARGET);
2784 } 2784 }
2785 2785
2786 // static 2786 // static
2787 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) {
2788 Generate_JSConstructStubHelper(masm, false, false, false);
2789 }
2790
2791 // static
2787 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { 2792 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2788 ASM_LOCATION("Builtins::Generate_AllocateInNewSpace"); 2793 ASM_LOCATION("Builtins::Generate_AllocateInNewSpace");
2789 // ----------- S t a t e ------------- 2794 // ----------- S t a t e -------------
2790 // -- x1 : requested object size (untagged) 2795 // -- x1 : requested object size (untagged)
2791 // -- lr : return address 2796 // -- lr : return address
2792 // ----------------------------------- 2797 // -----------------------------------
2793 __ SmiTag(x1); 2798 __ SmiTag(x1);
2794 __ Push(x1); 2799 __ Push(x1);
2795 __ Move(cp, Smi::kZero); 2800 __ Move(cp, Smi::kZero);
2796 __ TailCallRuntime(Runtime::kAllocateInNewSpace); 2801 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2967 __ Unreachable(); 2972 __ Unreachable();
2968 } 2973 }
2969 } 2974 }
2970 2975
2971 #undef __ 2976 #undef __
2972 2977
2973 } // namespace internal 2978 } // namespace internal
2974 } // namespace v8 2979 } // namespace v8
2975 2980
2976 #endif // V8_TARGET_ARCH_ARM 2981 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698