| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 | 985 |
| 986 // Save a pointer to where we pushed the arguments pointer. | 986 // Save a pointer to where we pushed the arguments pointer. |
| 987 // This will be passed as the const AccessorInfo& to the C++ callback. | 987 // This will be passed as the const AccessorInfo& to the C++ callback. |
| 988 __ push(scratch2); | 988 __ push(scratch2); |
| 989 | 989 |
| 990 __ push(name_reg); // name | 990 __ push(name_reg); // name |
| 991 __ mov(ebx, esp); // esp points to reference to name (handler). | 991 __ mov(ebx, esp); // esp points to reference to name (handler). |
| 992 | 992 |
| 993 __ push(scratch3); // Restore return address. | 993 __ push(scratch3); // Restore return address. |
| 994 | 994 |
| 995 // 3 elements array for v8::Agruments::values_, handler for name and pointer | 995 // 3 elements array for v8::Arguments::values_, handler for name and pointer |
| 996 // to the values (it considered as smi in GC). | 996 // to the values (it considered as smi in GC). |
| 997 const int kStackSpace = 5; | 997 const int kStackSpace = 5; |
| 998 const int kApiArgc = 2; | 998 const int kApiArgc = 2; |
| 999 | 999 |
| 1000 __ PrepareCallApiFunction(kApiArgc); | 1000 __ PrepareCallApiFunction(kApiArgc); |
| 1001 __ mov(ApiParameterOperand(0), ebx); // name. | 1001 __ mov(ApiParameterOperand(0), ebx); // name. |
| 1002 __ add(ebx, Immediate(kPointerSize)); | 1002 __ add(ebx, Immediate(kPointerSize)); |
| 1003 __ mov(ApiParameterOperand(1), ebx); // arguments pointer. | 1003 __ mov(ApiParameterOperand(1), ebx); // arguments pointer. |
| 1004 | 1004 |
| 1005 // Emitting a stub call may try to allocate (if the code is not | 1005 // Emitting a stub call may try to allocate (if the code is not |
| (...skipping 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3815 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); | 3815 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); |
| 3816 __ jmp(ic_miss, RelocInfo::CODE_TARGET); | 3816 __ jmp(ic_miss, RelocInfo::CODE_TARGET); |
| 3817 } | 3817 } |
| 3818 | 3818 |
| 3819 | 3819 |
| 3820 #undef __ | 3820 #undef __ |
| 3821 | 3821 |
| 3822 } } // namespace v8::internal | 3822 } } // namespace v8::internal |
| 3823 | 3823 |
| 3824 #endif // V8_TARGET_ARCH_IA32 | 3824 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |