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

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

Issue 1926023002: [turbofan] Run everything after representation selection concurrently. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove some dead code. 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 | « src/handles.h ('k') | src/ia32/interface-descriptors-ia32.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_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 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2611 RelocInfo::CODE_TARGET); 2611 RelocInfo::CODE_TARGET);
2612 } 2612 }
2613 2613
2614 // Called Construct on an Object that doesn't have a [[Construct]] internal 2614 // Called Construct on an Object that doesn't have a [[Construct]] internal
2615 // method. 2615 // method.
2616 __ bind(&non_constructor); 2616 __ bind(&non_constructor);
2617 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), 2617 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2618 RelocInfo::CODE_TARGET); 2618 RelocInfo::CODE_TARGET);
2619 } 2619 }
2620 2620
2621 // static
2622 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2623 // ----------- S t a t e -------------
2624 // -- edx : requested object size (untagged)
2625 // -- esp[0] : return address
2626 // -----------------------------------
2627 Label runtime;
2628 __ Allocate(edx, eax, ecx, edi, &runtime, NO_ALLOCATION_FLAGS);
2629 __ Ret();
2630
2631 __ bind(&runtime);
2632 __ SmiTag(edx);
2633 __ PopReturnAddressTo(ecx);
2634 __ Push(edx);
2635 __ PushReturnAddressFrom(ecx);
2636 __ Move(esi, Smi::FromInt(0));
2637 __ TailCallRuntime(Runtime::kAllocateInNewSpace);
2638 }
2639
2640 // static
2641 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) {
2642 // ----------- S t a t e -------------
2643 // -- edx : requested object size (untagged)
2644 // -- esp[0] : return address
2645 // -----------------------------------
2646 Label runtime;
2647 __ Allocate(edx, eax, ecx, edi, &runtime, PRETENURE);
2648 __ Ret();
2649
2650 __ bind(&runtime);
2651 __ SmiTag(edx);
2652 __ PopReturnAddressTo(ecx);
2653 __ Push(edx);
2654 __ Push(Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2655 __ PushReturnAddressFrom(ecx);
2656 __ Move(esi, Smi::FromInt(0));
2657 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2658 }
2621 2659
2622 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { 2660 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
2623 // ----------- S t a t e ------------- 2661 // ----------- S t a t e -------------
2624 // -- eax : actual number of arguments 2662 // -- eax : actual number of arguments
2625 // -- ebx : expected number of arguments 2663 // -- ebx : expected number of arguments
2626 // -- edx : new target (passed through to callee) 2664 // -- edx : new target (passed through to callee)
2627 // -- edi : function (passed through to callee) 2665 // -- edi : function (passed through to callee)
2628 // ----------------------------------- 2666 // -----------------------------------
2629 2667
2630 Label invoke, dont_adapt_arguments, stack_overflow; 2668 Label invoke, dont_adapt_arguments, stack_overflow;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2870 // And "return" to the OSR entry point of the function. 2908 // And "return" to the OSR entry point of the function.
2871 __ ret(0); 2909 __ ret(0);
2872 } 2910 }
2873 2911
2874 2912
2875 #undef __ 2913 #undef __
2876 } // namespace internal 2914 } // namespace internal
2877 } // namespace v8 2915 } // namespace v8
2878 2916
2879 #endif // V8_TARGET_ARCH_IA32 2917 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698