| 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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 // space for return value if needed (assumes the return value is a handle). | 808 // space for return value if needed (assumes the return value is a handle). |
| 809 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) | 809 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) |
| 810 // etc. Saves context (esi). If space was reserved for return value then | 810 // etc. Saves context (esi). If space was reserved for return value then |
| 811 // stores the pointer to the reserved slot into esi. | 811 // stores the pointer to the reserved slot into esi. |
| 812 void PrepareCallApiFunction(int argc); | 812 void PrepareCallApiFunction(int argc); |
| 813 | 813 |
| 814 // Calls an API function. Allocates HandleScope, extracts returned value | 814 // Calls an API function. Allocates HandleScope, extracts returned value |
| 815 // from handle and propagates exceptions. Clobbers ebx, edi and | 815 // from handle and propagates exceptions. Clobbers ebx, edi and |
| 816 // caller-save registers. Restores context. On return removes | 816 // caller-save registers. Restores context. On return removes |
| 817 // stack_space * kPointerSize (GCed). | 817 // stack_space * kPointerSize (GCed). |
| 818 void CallApiFunctionAndReturn(Address function_address, | 818 void CallApiFunctionAndReturn(Register function_address, |
| 819 Address thunk_address, | 819 Address thunk_address, |
| 820 Operand thunk_last_arg, | 820 Operand thunk_last_arg, |
| 821 int stack_space, | 821 int stack_space, |
| 822 Operand return_value_operand, | 822 Operand return_value_operand, |
| 823 Operand* context_restore_operand); | 823 Operand* context_restore_operand); |
| 824 | 824 |
| 825 // Jump to a runtime routine. | 825 // Jump to a runtime routine. |
| 826 void JumpToExternalReference(const ExternalReference& ext); | 826 void JumpToExternalReference(const ExternalReference& ext); |
| 827 | 827 |
| 828 // --------------------------------------------------------------------------- | 828 // --------------------------------------------------------------------------- |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 } \ | 1114 } \ |
| 1115 masm-> | 1115 masm-> |
| 1116 #else | 1116 #else |
| 1117 #define ACCESS_MASM(masm) masm-> | 1117 #define ACCESS_MASM(masm) masm-> |
| 1118 #endif | 1118 #endif |
| 1119 | 1119 |
| 1120 | 1120 |
| 1121 } } // namespace v8::internal | 1121 } } // namespace v8::internal |
| 1122 | 1122 |
| 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |