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

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

Issue 205343013: Introduce andp, notp, orp and xorp for x64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 6 years, 9 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-codegen-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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 1020
1021 void LoadInstanceDescriptors(Register map, Register descriptors); 1021 void LoadInstanceDescriptors(Register map, Register descriptors);
1022 void EnumLength(Register dst, Register map); 1022 void EnumLength(Register dst, Register map);
1023 void NumberOfOwnDescriptors(Register dst, Register map); 1023 void NumberOfOwnDescriptors(Register dst, Register map);
1024 1024
1025 template<typename Field> 1025 template<typename Field>
1026 void DecodeField(Register reg) { 1026 void DecodeField(Register reg) {
1027 static const int shift = Field::kShift + kSmiShift; 1027 static const int shift = Field::kShift + kSmiShift;
1028 static const int mask = Field::kMask >> Field::kShift; 1028 static const int mask = Field::kMask >> Field::kShift;
1029 shr(reg, Immediate(shift)); 1029 shr(reg, Immediate(shift));
1030 and_(reg, Immediate(mask)); 1030 andp(reg, Immediate(mask));
1031 shl(reg, Immediate(kSmiShift)); 1031 shl(reg, Immediate(kSmiShift));
1032 } 1032 }
1033 1033
1034 // Abort execution if argument is not a number, enabled via --debug-code. 1034 // Abort execution if argument is not a number, enabled via --debug-code.
1035 void AssertNumber(Register object); 1035 void AssertNumber(Register object);
1036 1036
1037 // Abort execution if argument is a smi, enabled via --debug-code. 1037 // Abort execution if argument is a smi, enabled via --debug-code.
1038 void AssertNotSmi(Register object); 1038 void AssertNotSmi(Register object);
1039 1039
1040 // Abort execution if argument is not a smi, enabled via --debug-code. 1040 // Abort execution if argument is not a smi, enabled via --debug-code.
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 masm->popfq(); \ 1619 masm->popfq(); \
1620 } \ 1620 } \
1621 masm-> 1621 masm->
1622 #else 1622 #else
1623 #define ACCESS_MASM(masm) masm-> 1623 #define ACCESS_MASM(masm) masm->
1624 #endif 1624 #endif
1625 1625
1626 } } // namespace v8::internal 1626 } } // namespace v8::internal
1627 1627
1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698