OLD | NEW |
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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 } | 2797 } |
2798 | 2798 |
2799 // Called Construct on an Object that doesn't have a [[Construct]] internal | 2799 // Called Construct on an Object that doesn't have a [[Construct]] internal |
2800 // method. | 2800 // method. |
2801 __ bind(&non_constructor); | 2801 __ bind(&non_constructor); |
2802 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), | 2802 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), |
2803 RelocInfo::CODE_TARGET); | 2803 RelocInfo::CODE_TARGET); |
2804 } | 2804 } |
2805 | 2805 |
2806 // static | 2806 // static |
| 2807 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) { |
| 2808 Generate_JSConstructStubHelper(masm, false, false, false); |
| 2809 } |
| 2810 |
| 2811 // static |
2807 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { | 2812 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { |
2808 // ----------- S t a t e ------------- | 2813 // ----------- S t a t e ------------- |
2809 // -- a0 : requested object size (untagged) | 2814 // -- a0 : requested object size (untagged) |
2810 // -- ra : return address | 2815 // -- ra : return address |
2811 // ----------------------------------- | 2816 // ----------------------------------- |
2812 __ SmiTag(a0); | 2817 __ SmiTag(a0); |
2813 __ Push(a0); | 2818 __ Push(a0); |
2814 __ Move(cp, Smi::kZero); | 2819 __ Move(cp, Smi::kZero); |
2815 __ TailCallRuntime(Runtime::kAllocateInNewSpace); | 2820 __ TailCallRuntime(Runtime::kAllocateInNewSpace); |
2816 } | 2821 } |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2970 __ break_(0xCC); | 2975 __ break_(0xCC); |
2971 } | 2976 } |
2972 } | 2977 } |
2973 | 2978 |
2974 #undef __ | 2979 #undef __ |
2975 | 2980 |
2976 } // namespace internal | 2981 } // namespace internal |
2977 } // namespace v8 | 2982 } // namespace v8 |
2978 | 2983 |
2979 #endif // V8_TARGET_ARCH_MIPS64 | 2984 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |