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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 void EnterApiExitFrame(int argc); | 234 void EnterApiExitFrame(int argc); |
235 | 235 |
236 // Leave the current exit frame. Expects the return value in | 236 // Leave the current exit frame. Expects the return value in |
237 // register eax:edx (untouched) and the pointer to the first | 237 // register eax:edx (untouched) and the pointer to the first |
238 // argument in register esi. | 238 // argument in register esi. |
239 void LeaveExitFrame(bool save_doubles); | 239 void LeaveExitFrame(bool save_doubles); |
240 | 240 |
241 // Leave the current exit frame. Expects the return value in | 241 // Leave the current exit frame. Expects the return value in |
242 // register eax (untouched). | 242 // register eax (untouched). |
243 void LeaveApiExitFrame(bool restore_context); | 243 void LeaveApiExitFrame(); |
244 | 244 |
245 // Find the function context up the context chain. | 245 // Find the function context up the context chain. |
246 void LoadContext(Register dst, int context_chain_length); | 246 void LoadContext(Register dst, int context_chain_length); |
247 | 247 |
248 // Conditionally load the cached Array transitioned map of type | 248 // Conditionally load the cached Array transitioned map of type |
249 // transitioned_kind from the native context if the map in register | 249 // transitioned_kind from the native context if the map in register |
250 // map_in_out is the cached Array map in the native context of | 250 // map_in_out is the cached Array map in the native context of |
251 // expected_kind. | 251 // expected_kind. |
252 void LoadTransitionedArrayMapConditional( | 252 void LoadTransitionedArrayMapConditional( |
253 ElementsKind expected_kind, | 253 ElementsKind expected_kind, |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 void PrepareCallApiFunction(int argc); | 806 void PrepareCallApiFunction(int argc); |
807 | 807 |
808 // Calls an API function. Allocates HandleScope, extracts returned value | 808 // Calls an API function. Allocates HandleScope, extracts returned value |
809 // from handle and propagates exceptions. Clobbers ebx, edi and | 809 // from handle and propagates exceptions. Clobbers ebx, edi and |
810 // caller-save registers. Restores context. On return removes | 810 // caller-save registers. Restores context. On return removes |
811 // stack_space * kPointerSize (GCed). | 811 // stack_space * kPointerSize (GCed). |
812 void CallApiFunctionAndReturn(Address function_address, | 812 void CallApiFunctionAndReturn(Address function_address, |
813 Address thunk_address, | 813 Address thunk_address, |
814 Operand thunk_last_arg, | 814 Operand thunk_last_arg, |
815 int stack_space, | 815 int stack_space, |
816 Operand return_value_operand, | 816 int return_value_offset_from_ebp); |
817 Operand* context_restore_operand); | |
818 | 817 |
819 // Jump to a runtime routine. | 818 // Jump to a runtime routine. |
820 void JumpToExternalReference(const ExternalReference& ext); | 819 void JumpToExternalReference(const ExternalReference& ext); |
821 | 820 |
822 // --------------------------------------------------------------------------- | 821 // --------------------------------------------------------------------------- |
823 // Utilities | 822 // Utilities |
824 | 823 |
825 void Ret(); | 824 void Ret(); |
826 | 825 |
827 // Return and drop arguments from stack, where the number of arguments | 826 // Return and drop arguments from stack, where the number of arguments |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 Label* done, | 956 Label* done, |
958 bool* definitely_mismatches, | 957 bool* definitely_mismatches, |
959 InvokeFlag flag, | 958 InvokeFlag flag, |
960 Label::Distance done_distance, | 959 Label::Distance done_distance, |
961 const CallWrapper& call_wrapper = NullCallWrapper(), | 960 const CallWrapper& call_wrapper = NullCallWrapper(), |
962 CallKind call_kind = CALL_AS_METHOD); | 961 CallKind call_kind = CALL_AS_METHOD); |
963 | 962 |
964 void EnterExitFramePrologue(); | 963 void EnterExitFramePrologue(); |
965 void EnterExitFrameEpilogue(int argc, bool save_doubles); | 964 void EnterExitFrameEpilogue(int argc, bool save_doubles); |
966 | 965 |
967 void LeaveExitFrameEpilogue(bool restore_context); | 966 void LeaveExitFrameEpilogue(); |
968 | 967 |
969 // Allocation support helpers. | 968 // Allocation support helpers. |
970 void LoadAllocationTopHelper(Register result, | 969 void LoadAllocationTopHelper(Register result, |
971 Register scratch, | 970 Register scratch, |
972 AllocationFlags flags); | 971 AllocationFlags flags); |
973 | 972 |
974 void UpdateAllocationTopHelper(Register result_end, | 973 void UpdateAllocationTopHelper(Register result_end, |
975 Register scratch, | 974 Register scratch, |
976 AllocationFlags flags); | 975 AllocationFlags flags); |
977 | 976 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 } \ | 1080 } \ |
1082 masm-> | 1081 masm-> |
1083 #else | 1082 #else |
1084 #define ACCESS_MASM(masm) masm-> | 1083 #define ACCESS_MASM(masm) masm-> |
1085 #endif | 1084 #endif |
1086 | 1085 |
1087 | 1086 |
1088 } } // namespace v8::internal | 1087 } } // namespace v8::internal |
1089 | 1088 |
1090 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1089 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |