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

Side by Side Diff: src/x87/builtins-x87.cc

Issue 1940143002: X87: [turbofan] Run everything after representation selection concurrently. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « no previous file | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 RelocInfo::CODE_TARGET); 2637 RelocInfo::CODE_TARGET);
2638 } 2638 }
2639 2639
2640 // Called Construct on an Object that doesn't have a [[Construct]] internal 2640 // Called Construct on an Object that doesn't have a [[Construct]] internal
2641 // method. 2641 // method.
2642 __ bind(&non_constructor); 2642 __ bind(&non_constructor);
2643 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2643 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2644 RelocInfo::CODE_TARGET); 2644 RelocInfo::CODE_TARGET);
2645 } 2645 }
2646 2646
2647 // static
2648 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2649 // ----------- S t a t e -------------
2650 // -- edx : requested object size (untagged)
2651 // -- esp[0] : return address
2652 // -----------------------------------
2653 Label runtime;
2654 __ Allocate(edx, eax, ecx, edi, &runtime, NO_ALLOCATION_FLAGS);
2655 __ Ret();
2656
2657 __ bind(&runtime);
2658 __ SmiTag(edx);
2659 __ PopReturnAddressTo(ecx);
2660 __ Push(edx);
2661 __ PushReturnAddressFrom(ecx);
2662 __ Move(esi, Smi::FromInt(0));
2663 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
2664 }
2665
2666 // static
2667 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) {
2668 // ----------- S t a t e -------------
2669 // -- edx : requested object size (untagged)
2670 // -- esp[0] : return address
2671 // -----------------------------------
2672 Label runtime;
2673 __ Allocate(edx, eax, ecx, edi, &runtime, PRETENURE);
2674 __ Ret();
2675
2676 __ bind(&runtime);
2677 __ SmiTag(edx);
2678 __ PopReturnAddressTo(ecx);
2679 __ Push(edx);
2680 __ Push(Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2681 __ PushReturnAddressFrom(ecx);
2682 __ Move(esi, Smi::FromInt(0));
2683 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2684 }
2647 2685
2648 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { 2686 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
2649 // ----------- S t a t e ------------- 2687 // ----------- S t a t e -------------
2650 // -- eax : actual number of arguments 2688 // -- eax : actual number of arguments
2651 // -- ebx : expected number of arguments 2689 // -- ebx : expected number of arguments
2652 // -- edx : new target (passed through to callee) 2690 // -- edx : new target (passed through to callee)
2653 // -- edi : function (passed through to callee) 2691 // -- edi : function (passed through to callee)
2654 // ----------------------------------- 2692 // -----------------------------------
2655 2693
2656 Label invoke, dont_adapt_arguments, stack_overflow; 2694 Label invoke, dont_adapt_arguments, stack_overflow;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2897 // And "return" to the OSR entry point of the function. 2935 // And "return" to the OSR entry point of the function.
2898 __ ret(0); 2936 __ ret(0);
2899 } 2937 }
2900 2938
2901 2939
2902 #undef __ 2940 #undef __
2903 } // namespace internal 2941 } // namespace internal
2904 } // namespace v8 2942 } // namespace v8
2905 2943
2906 #endif // V8_TARGET_ARCH_X87 2944 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698