| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |