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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 | 1245 |
1246 // v8::PropertyAccessorInfo::args_. | 1246 // v8::PropertyAccessorInfo::args_. |
1247 __ movp(StackSpaceOperand(0), rax); | 1247 __ movp(StackSpaceOperand(0), rax); |
1248 | 1248 |
1249 // The context register (rsi) has been saved in PrepareCallApiFunction and | 1249 // The context register (rsi) has been saved in PrepareCallApiFunction and |
1250 // could be used to pass arguments. | 1250 // could be used to pass arguments. |
1251 __ lea(accessor_info_arg, StackSpaceOperand(0)); | 1251 __ lea(accessor_info_arg, StackSpaceOperand(0)); |
1252 | 1252 |
1253 Address thunk_address = FUNCTION_ADDR(&InvokeAccessorGetterCallback); | 1253 Address thunk_address = FUNCTION_ADDR(&InvokeAccessorGetterCallback); |
1254 | 1254 |
1255 Register api_function_address = rdx; | 1255 Register api_function_address = r8; |
| 1256 // It's okay if api_function_address == getter_arg |
| 1257 // but not accessor_info_arg or name_arg |
| 1258 ASSERT(!api_function_address.is(accessor_info_arg) && |
| 1259 !api_function_address.is(name_arg)); |
| 1260 |
1256 __ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE); | 1261 __ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE); |
1257 | 1262 |
1258 // The name handler is counted as an argument. | 1263 // The name handler is counted as an argument. |
1259 StackArgumentsAccessor args(rbp, PropertyCallbackArguments::kArgsLength); | 1264 StackArgumentsAccessor args(rbp, PropertyCallbackArguments::kArgsLength); |
1260 Operand return_value_operand = args.GetArgumentOperand( | 1265 Operand return_value_operand = args.GetArgumentOperand( |
1261 PropertyCallbackArguments::kArgsLength - 1 - | 1266 PropertyCallbackArguments::kArgsLength - 1 - |
1262 PropertyCallbackArguments::kReturnValueOffset); | 1267 PropertyCallbackArguments::kReturnValueOffset); |
1263 __ CallApiFunctionAndReturn(api_function_address, | 1268 __ CallApiFunctionAndReturn(api_function_address, |
1264 thunk_address, | 1269 thunk_address, |
1265 getter_arg, | 1270 getter_arg, |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2017 // ----------------------------------- | 2022 // ----------------------------------- |
2018 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 2023 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
2019 } | 2024 } |
2020 | 2025 |
2021 | 2026 |
2022 #undef __ | 2027 #undef __ |
2023 | 2028 |
2024 } } // namespace v8::internal | 2029 } } // namespace v8::internal |
2025 | 2030 |
2026 #endif // V8_TARGET_ARCH_X64 | 2031 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |