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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 (lhs_.is(r1) && rhs_.is(r0))); | 662 (lhs_.is(r1) && rhs_.is(r0))); |
663 // Encode the parameters in a unique 18 bit value. | 663 // Encode the parameters in a unique 18 bit value. |
664 return OpBits::encode(op_) | 664 return OpBits::encode(op_) |
665 | ModeBits::encode(mode_) | 665 | ModeBits::encode(mode_) |
666 | KnownIntBits::encode(MinorKeyForKnownInt()) | 666 | KnownIntBits::encode(MinorKeyForKnownInt()) |
667 | TypeInfoBits::encode(runtime_operands_type_) | 667 | TypeInfoBits::encode(runtime_operands_type_) |
668 | RegisterBits::encode(lhs_.is(r0)); | 668 | RegisterBits::encode(lhs_.is(r0)); |
669 } | 669 } |
670 | 670 |
671 void Generate(MacroAssembler* masm); | 671 void Generate(MacroAssembler* masm); |
672 void HandleNonSmiBitwiseOp(MacroAssembler* masm, Register lhs, Register rhs); | 672 void HandleNonSmiBitwiseOp(MacroAssembler* masm, |
| 673 Register lhs, |
| 674 Register rhs); |
673 void HandleBinaryOpSlowCases(MacroAssembler* masm, | 675 void HandleBinaryOpSlowCases(MacroAssembler* masm, |
674 Label* not_smi, | 676 Label* not_smi, |
675 Register lhs, | 677 Register lhs, |
676 Register rhs, | 678 Register rhs, |
677 const Builtins::JavaScript& builtin); | 679 const Builtins::JavaScript& builtin); |
678 void GenerateTypeTransition(MacroAssembler* masm); | 680 void GenerateTypeTransition(MacroAssembler* masm); |
679 | 681 |
680 static bool RhsIsOneWeWantToOptimizeFor(Token::Value op, int constant_rhs) { | 682 static bool RhsIsOneWeWantToOptimizeFor(Token::Value op, int constant_rhs) { |
681 if (constant_rhs == CodeGenerator::kUnknownIntValue) return false; | 683 if (constant_rhs == CodeGenerator::kUnknownIntValue) return false; |
682 if (op == Token::DIV) return constant_rhs >= 2 && constant_rhs <= 3; | 684 if (op == Token::DIV) return constant_rhs >= 2 && constant_rhs <= 3; |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 return ObjectBits::encode(object_.code()) | | 986 return ObjectBits::encode(object_.code()) | |
985 OffsetBits::encode(offset_.code()) | | 987 OffsetBits::encode(offset_.code()) | |
986 ScratchBits::encode(scratch_.code()); | 988 ScratchBits::encode(scratch_.code()); |
987 } | 989 } |
988 }; | 990 }; |
989 | 991 |
990 | 992 |
991 } } // namespace v8::internal | 993 } } // namespace v8::internal |
992 | 994 |
993 #endif // V8_ARM_CODEGEN_ARM_H_ | 995 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |