| 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 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2142 isolate()->factory()->allocation_site_map(); | 2142 isolate()->factory()->allocation_site_map(); |
| 2143 __ cmp(FieldOperand(ebx, 0), Immediate(allocation_site_map)); | 2143 __ cmp(FieldOperand(ebx, 0), Immediate(allocation_site_map)); |
| 2144 __ j(equal, &feedback_register_initialized); | 2144 __ j(equal, &feedback_register_initialized); |
| 2145 __ mov(ebx, isolate()->factory()->undefined_value()); | 2145 __ mov(ebx, isolate()->factory()->undefined_value()); |
| 2146 __ bind(&feedback_register_initialized); | 2146 __ bind(&feedback_register_initialized); |
| 2147 } | 2147 } |
| 2148 | 2148 |
| 2149 __ AssertUndefinedOrAllocationSite(ebx); | 2149 __ AssertUndefinedOrAllocationSite(ebx); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 // Pass original constructor to construct stub. |
| 2153 __ mov(edx, edi); |
| 2154 |
| 2152 // Jump to the function-specific construct stub. | 2155 // Jump to the function-specific construct stub. |
| 2153 Register jmp_reg = ecx; | 2156 Register jmp_reg = ecx; |
| 2154 __ mov(jmp_reg, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); | 2157 __ mov(jmp_reg, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |
| 2155 __ mov(jmp_reg, FieldOperand(jmp_reg, | 2158 __ mov(jmp_reg, FieldOperand(jmp_reg, |
| 2156 SharedFunctionInfo::kConstructStubOffset)); | 2159 SharedFunctionInfo::kConstructStubOffset)); |
| 2157 __ lea(jmp_reg, FieldOperand(jmp_reg, Code::kHeaderSize)); | 2160 __ lea(jmp_reg, FieldOperand(jmp_reg, Code::kHeaderSize)); |
| 2158 __ jmp(jmp_reg); | 2161 __ jmp(jmp_reg); |
| 2159 | 2162 |
| 2160 // edi: called object | 2163 // edi: called object |
| 2161 // eax: number of arguments | 2164 // eax: number of arguments |
| (...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4871 ApiParameterOperand(2), kStackSpace, nullptr, | 4874 ApiParameterOperand(2), kStackSpace, nullptr, |
| 4872 Operand(ebp, 7 * kPointerSize), NULL); | 4875 Operand(ebp, 7 * kPointerSize), NULL); |
| 4873 } | 4876 } |
| 4874 | 4877 |
| 4875 | 4878 |
| 4876 #undef __ | 4879 #undef __ |
| 4877 | 4880 |
| 4878 } } // namespace v8::internal | 4881 } } // namespace v8::internal |
| 4879 | 4882 |
| 4880 #endif // V8_TARGET_ARCH_IA32 | 4883 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |