| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2257 ParameterCount actual(argc); | 2257 ParameterCount actual(argc); |
| 2258 | 2258 |
| 2259 if (call_as_method) { | 2259 if (call_as_method) { |
| 2260 if (needs_checks) { | 2260 if (needs_checks) { |
| 2261 EmitContinueIfStrictOrNative(masm, &cont); | 2261 EmitContinueIfStrictOrNative(masm, &cont); |
| 2262 } | 2262 } |
| 2263 | 2263 |
| 2264 // Load the receiver from the stack. | 2264 // Load the receiver from the stack. |
| 2265 __ mov(eax, Operand(esp, (argc + 1) * kPointerSize)); | 2265 __ mov(eax, Operand(esp, (argc + 1) * kPointerSize)); |
| 2266 | 2266 |
| 2267 if (call_as_method) { | 2267 if (needs_checks) { |
| 2268 __ JumpIfSmi(eax, &wrap); | 2268 __ JumpIfSmi(eax, &wrap); |
| 2269 | 2269 |
| 2270 __ CmpObjectType(eax, FIRST_SPEC_OBJECT_TYPE, ecx); | 2270 __ CmpObjectType(eax, FIRST_SPEC_OBJECT_TYPE, ecx); |
| 2271 __ j(below, &wrap); | 2271 __ j(below, &wrap); |
| 2272 } else { | 2272 } else { |
| 2273 __ jmp(&wrap); | 2273 __ jmp(&wrap); |
| 2274 } | 2274 } |
| 2275 | 2275 |
| 2276 __ bind(&cont); | 2276 __ bind(&cont); |
| 2277 } | 2277 } |
| (...skipping 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4988 Operand(ebp, 7 * kPointerSize), | 4988 Operand(ebp, 7 * kPointerSize), |
| 4989 NULL); | 4989 NULL); |
| 4990 } | 4990 } |
| 4991 | 4991 |
| 4992 | 4992 |
| 4993 #undef __ | 4993 #undef __ |
| 4994 | 4994 |
| 4995 } } // namespace v8::internal | 4995 } } // namespace v8::internal |
| 4996 | 4996 |
| 4997 #endif // V8_TARGET_ARCH_IA32 | 4997 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |