OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 // Jump if either of the registers contain a non-smi. | 1194 // Jump if either of the registers contain a non-smi. |
1195 inline void JumpIfNotSmi(Register value, Label* not_smi_label) { | 1195 inline void JumpIfNotSmi(Register value, Label* not_smi_label) { |
1196 tst(value, Operand(kSmiTagMask)); | 1196 tst(value, Operand(kSmiTagMask)); |
1197 b(ne, not_smi_label); | 1197 b(ne, not_smi_label); |
1198 } | 1198 } |
1199 // Jump if either of the registers contain a non-smi. | 1199 // Jump if either of the registers contain a non-smi. |
1200 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 1200 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
1201 // Jump if either of the registers contain a smi. | 1201 // Jump if either of the registers contain a smi. |
1202 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 1202 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
1203 | 1203 |
1204 // Abort execution if argument is a smi. Used in debug code. | 1204 // Abort execution if argument is a smi, enabled via --debug-code. |
1205 void AbortIfSmi(Register object); | 1205 void AssertNotSmi(Register object); |
1206 void AbortIfNotSmi(Register object); | 1206 void AssertSmi(Register object); |
1207 | 1207 |
1208 // Abort execution if argument is a string. Used in debug code. | 1208 // Abort execution if argument is a string, enabled via --debug-code. |
1209 void AbortIfNotString(Register object); | 1209 void AssertString(Register object); |
1210 | 1210 |
1211 // Abort execution if argument is not the root value with the given index. | 1211 // Abort execution if argument is not the root value with the given index, |
1212 void AbortIfNotRootValue(Register src, | 1212 // enabled via --debug-code. |
1213 Heap::RootListIndex root_value_index, | 1213 void AssertRootValue(Register src, |
1214 const char* message); | 1214 Heap::RootListIndex root_value_index, |
| 1215 const char* message); |
1215 | 1216 |
1216 // --------------------------------------------------------------------------- | 1217 // --------------------------------------------------------------------------- |
1217 // HeapNumber utilities | 1218 // HeapNumber utilities |
1218 | 1219 |
1219 void JumpIfNotHeapNumber(Register object, | 1220 void JumpIfNotHeapNumber(Register object, |
1220 Register heap_number_map, | 1221 Register heap_number_map, |
1221 Register scratch, | 1222 Register scratch, |
1222 Label* on_not_heap_number); | 1223 Label* on_not_heap_number); |
1223 | 1224 |
1224 // --------------------------------------------------------------------------- | 1225 // --------------------------------------------------------------------------- |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1403 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1403 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1404 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1404 #else | 1405 #else |
1405 #define ACCESS_MASM(masm) masm-> | 1406 #define ACCESS_MASM(masm) masm-> |
1406 #endif | 1407 #endif |
1407 | 1408 |
1408 | 1409 |
1409 } } // namespace v8::internal | 1410 } } // namespace v8::internal |
1410 | 1411 |
1411 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1412 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |