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

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

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 795
796 // --------------------------------------------------------------------------- 796 // ---------------------------------------------------------------------------
797 // Macro instructions. 797 // Macro instructions.
798 798
799 // Load/store with specific representation. 799 // Load/store with specific representation.
800 void Load(Register dst, const Operand& src, Representation r); 800 void Load(Register dst, const Operand& src, Representation r);
801 void Store(const Operand& dst, Register src, Representation r); 801 void Store(const Operand& dst, Register src, Representation r);
802 802
803 // Load a register with a long value as efficiently as possible. 803 // Load a register with a long value as efficiently as possible.
804 void Set(Register dst, int64_t x); 804 void Set(Register dst, int64_t x);
805 void Set(const Operand& dst, intptr_t x); 805 void Set(const Operand& dst, int64_t x);
806 806
807 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 807 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
808 // hinders register renaming and makes dependence chains longer. So we use 808 // hinders register renaming and makes dependence chains longer. So we use
809 // xorps to clear the dst register before cvtsi2sd to solve this issue. 809 // xorps to clear the dst register before cvtsi2sd to solve this issue.
810 void Cvtlsi2sd(XMMRegister dst, Register src); 810 void Cvtlsi2sd(XMMRegister dst, Register src);
811 void Cvtlsi2sd(XMMRegister dst, const Operand& src); 811 void Cvtlsi2sd(XMMRegister dst, const Operand& src);
812 812
813 // Move if the registers are not identical. 813 // Move if the registers are not identical.
814 void Move(Register target, Register source); 814 void Move(Register target, Register source);
815 815
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 AllowDeferredHandleDereference using_raw_address; 858 AllowDeferredHandleDereference using_raw_address;
859 ASSERT(!RelocInfo::IsNone(rmode)); 859 ASSERT(!RelocInfo::IsNone(rmode));
860 ASSERT(value->IsHeapObject()); 860 ASSERT(value->IsHeapObject());
861 ASSERT(!isolate()->heap()->InNewSpace(*value)); 861 ASSERT(!isolate()->heap()->InNewSpace(*value));
862 movp(dst, value.location(), rmode); 862 movp(dst, value.location(), rmode);
863 } 863 }
864 864
865 // Control Flow 865 // Control Flow
866 void Jump(Address destination, RelocInfo::Mode rmode); 866 void Jump(Address destination, RelocInfo::Mode rmode);
867 void Jump(ExternalReference ext); 867 void Jump(ExternalReference ext);
868 void Jump(const Operand& op);
869 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 868 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
870 869
871 void Call(Address destination, RelocInfo::Mode rmode); 870 void Call(Address destination, RelocInfo::Mode rmode);
872 void Call(ExternalReference ext); 871 void Call(ExternalReference ext);
873 void Call(const Operand& op);
874 void Call(Handle<Code> code_object, 872 void Call(Handle<Code> code_object,
875 RelocInfo::Mode rmode, 873 RelocInfo::Mode rmode,
876 TypeFeedbackId ast_id = TypeFeedbackId::None()); 874 TypeFeedbackId ast_id = TypeFeedbackId::None());
877 875
878 // The size of the code generated for different call instructions. 876 // The size of the code generated for different call instructions.
879 int CallSize(Address destination) { 877 int CallSize(Address destination) {
880 return kCallSequenceLength; 878 return kCallSequenceLength;
881 } 879 }
882 int CallSize(ExternalReference ext); 880 int CallSize(ExternalReference ext);
883 int CallSize(Handle<Code> code_object) { 881 int CallSize(Handle<Code> code_object) {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 // transitioned_kind from the native context if the map in register 1225 // transitioned_kind from the native context if the map in register
1228 // map_in_out is the cached Array map in the native context of 1226 // map_in_out is the cached Array map in the native context of
1229 // expected_kind. 1227 // expected_kind.
1230 void LoadTransitionedArrayMapConditional( 1228 void LoadTransitionedArrayMapConditional(
1231 ElementsKind expected_kind, 1229 ElementsKind expected_kind,
1232 ElementsKind transitioned_kind, 1230 ElementsKind transitioned_kind,
1233 Register map_in_out, 1231 Register map_in_out,
1234 Register scratch, 1232 Register scratch,
1235 Label* no_map_match); 1233 Label* no_map_match);
1236 1234
1235 // Load the initial map for new Arrays from a JSFunction.
1236 void LoadInitialArrayMap(Register function_in,
1237 Register scratch,
1238 Register map_out,
1239 bool can_have_holes);
1240
1237 // Load the global function with the given index. 1241 // Load the global function with the given index.
1238 void LoadGlobalFunction(int index, Register function); 1242 void LoadGlobalFunction(int index, Register function);
1239 void LoadArrayFunction(Register function); 1243 void LoadArrayFunction(Register function);
1240 1244
1241 // Load the initial map from the global function. The registers 1245 // Load the initial map from the global function. The registers
1242 // function and map can be the same. 1246 // function and map can be the same.
1243 void LoadGlobalFunctionInitialMap(Register function, Register map); 1247 void LoadGlobalFunctionInitialMap(Register function, Register map);
1244 1248
1245 // --------------------------------------------------------------------------- 1249 // ---------------------------------------------------------------------------
1246 // Runtime calls 1250 // Runtime calls
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 masm->popfq(); \ 1612 masm->popfq(); \
1609 } \ 1613 } \
1610 masm-> 1614 masm->
1611 #else 1615 #else
1612 #define ACCESS_MASM(masm) masm-> 1616 #define ACCESS_MASM(masm) masm->
1613 #endif 1617 #endif
1614 1618
1615 } } // namespace v8::internal 1619 } } // namespace v8::internal
1616 1620
1617 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1621 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698