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

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

Issue 24205004: Rollback trunk to 3.21.16.2 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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/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(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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Store the function for the given builtin in the target register. 359 // Store the function for the given builtin in the target register.
360 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 360 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
361 361
362 // Store the code object for the given builtin in the target register. 362 // Store the code object for the given builtin in the target register.
363 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 363 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
364 364
365 // Expression support 365 // Expression support
366 void Set(Register dst, const Immediate& x); 366 void Set(Register dst, const Immediate& x);
367 void Set(const Operand& dst, const Immediate& x); 367 void Set(const Operand& dst, const Immediate& x);
368 368
369 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
370 // hinders register renaming and makes dependence chains longer. So we use
371 // xorps to clear the dst register before cvtsi2sd to solve this issue.
372 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
373 void Cvtsi2sd(XMMRegister dst, const Operand& src);
374
375 // Support for constant splitting. 369 // Support for constant splitting.
376 bool IsUnsafeImmediate(const Immediate& x); 370 bool IsUnsafeImmediate(const Immediate& x);
377 void SafeSet(Register dst, const Immediate& x); 371 void SafeSet(Register dst, const Immediate& x);
378 void SafePush(const Immediate& x); 372 void SafePush(const Immediate& x);
379 373
380 // Compare object type for heap object. 374 // Compare object type for heap object.
381 // Incoming register is heap_object and outgoing register is map. 375 // Incoming register is heap_object and outgoing register is map.
382 void CmpObjectType(Register heap_object, InstanceType type, Register map); 376 void CmpObjectType(Register heap_object, InstanceType type, Register map);
383 377
384 // Compare instance type for map. 378 // Compare instance type for map.
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 void PrepareCallApiFunction(int argc); 800 void PrepareCallApiFunction(int argc);
807 801
808 // Calls an API function. Allocates HandleScope, extracts returned value 802 // Calls an API function. Allocates HandleScope, extracts returned value
809 // from handle and propagates exceptions. Clobbers ebx, edi and 803 // from handle and propagates exceptions. Clobbers ebx, edi and
810 // caller-save registers. Restores context. On return removes 804 // caller-save registers. Restores context. On return removes
811 // stack_space * kPointerSize (GCed). 805 // stack_space * kPointerSize (GCed).
812 void CallApiFunctionAndReturn(Address function_address, 806 void CallApiFunctionAndReturn(Address function_address,
813 Address thunk_address, 807 Address thunk_address,
814 Operand thunk_last_arg, 808 Operand thunk_last_arg,
815 int stack_space, 809 int stack_space,
816 Operand return_value_operand, 810 int return_value_offset_from_ebp);
817 Operand* context_restore_operand);
818 811
819 // Jump to a runtime routine. 812 // Jump to a runtime routine.
820 void JumpToExternalReference(const ExternalReference& ext); 813 void JumpToExternalReference(const ExternalReference& ext);
821 814
822 // --------------------------------------------------------------------------- 815 // ---------------------------------------------------------------------------
823 // Utilities 816 // Utilities
824 817
825 void Ret(); 818 void Ret();
826 819
827 // Return and drop arguments from stack, where the number of arguments 820 // Return and drop arguments from stack, where the number of arguments
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 Label* done, 950 Label* done,
958 bool* definitely_mismatches, 951 bool* definitely_mismatches,
959 InvokeFlag flag, 952 InvokeFlag flag,
960 Label::Distance done_distance, 953 Label::Distance done_distance,
961 const CallWrapper& call_wrapper = NullCallWrapper(), 954 const CallWrapper& call_wrapper = NullCallWrapper(),
962 CallKind call_kind = CALL_AS_METHOD); 955 CallKind call_kind = CALL_AS_METHOD);
963 956
964 void EnterExitFramePrologue(); 957 void EnterExitFramePrologue();
965 void EnterExitFrameEpilogue(int argc, bool save_doubles); 958 void EnterExitFrameEpilogue(int argc, bool save_doubles);
966 959
967 void LeaveExitFrameEpilogue(bool restore_context); 960 void LeaveExitFrameEpilogue();
968 961
969 // Allocation support helpers. 962 // Allocation support helpers.
970 void LoadAllocationTopHelper(Register result, 963 void LoadAllocationTopHelper(Register result,
971 Register scratch, 964 Register scratch,
972 AllocationFlags flags); 965 AllocationFlags flags);
973 966
974 void UpdateAllocationTopHelper(Register result_end, 967 void UpdateAllocationTopHelper(Register result_end,
975 Register scratch, 968 Register scratch,
976 AllocationFlags flags); 969 AllocationFlags flags);
977 970
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 } \ 1074 } \
1082 masm-> 1075 masm->
1083 #else 1076 #else
1084 #define ACCESS_MASM(masm) masm-> 1077 #define ACCESS_MASM(masm) masm->
1085 #endif 1078 #endif
1086 1079
1087 1080
1088 } } // namespace v8::internal 1081 } } // namespace v8::internal
1089 1082
1090 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1083 #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