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

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 1561943002: X87: Remove strong mode support from rest argument creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/full-codegen/x87/full-codegen-x87.cc ('k') | 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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 __ push(ecx); // Push parameter count. 850 __ push(ecx); // Push parameter count.
851 __ push(eax); // Push return address. 851 __ push(eax); // Push return address.
852 __ TailCallRuntime(Runtime::kNewStrictArguments); 852 __ TailCallRuntime(Runtime::kNewStrictArguments);
853 } 853 }
854 854
855 855
856 void RestParamAccessStub::GenerateNew(MacroAssembler* masm) { 856 void RestParamAccessStub::GenerateNew(MacroAssembler* masm) {
857 // ecx : number of parameters (tagged) 857 // ecx : number of parameters (tagged)
858 // edx : parameters pointer 858 // edx : parameters pointer
859 // ebx : rest parameter index (tagged) 859 // ebx : rest parameter index (tagged)
860 // edi : language mode (tagged)
861 // esp[0] : return address 860 // esp[0] : return address
862 861
863 // Check if the calling frame is an arguments adaptor frame. 862 // Check if the calling frame is an arguments adaptor frame.
864 Label runtime; 863 Label runtime;
865 __ mov(eax, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); 864 __ mov(edi, Operand(ebp, StandardFrameConstants::kCallerFPOffset));
866 __ mov(eax, Operand(eax, StandardFrameConstants::kContextOffset)); 865 __ mov(eax, Operand(edi, StandardFrameConstants::kContextOffset));
867 __ cmp(eax, Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); 866 __ cmp(eax, Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
868 __ j(not_equal, &runtime); 867 __ j(not_equal, &runtime);
869 868
870 // Patch the arguments.length and the parameters pointer. 869 // Patch the arguments.length and the parameters pointer.
871 __ mov(edx, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); 870 __ mov(ecx, Operand(edi, ArgumentsAdaptorFrameConstants::kLengthOffset));
872 __ mov(ecx, Operand(edx, ArgumentsAdaptorFrameConstants::kLengthOffset));
873 __ lea(edx, 871 __ lea(edx,
874 Operand(edx, ecx, times_2, StandardFrameConstants::kCallerSPOffset)); 872 Operand(edi, ecx, times_2, StandardFrameConstants::kCallerSPOffset));
875 873
876 __ bind(&runtime); 874 __ bind(&runtime);
877 __ pop(eax); // Save return address. 875 __ pop(eax); // Save return address.
878 __ push(ecx); // Push number of parameters. 876 __ push(ecx); // Push number of parameters.
879 __ push(edx); // Push parameters pointer. 877 __ push(edx); // Push parameters pointer.
880 __ push(ebx); // Push rest parameter index. 878 __ push(ebx); // Push rest parameter index.
881 __ push(edi); // Push language mode.
882 __ push(eax); // Push return address. 879 __ push(eax); // Push return address.
883 __ TailCallRuntime(Runtime::kNewRestParam); 880 __ TailCallRuntime(Runtime::kNewRestParam);
884 } 881 }
885 882
886 883
887 void RegExpExecStub::Generate(MacroAssembler* masm) { 884 void RegExpExecStub::Generate(MacroAssembler* masm) {
888 // Just jump directly to runtime if native RegExp is not selected at compile 885 // Just jump directly to runtime if native RegExp is not selected at compile
889 // time or if regexp entry in generated code is turned off runtime switch or 886 // time or if regexp entry in generated code is turned off runtime switch or
890 // at compilation. 887 // at compilation.
891 #ifdef V8_INTERPRETED_REGEXP 888 #ifdef V8_INTERPRETED_REGEXP
(...skipping 4461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 Operand(ebp, 7 * kPointerSize), NULL); 5350 Operand(ebp, 7 * kPointerSize), NULL);
5354 } 5351 }
5355 5352
5356 5353
5357 #undef __ 5354 #undef __
5358 5355
5359 } // namespace internal 5356 } // namespace internal
5360 } // namespace v8 5357 } // namespace v8
5361 5358
5362 #endif // V8_TARGET_ARCH_X87 5359 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698