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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 // etc. Saves context (esi). If space was reserved for return value then | 761 // etc. Saves context (esi). If space was reserved for return value then |
762 // stores the pointer to the reserved slot into esi. | 762 // stores the pointer to the reserved slot into esi. |
763 void PrepareCallApiFunction(int argc); | 763 void PrepareCallApiFunction(int argc); |
764 | 764 |
765 // Calls an API function. Allocates HandleScope, extracts returned value | 765 // Calls an API function. Allocates HandleScope, extracts returned value |
766 // from handle and propagates exceptions. Clobbers ebx, edi and | 766 // from handle and propagates exceptions. Clobbers ebx, edi and |
767 // caller-save registers. Restores context. On return removes | 767 // caller-save registers. Restores context. On return removes |
768 // stack_space * kPointerSize (GCed). | 768 // stack_space * kPointerSize (GCed). |
769 void CallApiFunctionAndReturn(Register function_address, | 769 void CallApiFunctionAndReturn(Register function_address, |
770 ExternalReference thunk_ref, | 770 ExternalReference thunk_ref, |
771 Operand thunk_last_arg, | 771 Operand thunk_last_arg, int stack_space, |
772 int stack_space, | 772 Operand* stack_space_operand, |
773 Operand return_value_operand, | 773 Operand return_value_operand, |
774 Operand* context_restore_operand); | 774 Operand* context_restore_operand); |
775 | 775 |
776 // Jump to a runtime routine. | 776 // Jump to a runtime routine. |
777 void JumpToExternalReference(const ExternalReference& ext); | 777 void JumpToExternalReference(const ExternalReference& ext); |
778 | 778 |
779 // --------------------------------------------------------------------------- | 779 // --------------------------------------------------------------------------- |
780 // Utilities | 780 // Utilities |
781 | 781 |
782 void Ret(); | 782 void Ret(); |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 } \ | 1073 } \ |
1074 masm-> | 1074 masm-> |
1075 #else | 1075 #else |
1076 #define ACCESS_MASM(masm) masm-> | 1076 #define ACCESS_MASM(masm) masm-> |
1077 #endif | 1077 #endif |
1078 | 1078 |
1079 | 1079 |
1080 } } // namespace v8::internal | 1080 } } // namespace v8::internal |
1081 | 1081 |
1082 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1082 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |