| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/ic/call-optimization.h" | 9 #include "src/ic/call-optimization.h" |
| 10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 __ Push(kScratchRegister); // return value default | 653 __ Push(kScratchRegister); // return value default |
| 654 __ PushAddress(ExternalReference::isolate_address(isolate())); | 654 __ PushAddress(ExternalReference::isolate_address(isolate())); |
| 655 __ Push(reg); // holder | 655 __ Push(reg); // holder |
| 656 __ Push(name()); // name | 656 __ Push(name()); // name |
| 657 // Save a pointer to where we pushed the arguments pointer. This will be | 657 // Save a pointer to where we pushed the arguments pointer. This will be |
| 658 // passed as the const PropertyAccessorInfo& to the C++ callback. | 658 // passed as the const PropertyAccessorInfo& to the C++ callback. |
| 659 | 659 |
| 660 __ PushReturnAddressFrom(scratch4()); | 660 __ PushReturnAddressFrom(scratch4()); |
| 661 | 661 |
| 662 // Abi for CallApiGetter | 662 // Abi for CallApiGetter |
| 663 Register api_function_address = r8; | 663 Register api_function_address = ApiGetterDescriptor::function_address(); |
| 664 Address getter_address = v8::ToCData<Address>(callback->getter()); | 664 Address getter_address = v8::ToCData<Address>(callback->getter()); |
| 665 __ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE); | 665 __ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE); |
| 666 | 666 |
| 667 CallApiGetterStub stub(isolate()); | 667 CallApiGetterStub stub(isolate()); |
| 668 __ TailCallStub(&stub); | 668 __ TailCallStub(&stub); |
| 669 } | 669 } |
| 670 | 670 |
| 671 | 671 |
| 672 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 672 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 673 // Return the constant value. | 673 // Return the constant value. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 // Return the generated code. | 826 // Return the generated code. |
| 827 return GetCode(kind(), Code::NORMAL, name); | 827 return GetCode(kind(), Code::NORMAL, name); |
| 828 } | 828 } |
| 829 | 829 |
| 830 | 830 |
| 831 #undef __ | 831 #undef __ |
| 832 } | 832 } |
| 833 } // namespace v8::internal | 833 } // namespace v8::internal |
| 834 | 834 |
| 835 #endif // V8_TARGET_ARCH_X64 | 835 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |