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_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.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 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 } | 2766 } |
2767 | 2767 |
2768 // Called Construct on an Object that doesn't have a [[Construct]] internal | 2768 // Called Construct on an Object that doesn't have a [[Construct]] internal |
2769 // method. | 2769 // method. |
2770 __ bind(&non_constructor); | 2770 __ bind(&non_constructor); |
2771 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), | 2771 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), |
2772 RelocInfo::CODE_TARGET); | 2772 RelocInfo::CODE_TARGET); |
2773 } | 2773 } |
2774 | 2774 |
2775 // static | 2775 // static |
| 2776 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) { |
| 2777 Generate_JSConstructStubHelper(masm, false, false, false); |
| 2778 } |
| 2779 |
| 2780 // static |
2776 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { | 2781 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { |
2777 // ----------- S t a t e ------------- | 2782 // ----------- S t a t e ------------- |
2778 // -- edx : requested object size (untagged) | 2783 // -- edx : requested object size (untagged) |
2779 // -- esp[0] : return address | 2784 // -- esp[0] : return address |
2780 // ----------------------------------- | 2785 // ----------------------------------- |
2781 __ SmiTag(edx); | 2786 __ SmiTag(edx); |
2782 __ PopReturnAddressTo(ecx); | 2787 __ PopReturnAddressTo(ecx); |
2783 __ Push(edx); | 2788 __ Push(edx); |
2784 __ PushReturnAddressFrom(ecx); | 2789 __ PushReturnAddressFrom(ecx); |
2785 __ Move(esi, Smi::kZero); | 2790 __ Move(esi, Smi::kZero); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 | 3092 |
3088 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3093 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
3089 Generate_OnStackReplacementHelper(masm, true); | 3094 Generate_OnStackReplacementHelper(masm, true); |
3090 } | 3095 } |
3091 | 3096 |
3092 #undef __ | 3097 #undef __ |
3093 } // namespace internal | 3098 } // namespace internal |
3094 } // namespace v8 | 3099 } // namespace v8 |
3095 | 3100 |
3096 #endif // V8_TARGET_ARCH_X87 | 3101 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |