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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 // space for return value if needed (assumes the return value is a handle). | 764 // space for return value if needed (assumes the return value is a handle). |
765 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) | 765 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) |
766 // etc. Saves context (esi). If space was reserved for return value then | 766 // etc. Saves context (esi). If space was reserved for return value then |
767 // stores the pointer to the reserved slot into esi. | 767 // stores the pointer to the reserved slot into esi. |
768 void PrepareCallApiFunction(int argc); | 768 void PrepareCallApiFunction(int argc); |
769 | 769 |
770 // Calls an API function. Allocates HandleScope, extracts returned value | 770 // Calls an API function. Allocates HandleScope, extracts returned value |
771 // from handle and propagates exceptions. Clobbers ebx, edi and | 771 // from handle and propagates exceptions. Clobbers ebx, edi and |
772 // caller-save registers. Restores context. On return removes | 772 // caller-save registers. Restores context. On return removes |
773 // stack_space * kPointerSize (GCed). | 773 // stack_space * kPointerSize (GCed). |
774 void CallApiFunctionAndReturn(Address function_address, int stack_space); | 774 void CallApiFunctionAndReturn(Address function_address, |
| 775 int stack_space, |
| 776 int return_value_offset); |
775 | 777 |
776 // Jump to a runtime routine. | 778 // Jump to a runtime routine. |
777 void JumpToExternalReference(const ExternalReference& ext); | 779 void JumpToExternalReference(const ExternalReference& ext); |
778 | 780 |
779 // --------------------------------------------------------------------------- | 781 // --------------------------------------------------------------------------- |
780 // Utilities | 782 // Utilities |
781 | 783 |
782 void Ret(); | 784 void Ret(); |
783 | 785 |
784 // Return and drop arguments from stack, where the number of arguments | 786 // Return and drop arguments from stack, where the number of arguments |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 } \ | 1029 } \ |
1028 masm-> | 1030 masm-> |
1029 #else | 1031 #else |
1030 #define ACCESS_MASM(masm) masm-> | 1032 #define ACCESS_MASM(masm) masm-> |
1031 #endif | 1033 #endif |
1032 | 1034 |
1033 | 1035 |
1034 } } // namespace v8::internal | 1036 } } // namespace v8::internal |
1035 | 1037 |
1036 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1038 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |