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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 mov(reg, Operand(reg, ASR, kSmiTagSize)); | 734 mov(reg, Operand(reg, ASR, kSmiTagSize)); |
735 } | 735 } |
736 | 736 |
737 // Jump if either of the registers contain a non-smi. | 737 // Jump if either of the registers contain a non-smi. |
738 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 738 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
739 // Jump if either of the registers contain a smi. | 739 // Jump if either of the registers contain a smi. |
740 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 740 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
741 | 741 |
742 // Abort execution if argument is a smi. Used in debug code. | 742 // Abort execution if argument is a smi. Used in debug code. |
743 void AbortIfSmi(Register object); | 743 void AbortIfSmi(Register object); |
| 744 void AbortIfNotSmi(Register object); |
744 | 745 |
745 // --------------------------------------------------------------------------- | 746 // --------------------------------------------------------------------------- |
746 // String utilities | 747 // String utilities |
747 | 748 |
748 // Checks if both objects are sequential ASCII strings and jumps to label | 749 // Checks if both objects are sequential ASCII strings and jumps to label |
749 // if either is not. Assumes that neither object is a smi. | 750 // if either is not. Assumes that neither object is a smi. |
750 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1, | 751 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1, |
751 Register object2, | 752 Register object2, |
752 Register scratch1, | 753 Register scratch1, |
753 Register scratch2, | 754 Register scratch2, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 876 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
876 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 877 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
877 #else | 878 #else |
878 #define ACCESS_MASM(masm) masm-> | 879 #define ACCESS_MASM(masm) masm-> |
879 #endif | 880 #endif |
880 | 881 |
881 | 882 |
882 } } // namespace v8::internal | 883 } } // namespace v8::internal |
883 | 884 |
884 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 885 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |