| 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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 Register name_arg = rdx; | 975 Register name_arg = rdx; |
| 976 #else | 976 #else |
| 977 Register accessor_info_arg = rsi; | 977 Register accessor_info_arg = rsi; |
| 978 Register name_arg = rdi; | 978 Register name_arg = rdi; |
| 979 #endif | 979 #endif |
| 980 | 980 |
| 981 ASSERT(!name_arg.is(scratch2)); | 981 ASSERT(!name_arg.is(scratch2)); |
| 982 __ movq(name_arg, rsp); | 982 __ movq(name_arg, rsp); |
| 983 __ push(scratch2); // Restore return address. | 983 __ push(scratch2); // Restore return address. |
| 984 | 984 |
| 985 // 3 elements array for v8::Agruments::values_ and handler for name. | 985 // 3 elements array for v8::Arguments::values_ and handler for name. |
| 986 const int kStackSpace = 4; | 986 const int kStackSpace = 4; |
| 987 | 987 |
| 988 // Allocate v8::AccessorInfo in non-GCed stack space. | 988 // Allocate v8::AccessorInfo in non-GCed stack space. |
| 989 const int kArgStackSpace = 1; | 989 const int kArgStackSpace = 1; |
| 990 | 990 |
| 991 __ PrepareCallApiFunction(kArgStackSpace); | 991 __ PrepareCallApiFunction(kArgStackSpace); |
| 992 __ lea(rax, Operand(name_arg, 3 * kPointerSize)); | 992 __ lea(rax, Operand(name_arg, 3 * kPointerSize)); |
| 993 | 993 |
| 994 // v8::AccessorInfo::args_. | 994 // v8::AccessorInfo::args_. |
| 995 __ movq(StackSpaceOperand(0), rax); | 995 __ movq(StackSpaceOperand(0), rax); |
| (...skipping 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3586 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); | 3586 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); |
| 3587 __ jmp(ic_miss, RelocInfo::CODE_TARGET); | 3587 __ jmp(ic_miss, RelocInfo::CODE_TARGET); |
| 3588 } | 3588 } |
| 3589 | 3589 |
| 3590 | 3590 |
| 3591 #undef __ | 3591 #undef __ |
| 3592 | 3592 |
| 3593 } } // namespace v8::internal | 3593 } } // namespace v8::internal |
| 3594 | 3594 |
| 3595 #endif // V8_TARGET_ARCH_X64 | 3595 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |