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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 ParameterCount actual(argc); | 1939 ParameterCount actual(argc); |
1940 | 1940 |
1941 if (call_as_method) { | 1941 if (call_as_method) { |
1942 if (needs_checks) { | 1942 if (needs_checks) { |
1943 EmitContinueIfStrictOrNative(masm, &cont); | 1943 EmitContinueIfStrictOrNative(masm, &cont); |
1944 } | 1944 } |
1945 | 1945 |
1946 // Load the receiver from the stack. | 1946 // Load the receiver from the stack. |
1947 __ mov(eax, Operand(esp, (argc + 1) * kPointerSize)); | 1947 __ mov(eax, Operand(esp, (argc + 1) * kPointerSize)); |
1948 | 1948 |
1949 if (call_as_method) { | 1949 if (needs_checks) { |
1950 __ JumpIfSmi(eax, &wrap); | 1950 __ JumpIfSmi(eax, &wrap); |
1951 | 1951 |
1952 __ CmpObjectType(eax, FIRST_SPEC_OBJECT_TYPE, ecx); | 1952 __ CmpObjectType(eax, FIRST_SPEC_OBJECT_TYPE, ecx); |
1953 __ j(below, &wrap); | 1953 __ j(below, &wrap); |
1954 } else { | 1954 } else { |
1955 __ jmp(&wrap); | 1955 __ jmp(&wrap); |
1956 } | 1956 } |
1957 | 1957 |
1958 __ bind(&cont); | 1958 __ bind(&cont); |
1959 } | 1959 } |
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4628 Operand(ebp, 7 * kPointerSize), | 4628 Operand(ebp, 7 * kPointerSize), |
4629 NULL); | 4629 NULL); |
4630 } | 4630 } |
4631 | 4631 |
4632 | 4632 |
4633 #undef __ | 4633 #undef __ |
4634 | 4634 |
4635 } } // namespace v8::internal | 4635 } } // namespace v8::internal |
4636 | 4636 |
4637 #endif // V8_TARGET_ARCH_X87 | 4637 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |