OLD | NEW |
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 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2779 } | 2779 } |
2780 | 2780 |
2781 // Called Construct on an Object that doesn't have a [[Construct]] internal | 2781 // Called Construct on an Object that doesn't have a [[Construct]] internal |
2782 // method. | 2782 // method. |
2783 __ bind(&non_constructor); | 2783 __ bind(&non_constructor); |
2784 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), | 2784 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), |
2785 RelocInfo::CODE_TARGET); | 2785 RelocInfo::CODE_TARGET); |
2786 } | 2786 } |
2787 | 2787 |
2788 // static | 2788 // static |
| 2789 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) { |
| 2790 Generate_JSConstructStubHelper(masm, false, false, false); |
| 2791 } |
| 2792 |
| 2793 // static |
2789 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { | 2794 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { |
2790 // ----------- S t a t e ------------- | 2795 // ----------- S t a t e ------------- |
2791 // -- r4 : requested object size (untagged) | 2796 // -- r4 : requested object size (untagged) |
2792 // -- lr : return address | 2797 // -- lr : return address |
2793 // ----------------------------------- | 2798 // ----------------------------------- |
2794 __ SmiTag(r4); | 2799 __ SmiTag(r4); |
2795 __ Push(r4); | 2800 __ Push(r4); |
2796 __ LoadSmiLiteral(cp, Smi::kZero); | 2801 __ LoadSmiLiteral(cp, Smi::kZero); |
2797 __ TailCallRuntime(Runtime::kAllocateInNewSpace); | 2802 __ TailCallRuntime(Runtime::kAllocateInNewSpace); |
2798 } | 2803 } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2951 __ CallRuntime(Runtime::kThrowStackOverflow); | 2956 __ CallRuntime(Runtime::kThrowStackOverflow); |
2952 __ bkpt(0); | 2957 __ bkpt(0); |
2953 } | 2958 } |
2954 } | 2959 } |
2955 | 2960 |
2956 #undef __ | 2961 #undef __ |
2957 } // namespace internal | 2962 } // namespace internal |
2958 } // namespace v8 | 2963 } // namespace v8 |
2959 | 2964 |
2960 #endif // V8_TARGET_ARCH_PPC | 2965 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |