| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 // Minor key encoding in 17 bits TTNNNFRAOOOOOOOMM. | 145 // Minor key encoding in 17 bits TTNNNFRAOOOOOOOMM. |
| 146 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; | 146 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; |
| 147 class OpBits: public BitField<Token::Value, 2, 7> {}; | 147 class OpBits: public BitField<Token::Value, 2, 7> {}; |
| 148 class ArgsInRegistersBits: public BitField<bool, 9, 1> {}; | 148 class ArgsInRegistersBits: public BitField<bool, 9, 1> {}; |
| 149 class ArgsReversedBits: public BitField<bool, 10, 1> {}; | 149 class ArgsReversedBits: public BitField<bool, 10, 1> {}; |
| 150 class FlagBits: public BitField<GenericBinaryFlags, 11, 1> {}; | 150 class FlagBits: public BitField<GenericBinaryFlags, 11, 1> {}; |
| 151 class StaticTypeInfoBits: public BitField<int, 12, 3> {}; | 151 class StaticTypeInfoBits: public BitField<int, 12, 3> {}; |
| 152 class RuntimeTypeInfoBits: public BitField<BinaryOpIC::TypeInfo, 15, 2> {}; | 152 class RuntimeTypeInfoBits: public BitField<BinaryOpIC::TypeInfo, 15, 3> {}; |
| 153 | 153 |
| 154 Major MajorKey() { return GenericBinaryOp; } | 154 Major MajorKey() { return GenericBinaryOp; } |
| 155 int MinorKey() { | 155 int MinorKey() { |
| 156 // Encode the parameters in a unique 18 bit value. | 156 // Encode the parameters in a unique 18 bit value. |
| 157 return OpBits::encode(op_) | 157 return OpBits::encode(op_) |
| 158 | ModeBits::encode(mode_) | 158 | ModeBits::encode(mode_) |
| 159 | FlagBits::encode(flags_) | 159 | FlagBits::encode(flags_) |
| 160 | ArgsInRegistersBits::encode(args_in_registers_) | 160 | ArgsInRegistersBits::encode(args_in_registers_) |
| 161 | ArgsReversedBits::encode(args_reversed_) | 161 | ArgsReversedBits::encode(args_reversed_) |
| 162 | StaticTypeInfoBits::encode( | 162 | StaticTypeInfoBits::encode( |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 return ObjectBits::encode(object_.code()) | | 380 return ObjectBits::encode(object_.code()) | |
| 381 AddressBits::encode(addr_.code()) | | 381 AddressBits::encode(addr_.code()) | |
| 382 ScratchBits::encode(scratch_.code()); | 382 ScratchBits::encode(scratch_.code()); |
| 383 } | 383 } |
| 384 }; | 384 }; |
| 385 | 385 |
| 386 | 386 |
| 387 } } // namespace v8::internal | 387 } } // namespace v8::internal |
| 388 | 388 |
| 389 #endif // V8_X64_CODE_STUBS_X64_H_ | 389 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |