Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 23903053: reland 16744: add context save for GenerateFastApiCall (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(); 243 void LeaveApiExitFrame(bool restore_context);
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
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 int return_value_offset_from_ebp); 816 Operand return_value_operand,
817 Operand* context_restore_operand);
817 818
818 // Jump to a runtime routine. 819 // Jump to a runtime routine.
819 void JumpToExternalReference(const ExternalReference& ext); 820 void JumpToExternalReference(const ExternalReference& ext);
820 821
821 // --------------------------------------------------------------------------- 822 // ---------------------------------------------------------------------------
822 // Utilities 823 // Utilities
823 824
824 void Ret(); 825 void Ret();
825 826
826 // Return and drop arguments from stack, where the number of arguments 827 // Return and drop arguments from stack, where the number of arguments
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 Label* done, 957 Label* done,
957 bool* definitely_mismatches, 958 bool* definitely_mismatches,
958 InvokeFlag flag, 959 InvokeFlag flag,
959 Label::Distance done_distance, 960 Label::Distance done_distance,
960 const CallWrapper& call_wrapper = NullCallWrapper(), 961 const CallWrapper& call_wrapper = NullCallWrapper(),
961 CallKind call_kind = CALL_AS_METHOD); 962 CallKind call_kind = CALL_AS_METHOD);
962 963
963 void EnterExitFramePrologue(); 964 void EnterExitFramePrologue();
964 void EnterExitFrameEpilogue(int argc, bool save_doubles); 965 void EnterExitFrameEpilogue(int argc, bool save_doubles);
965 966
966 void LeaveExitFrameEpilogue(); 967 void LeaveExitFrameEpilogue(bool restore_context);
967 968
968 // Allocation support helpers. 969 // Allocation support helpers.
969 void LoadAllocationTopHelper(Register result, 970 void LoadAllocationTopHelper(Register result,
970 Register scratch, 971 Register scratch,
971 AllocationFlags flags); 972 AllocationFlags flags);
972 973
973 void UpdateAllocationTopHelper(Register result_end, 974 void UpdateAllocationTopHelper(Register result_end,
974 Register scratch, 975 Register scratch,
975 AllocationFlags flags); 976 AllocationFlags flags);
976 977
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 } \ 1081 } \
1081 masm-> 1082 masm->
1082 #else 1083 #else
1083 #define ACCESS_MASM(masm) masm-> 1084 #define ACCESS_MASM(masm) masm->
1084 #endif 1085 #endif
1085 1086
1086 1087
1087 } } // namespace v8::internal 1088 } } // namespace v8::internal
1088 1089
1089 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1090 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698