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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 } | 784 } |
785 // Jump if either of the registers contain a non-smi. | 785 // Jump if either of the registers contain a non-smi. |
786 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 786 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
787 // Jump if either of the registers contain a smi. | 787 // Jump if either of the registers contain a smi. |
788 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 788 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
789 | 789 |
790 // Abort execution if argument is a smi. Used in debug code. | 790 // Abort execution if argument is a smi. Used in debug code. |
791 void AbortIfSmi(Register object); | 791 void AbortIfSmi(Register object); |
792 void AbortIfNotSmi(Register object); | 792 void AbortIfNotSmi(Register object); |
793 | 793 |
| 794 // Abort execution if argument is a string. Used in debug code. |
| 795 void AbortIfNotString(Register object); |
| 796 |
794 // Abort execution if argument is not the root value with the given index. | 797 // Abort execution if argument is not the root value with the given index. |
795 void AbortIfNotRootValue(Register src, | 798 void AbortIfNotRootValue(Register src, |
796 Heap::RootListIndex root_value_index, | 799 Heap::RootListIndex root_value_index, |
797 const char* message); | 800 const char* message); |
798 | 801 |
799 // --------------------------------------------------------------------------- | 802 // --------------------------------------------------------------------------- |
800 // HeapNumber utilities | 803 // HeapNumber utilities |
801 | 804 |
802 void JumpIfNotHeapNumber(Register object, | 805 void JumpIfNotHeapNumber(Register object, |
803 Register heap_number_map, | 806 Register heap_number_map, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 944 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
942 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 945 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
943 #else | 946 #else |
944 #define ACCESS_MASM(masm) masm-> | 947 #define ACCESS_MASM(masm) masm-> |
945 #endif | 948 #endif |
946 | 949 |
947 | 950 |
948 } } // namespace v8::internal | 951 } } // namespace v8::internal |
949 | 952 |
950 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 953 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |