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

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

Issue 10824079: Use a special EnumLength field to indicate number of valid enum cache values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 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/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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 void ClampUint8(Register reg); 941 void ClampUint8(Register reg);
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);
952
953 template<typename Field>
954 void DecodeField(Register reg) {
955 static const int full_shift = Field::kShift + kSmiShift;
956 static const int low_mask = Field::kMask >> Field::kShift;
957 shr(reg, Immediate(full_shift));
958 and_(reg, Immediate(low_mask));
959 }
951 960
952 // 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.
953 void AbortIfNotNumber(Register object); 962 void AbortIfNotNumber(Register object);
954 963
955 // Abort execution if argument is a smi. Used in debug code. 964 // Abort execution if argument is a smi. Used in debug code.
956 void AbortIfSmi(Register object); 965 void AbortIfSmi(Register object);
957 966
958 // 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.
959 void AbortIfNotSmi(Register object); 968 void AbortIfNotSmi(Register object);
960 void AbortIfNotSmi(const Operand& object); 969 void AbortIfNotSmi(const Operand& object);
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 masm->popfd(); \ 1494 masm->popfd(); \
1486 } \ 1495 } \
1487 masm-> 1496 masm->
1488 #else 1497 #else
1489 #define ACCESS_MASM(masm) masm-> 1498 #define ACCESS_MASM(masm) masm->
1490 #endif 1499 #endif
1491 1500
1492 } } // namespace v8::internal 1501 } } // namespace v8::internal
1493 1502
1494 #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