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

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

Issue 1221713003: Distinguish slow from fast sloppy arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/hydrogen.cc ('k') | src/ia32/lithium-codegen-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 __ mov(edi, FieldOperand(edi, GlobalObject::kNativeContextOffset)); 892 __ mov(edi, FieldOperand(edi, GlobalObject::kNativeContextOffset));
893 __ mov(ebx, Operand(esp, 0 * kPointerSize)); 893 __ mov(ebx, Operand(esp, 0 * kPointerSize));
894 __ test(ebx, ebx); 894 __ test(ebx, ebx);
895 __ j(not_zero, &has_mapped_parameters, Label::kNear); 895 __ j(not_zero, &has_mapped_parameters, Label::kNear);
896 __ mov( 896 __ mov(
897 edi, 897 edi,
898 Operand(edi, Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX))); 898 Operand(edi, Context::SlotOffset(Context::SLOPPY_ARGUMENTS_MAP_INDEX)));
899 __ jmp(&instantiate, Label::kNear); 899 __ jmp(&instantiate, Label::kNear);
900 900
901 __ bind(&has_mapped_parameters); 901 __ bind(&has_mapped_parameters);
902 __ mov( 902 __ mov(edi, Operand(edi, Context::SlotOffset(
903 edi, 903 Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX)));
904 Operand(edi, Context::SlotOffset(Context::ALIASED_ARGUMENTS_MAP_INDEX)));
905 __ bind(&instantiate); 904 __ bind(&instantiate);
906 905
907 // eax = address of new object (tagged) 906 // eax = address of new object (tagged)
908 // ebx = mapped parameter count (tagged) 907 // ebx = mapped parameter count (tagged)
909 // ecx = argument count (smi-tagged) 908 // ecx = argument count (smi-tagged)
910 // edi = address of arguments map (tagged) 909 // edi = address of arguments map (tagged)
911 // esp[0] = mapped parameter count (tagged) 910 // esp[0] = mapped parameter count (tagged)
912 // esp[8] = parameter count (tagged) 911 // esp[8] = parameter count (tagged)
913 // esp[12] = address of receiver argument 912 // esp[12] = address of receiver argument
914 // Copy the JS object part. 913 // Copy the JS object part.
(...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after
5476 Operand(ebp, 7 * kPointerSize), NULL); 5475 Operand(ebp, 7 * kPointerSize), NULL);
5477 } 5476 }
5478 5477
5479 5478
5480 #undef __ 5479 #undef __
5481 5480
5482 } // namespace internal 5481 } // namespace internal
5483 } // namespace v8 5482 } // namespace v8
5484 5483
5485 #endif // V8_TARGET_ARCH_IA32 5484 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698