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

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

Issue 11028027: Revert trunk to bleeding_edge at r12484 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 942
943 void ClampDoubleToUint8(XMMRegister input_reg, 943 void ClampDoubleToUint8(XMMRegister input_reg,
944 XMMRegister temp_xmm_reg, 944 XMMRegister temp_xmm_reg,
945 Register result_reg, 945 Register result_reg,
946 Register temp_reg); 946 Register temp_reg);
947 947
948 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch); 948 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch);
949 949
950 void LoadInstanceDescriptors(Register map, Register descriptors); 950 void LoadInstanceDescriptors(Register map, Register descriptors);
951 void EnumLength(Register dst, Register map); 951 void EnumLength(Register dst, Register map);
952 void NumberOfOwnDescriptors(Register dst, Register map);
953 952
954 template<typename Field> 953 template<typename Field>
955 void DecodeField(Register reg) { 954 void DecodeField(Register reg) {
956 static const int shift = Field::kShift + kSmiShift; 955 static const int full_shift = Field::kShift + kSmiShift;
957 static const int mask = Field::kMask >> Field::kShift; 956 static const int low_mask = Field::kMask >> Field::kShift;
958 shr(reg, Immediate(shift)); 957 shr(reg, Immediate(full_shift));
959 and_(reg, Immediate(mask)); 958 and_(reg, Immediate(low_mask));
960 shl(reg, Immediate(kSmiShift));
961 } 959 }
962 960
963 // Abort execution if argument is not a number. Used in debug code. 961 // Abort execution if argument is not a number. Used in debug code.
964 void AbortIfNotNumber(Register object); 962 void AbortIfNotNumber(Register object);
965 963
966 // Abort execution if argument is a smi. Used in debug code. 964 // Abort execution if argument is a smi. Used in debug code.
967 void AbortIfSmi(Register object); 965 void AbortIfSmi(Register object);
968 966
969 // Abort execution if argument is not a smi. Used in debug code. 967 // Abort execution if argument is not a smi. Used in debug code.
970 void AbortIfNotSmi(Register object); 968 void AbortIfNotSmi(Register object);
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 masm->popfd(); \ 1494 masm->popfd(); \
1497 } \ 1495 } \
1498 masm-> 1496 masm->
1499 #else 1497 #else
1500 #define ACCESS_MASM(masm) masm-> 1498 #define ACCESS_MASM(masm) masm->
1501 #endif 1499 #endif
1502 1500
1503 } } // namespace v8::internal 1501 } } // namespace v8::internal
1504 1502
1505 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1503 #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