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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) | 777 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) |
778 // etc. Saves context (esi). If space was reserved for return value then | 778 // etc. Saves context (esi). If space was reserved for return value then |
779 // stores the pointer to the reserved slot into esi. | 779 // stores the pointer to the reserved slot into esi. |
780 void PrepareCallApiFunction(int argc, bool returns_handle); | 780 void PrepareCallApiFunction(int argc, bool returns_handle); |
781 | 781 |
782 // Calls an API function. Allocates HandleScope, extracts returned value | 782 // Calls an API function. Allocates HandleScope, extracts returned value |
783 // from handle and propagates exceptions. Clobbers ebx, edi and | 783 // from handle and propagates exceptions. Clobbers ebx, edi and |
784 // caller-save registers. Restores context. On return removes | 784 // caller-save registers. Restores context. On return removes |
785 // stack_space * kPointerSize (GCed). | 785 // stack_space * kPointerSize (GCed). |
786 void CallApiFunctionAndReturn(Address function_address, | 786 void CallApiFunctionAndReturn(Address function_address, |
| 787 Address thunk_address, |
| 788 Operand thunk_last_arg, |
787 int stack_space, | 789 int stack_space, |
788 bool returns_handle, | 790 bool returns_handle, |
789 int return_value_offset_from_ebp); | 791 int return_value_offset_from_ebp); |
790 | 792 |
791 // Jump to a runtime routine. | 793 // Jump to a runtime routine. |
792 void JumpToExternalReference(const ExternalReference& ext); | 794 void JumpToExternalReference(const ExternalReference& ext); |
793 | 795 |
794 // --------------------------------------------------------------------------- | 796 // --------------------------------------------------------------------------- |
795 // Utilities | 797 // Utilities |
796 | 798 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 } \ | 1044 } \ |
1043 masm-> | 1045 masm-> |
1044 #else | 1046 #else |
1045 #define ACCESS_MASM(masm) masm-> | 1047 #define ACCESS_MASM(masm) masm-> |
1046 #endif | 1048 #endif |
1047 | 1049 |
1048 | 1050 |
1049 } } // namespace v8::internal | 1051 } } // namespace v8::internal |
1050 | 1052 |
1051 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1053 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |