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 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 // etc. Saves context (esi). If space was reserved for return value then | 797 // etc. Saves context (esi). If space was reserved for return value then |
798 // stores the pointer to the reserved slot into esi. | 798 // stores the pointer to the reserved slot into esi. |
799 void PrepareCallApiFunction(int argc); | 799 void PrepareCallApiFunction(int argc); |
800 | 800 |
801 // Calls an API function. Allocates HandleScope, extracts returned value | 801 // Calls an API function. Allocates HandleScope, extracts returned value |
802 // from handle and propagates exceptions. Clobbers ebx, edi and | 802 // from handle and propagates exceptions. Clobbers ebx, edi and |
803 // caller-save registers. Restores context. On return removes | 803 // caller-save registers. Restores context. On return removes |
804 // stack_space * kPointerSize (GCed). | 804 // stack_space * kPointerSize (GCed). |
805 void CallApiFunctionAndReturn(Register function_address, | 805 void CallApiFunctionAndReturn(Register function_address, |
806 ExternalReference thunk_ref, | 806 ExternalReference thunk_ref, |
807 Operand thunk_last_arg, | 807 Operand thunk_last_arg, int stack_space, |
808 int stack_space, | 808 Operand* stack_space_operand, |
809 Operand return_value_operand, | 809 Operand return_value_operand, |
810 Operand* context_restore_operand); | 810 Operand* context_restore_operand); |
811 | 811 |
812 // Jump to a runtime routine. | 812 // Jump to a runtime routine. |
813 void JumpToExternalReference(const ExternalReference& ext); | 813 void JumpToExternalReference(const ExternalReference& ext); |
814 | 814 |
815 // --------------------------------------------------------------------------- | 815 // --------------------------------------------------------------------------- |
816 // Utilities | 816 // Utilities |
817 | 817 |
818 void Ret(); | 818 void Ret(); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 } \ | 1111 } \ |
1112 masm-> | 1112 masm-> |
1113 #else | 1113 #else |
1114 #define ACCESS_MASM(masm) masm-> | 1114 #define ACCESS_MASM(masm) masm-> |
1115 #endif | 1115 #endif |
1116 | 1116 |
1117 | 1117 |
1118 } } // namespace v8::internal | 1118 } } // namespace v8::internal |
1119 | 1119 |
1120 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1120 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |