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

Side by Side Diff: src/builtins/ia32/builtins-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after
2794 } 2794 }
2795 2795
2796 // Called Construct on an Object that doesn't have a [[Construct]] internal 2796 // Called Construct on an Object that doesn't have a [[Construct]] internal
2797 // method. 2797 // method.
2798 __ bind(&non_constructor); 2798 __ bind(&non_constructor);
2799 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2799 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2800 RelocInfo::CODE_TARGET); 2800 RelocInfo::CODE_TARGET);
2801 } 2801 }
2802 2802
2803 // static 2803 // static
2804 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) {
2805 Generate_JSConstructStubHelper(masm, false, false, false);
2806 }
2807
2808 // static
2804 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { 2809 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2805 // ----------- S t a t e ------------- 2810 // ----------- S t a t e -------------
2806 // -- edx : requested object size (untagged) 2811 // -- edx : requested object size (untagged)
2807 // -- esp[0] : return address 2812 // -- esp[0] : return address
2808 // ----------------------------------- 2813 // -----------------------------------
2809 __ SmiTag(edx); 2814 __ SmiTag(edx);
2810 __ PopReturnAddressTo(ecx); 2815 __ PopReturnAddressTo(ecx);
2811 __ Push(edx); 2816 __ Push(edx);
2812 __ PushReturnAddressFrom(ecx); 2817 __ PushReturnAddressFrom(ecx);
2813 __ Move(esi, Smi::kZero); 2818 __ Move(esi, Smi::kZero);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 3120
3116 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3121 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3117 Generate_OnStackReplacementHelper(masm, true); 3122 Generate_OnStackReplacementHelper(masm, true);
3118 } 3123 }
3119 3124
3120 #undef __ 3125 #undef __
3121 } // namespace internal 3126 } // namespace internal
3122 } // namespace v8 3127 } // namespace v8
3123 3128
3124 #endif // V8_TARGET_ARCH_IA32 3129 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698