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

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

Issue 146213004: A64: Synchronize with r16849. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/lithium-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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 bool generating_stub() { return generating_stub_; } 890 bool generating_stub() { return generating_stub_; }
890 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 891 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
891 bool allow_stub_calls() { return allow_stub_calls_; } 892 bool allow_stub_calls() { return allow_stub_calls_; }
892 void set_has_frame(bool value) { has_frame_ = value; } 893 void set_has_frame(bool value) { has_frame_ = value; }
893 bool has_frame() { return has_frame_; } 894 bool has_frame() { return has_frame_; }
894 inline bool AllowThisStubCall(CodeStub* stub); 895 inline bool AllowThisStubCall(CodeStub* stub);
895 896
896 // --------------------------------------------------------------------------- 897 // ---------------------------------------------------------------------------
897 // String utilities. 898 // String utilities.
898 899
900 // Generate code to do a lookup in the number string cache. If the number in
901 // the register object is found in the cache the generated code falls through
902 // with the result in the result register. The object and the result register
903 // can be the same. If the number is not found in the cache the code jumps to
904 // the label not_found with only the content of register object unchanged.
905 void LookupNumberStringCache(Register object,
906 Register result,
907 Register scratch1,
908 Register scratch2,
909 Label* not_found);
910
899 // Check whether the instance type represents a flat ASCII string. Jump to the 911 // Check whether the instance type represents a flat ASCII string. Jump to the
900 // label if not. If the instance type can be scratched specify same register 912 // label if not. If the instance type can be scratched specify same register
901 // for both instance type and scratch. 913 // for both instance type and scratch.
902 void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type, 914 void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type,
903 Register scratch, 915 Register scratch,
904 Label* on_not_flat_ascii_string); 916 Label* on_not_flat_ascii_string);
905 917
906 // Checks if both objects are sequential ASCII strings, and jumps to label 918 // Checks if both objects are sequential ASCII strings, and jumps to label
907 // if either is not. 919 // if either is not.
908 void JumpIfNotBothSequentialAsciiStrings(Register object1, 920 void JumpIfNotBothSequentialAsciiStrings(Register object1,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 Label* done, 968 Label* done,
957 bool* definitely_mismatches, 969 bool* definitely_mismatches,
958 InvokeFlag flag, 970 InvokeFlag flag,
959 Label::Distance done_distance, 971 Label::Distance done_distance,
960 const CallWrapper& call_wrapper = NullCallWrapper(), 972 const CallWrapper& call_wrapper = NullCallWrapper(),
961 CallKind call_kind = CALL_AS_METHOD); 973 CallKind call_kind = CALL_AS_METHOD);
962 974
963 void EnterExitFramePrologue(); 975 void EnterExitFramePrologue();
964 void EnterExitFrameEpilogue(int argc, bool save_doubles); 976 void EnterExitFrameEpilogue(int argc, bool save_doubles);
965 977
966 void LeaveExitFrameEpilogue(); 978 void LeaveExitFrameEpilogue(bool restore_context);
967 979
968 // Allocation support helpers. 980 // Allocation support helpers.
969 void LoadAllocationTopHelper(Register result, 981 void LoadAllocationTopHelper(Register result,
970 Register scratch, 982 Register scratch,
971 AllocationFlags flags); 983 AllocationFlags flags);
972 984
973 void UpdateAllocationTopHelper(Register result_end, 985 void UpdateAllocationTopHelper(Register result_end,
974 Register scratch, 986 Register scratch,
975 AllocationFlags flags); 987 AllocationFlags flags);
976 988
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 } \ 1092 } \
1081 masm-> 1093 masm->
1082 #else 1094 #else
1083 #define ACCESS_MASM(masm) masm-> 1095 #define ACCESS_MASM(masm) masm->
1084 #endif 1096 #endif
1085 1097
1086 1098
1087 } } // namespace v8::internal 1099 } } // namespace v8::internal
1088 1100
1089 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1101 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698