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

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: u Created 8 years, 4 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
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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 void FCmp(); 938 void FCmp();
939 939
940 void ClampUint8(Register reg); 940 void ClampUint8(Register reg);
941 941
942 void ClampDoubleToUint8(XMMRegister input_reg, 942 void ClampDoubleToUint8(XMMRegister input_reg,
943 XMMRegister temp_xmm_reg, 943 XMMRegister temp_xmm_reg,
944 Register result_reg, 944 Register result_reg,
945 Register temp_reg); 945 Register temp_reg);
946 946
947 void LoadInstanceDescriptors(Register map, Register descriptors); 947 void LoadInstanceDescriptors(Register map, Register descriptors);
948 void EnumLength(Register dst, Register map);
949
950 template<typename Field>
951 void DecodeField(Register reg) {
952 static const int full_shift = Field::kShift + kSmiShift;
953 static const int low_mask = Field::kMask >> Field::kShift;
954 shr(reg, Immediate(full_shift));
955 and_(reg, Immediate(low_mask));
956 }
948 957
949 // Abort execution if argument is not a number. Used in debug code. 958 // Abort execution if argument is not a number. Used in debug code.
950 void AbortIfNotNumber(Register object); 959 void AbortIfNotNumber(Register object);
951 960
952 // Abort execution if argument is a smi. Used in debug code. 961 // Abort execution if argument is a smi. Used in debug code.
953 void AbortIfSmi(Register object); 962 void AbortIfSmi(Register object);
954 963
955 // Abort execution if argument is not a smi. Used in debug code. 964 // Abort execution if argument is not a smi. Used in debug code.
956 void AbortIfNotSmi(Register object); 965 void AbortIfNotSmi(Register object);
957 void AbortIfNotSmi(const Operand& object); 966 void AbortIfNotSmi(const Operand& object);
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 masm->popfd(); \ 1489 masm->popfd(); \
1481 } \ 1490 } \
1482 masm-> 1491 masm->
1483 #else 1492 #else
1484 #define ACCESS_MASM(masm) masm-> 1493 #define ACCESS_MASM(masm) masm->
1485 #endif 1494 #endif
1486 1495
1487 } } // namespace v8::internal 1496 } } // namespace v8::internal
1488 1497
1489 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1498 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« src/objects.h ('K') | « 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