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