| 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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 CompatibleReceiverCheck(masm, ecx, ebx, edx, eax, &receiver_check_failed); | 1915 CompatibleReceiverCheck(masm, ecx, ebx, edx, eax, &receiver_check_failed); |
| 1916 __ Pop(eax); | 1916 __ Pop(eax); |
| 1917 // Get the callback offset from the FunctionTemplateInfo, and jump to the | 1917 // Get the callback offset from the FunctionTemplateInfo, and jump to the |
| 1918 // beginning of the code. | 1918 // beginning of the code. |
| 1919 __ mov(edx, FieldOperand(ebx, FunctionTemplateInfo::kCallCodeOffset)); | 1919 __ mov(edx, FieldOperand(ebx, FunctionTemplateInfo::kCallCodeOffset)); |
| 1920 __ mov(edx, FieldOperand(edx, CallHandlerInfo::kFastHandlerOffset)); | 1920 __ mov(edx, FieldOperand(edx, CallHandlerInfo::kFastHandlerOffset)); |
| 1921 __ add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag)); | 1921 __ add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag)); |
| 1922 __ jmp(edx); | 1922 __ jmp(edx); |
| 1923 | 1923 |
| 1924 __ bind(&set_global_proxy); | 1924 __ bind(&set_global_proxy); |
| 1925 __ mov(ecx, NativeContextOperand()); | 1925 __ mov(ecx, GlobalObjectOperand()); |
| 1926 __ mov(ecx, ContextOperand(ecx, Context::GLOBAL_PROXY_INDEX)); | 1926 __ mov(ecx, FieldOperand(ecx, JSGlobalObject::kGlobalProxyOffset)); |
| 1927 __ mov(receiver_operand, ecx); | 1927 __ mov(receiver_operand, ecx); |
| 1928 __ jmp(&valid_receiver, Label::kNear); | 1928 __ jmp(&valid_receiver, Label::kNear); |
| 1929 | 1929 |
| 1930 // Compatible receiver check failed: pop return address, arguments and | 1930 // Compatible receiver check failed: pop return address, arguments and |
| 1931 // receiver and throw an Illegal Invocation exception. | 1931 // receiver and throw an Illegal Invocation exception. |
| 1932 __ bind(&receiver_check_failed); | 1932 __ bind(&receiver_check_failed); |
| 1933 __ Pop(eax); | 1933 __ Pop(eax); |
| 1934 __ PopReturnAddressTo(ebx); | 1934 __ PopReturnAddressTo(ebx); |
| 1935 __ lea(eax, Operand(eax, times_pointer_size, 1 * kPointerSize)); | 1935 __ lea(eax, Operand(eax, times_pointer_size, 1 * kPointerSize)); |
| 1936 __ add(esp, eax); | 1936 __ add(esp, eax); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1995 | 1995 |
| 1996 __ bind(&ok); | 1996 __ bind(&ok); |
| 1997 __ ret(0); | 1997 __ ret(0); |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 #undef __ | 2000 #undef __ |
| 2001 } // namespace internal | 2001 } // namespace internal |
| 2002 } // namespace v8 | 2002 } // namespace v8 |
| 2003 | 2003 |
| 2004 #endif // V8_TARGET_ARCH_IA32 | 2004 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |