| 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 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5059 ApiParameterOperand(2), kStackSpace, nullptr, | 5062 ApiParameterOperand(2), kStackSpace, nullptr, |
| 5060 Operand(ebp, 7 * kPointerSize), NULL); | 5063 Operand(ebp, 7 * kPointerSize), NULL); |
| 5061 } | 5064 } |
| 5062 | 5065 |
| 5063 | 5066 |
| 5064 #undef __ | 5067 #undef __ |
| 5065 | 5068 |
| 5066 } } // namespace v8::internal | 5069 } } // namespace v8::internal |
| 5067 | 5070 |
| 5068 #endif // V8_TARGET_ARCH_IA32 | 5071 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |