OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 // Smi utilities | 666 // Smi utilities |
667 | 667 |
668 // Jump if either of the registers contain a non-smi. | 668 // Jump if either of the registers contain a non-smi. |
669 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 669 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
670 // Jump if either of the registers contain a smi. | 670 // Jump if either of the registers contain a smi. |
671 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 671 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
672 | 672 |
673 // Abort execution if argument is a smi. Used in debug code. | 673 // Abort execution if argument is a smi. Used in debug code. |
674 void AbortIfSmi(Register object); | 674 void AbortIfSmi(Register object); |
675 | 675 |
| 676 // Abort execution if argument is a string. Used in debug code. |
| 677 void AbortIfNotString(Register object); |
| 678 |
676 // --------------------------------------------------------------------------- | 679 // --------------------------------------------------------------------------- |
677 // String utilities | 680 // String utilities |
678 | 681 |
679 // Checks if both objects are sequential ASCII strings and jumps to label | 682 // Checks if both objects are sequential ASCII strings and jumps to label |
680 // if either is not. Assumes that neither object is a smi. | 683 // if either is not. Assumes that neither object is a smi. |
681 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1, | 684 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1, |
682 Register object2, | 685 Register object2, |
683 Register scratch1, | 686 Register scratch1, |
684 Register scratch2, | 687 Register scratch2, |
685 Label* failure); | 688 Label* failure); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 788 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
786 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 789 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
787 #else | 790 #else |
788 #define ACCESS_MASM(masm) masm-> | 791 #define ACCESS_MASM(masm) masm-> |
789 #endif | 792 #endif |
790 | 793 |
791 | 794 |
792 } } // namespace v8::internal | 795 } } // namespace v8::internal |
793 | 796 |
794 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 797 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |