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

Side by Side Diff: src/builtins/mips/builtins-mips.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 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 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 } 2773 }
2774 2774
2775 // Called Construct on an Object that doesn't have a [[Construct]] internal 2775 // Called Construct on an Object that doesn't have a [[Construct]] internal
2776 // method. 2776 // method.
2777 __ bind(&non_constructor); 2777 __ bind(&non_constructor);
2778 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2778 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2779 RelocInfo::CODE_TARGET); 2779 RelocInfo::CODE_TARGET);
2780 } 2780 }
2781 2781
2782 // static 2782 // static
2783 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) {
2784 Generate_JSConstructStubHelper(masm, false, false, false);
2785 }
2786
2787 // static
2783 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { 2788 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2784 // ----------- S t a t e ------------- 2789 // ----------- S t a t e -------------
2785 // -- a0 : requested object size (untagged) 2790 // -- a0 : requested object size (untagged)
2786 // -- ra : return address 2791 // -- ra : return address
2787 // ----------------------------------- 2792 // -----------------------------------
2788 __ SmiTag(a0); 2793 __ SmiTag(a0);
2789 __ Push(a0); 2794 __ Push(a0);
2790 __ Move(cp, Smi::kZero); 2795 __ Move(cp, Smi::kZero);
2791 __ TailCallRuntime(Runtime::kAllocateInNewSpace); 2796 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
2792 } 2797 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2944 __ break_(0xCC); 2949 __ break_(0xCC);
2945 } 2950 }
2946 } 2951 }
2947 2952
2948 #undef __ 2953 #undef __
2949 2954
2950 } // namespace internal 2955 } // namespace internal
2951 } // namespace v8 2956 } // namespace v8
2952 2957
2953 #endif // V8_TARGET_ARCH_MIPS 2958 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698