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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 | 658 |
659 // Save a pointer to where we pushed the arguments. This will be | 659 // Save a pointer to where we pushed the arguments. This will be |
660 // passed as the const PropertyAccessorInfo& to the C++ callback. | 660 // passed as the const PropertyAccessorInfo& to the C++ callback. |
661 __ push(esp); | 661 __ push(esp); |
662 | 662 |
663 __ push(name()); // name | 663 __ push(name()); // name |
664 | 664 |
665 __ push(scratch3()); // Restore return address. | 665 __ push(scratch3()); // Restore return address. |
666 | 666 |
667 // Abi for CallApiGetter | 667 // Abi for CallApiGetter |
668 Register getter_address = edx; | 668 Register getter_address = ApiGetterDescriptor::function_address(); |
669 Address function_address = v8::ToCData<Address>(callback->getter()); | 669 Address function_address = v8::ToCData<Address>(callback->getter()); |
670 __ mov(getter_address, Immediate(function_address)); | 670 __ mov(getter_address, Immediate(function_address)); |
671 | 671 |
672 CallApiGetterStub stub(isolate()); | 672 CallApiGetterStub stub(isolate()); |
673 __ TailCallStub(&stub); | 673 __ TailCallStub(&stub); |
674 } | 674 } |
675 | 675 |
676 | 676 |
677 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 677 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
678 // Return the constant value. | 678 // Return the constant value. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 // Return the generated code. | 843 // Return the generated code. |
844 return GetCode(kind(), Code::NORMAL, name); | 844 return GetCode(kind(), Code::NORMAL, name); |
845 } | 845 } |
846 | 846 |
847 | 847 |
848 #undef __ | 848 #undef __ |
849 } | 849 } |
850 } // namespace v8::internal | 850 } // namespace v8::internal |
851 | 851 |
852 #endif // V8_TARGET_ARCH_IA32 | 852 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |