| 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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 void JumpIfNotSmi(Register value, | 1328 void JumpIfNotSmi(Register value, |
| 1329 Label* not_smi_label, | 1329 Label* not_smi_label, |
| 1330 Register scratch = at, | 1330 Register scratch = at, |
| 1331 BranchDelaySlot bd = PROTECT); | 1331 BranchDelaySlot bd = PROTECT); |
| 1332 | 1332 |
| 1333 // Jump if either of the registers contain a non-smi. | 1333 // Jump if either of the registers contain a non-smi. |
| 1334 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 1334 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
| 1335 // Jump if either of the registers contain a smi. | 1335 // Jump if either of the registers contain a smi. |
| 1336 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 1336 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
| 1337 | 1337 |
| 1338 // Abort execution if argument is a smi. Used in debug code. | 1338 // Abort execution if argument is a smi, enabled via --debug-code. |
| 1339 void AbortIfSmi(Register object); | 1339 void AssertNotSmi(Register object); |
| 1340 void AbortIfNotSmi(Register object); | 1340 void AssertSmi(Register object); |
| 1341 | 1341 |
| 1342 // Abort execution if argument is a string. Used in debug code. | 1342 // Abort execution if argument is not a string, enabled via --debug-code. |
| 1343 void AbortIfNotString(Register object); | 1343 void AssertString(Register object); |
| 1344 | 1344 |
| 1345 // Abort execution if argument is not the root value with the given index. | 1345 // Abort execution if argument is not the root value with the given index, |
| 1346 void AbortIfNotRootValue(Register src, | 1346 // enabled via --debug-code. |
| 1347 Heap::RootListIndex root_value_index, | 1347 void AssertRootValue(Register src, |
| 1348 const char* message); | 1348 Heap::RootListIndex root_value_index, |
| 1349 const char* message); |
| 1349 | 1350 |
| 1350 // --------------------------------------------------------------------------- | 1351 // --------------------------------------------------------------------------- |
| 1351 // HeapNumber utilities. | 1352 // HeapNumber utilities. |
| 1352 | 1353 |
| 1353 void JumpIfNotHeapNumber(Register object, | 1354 void JumpIfNotHeapNumber(Register object, |
| 1354 Register heap_number_map, | 1355 Register heap_number_map, |
| 1355 Register scratch, | 1356 Register scratch, |
| 1356 Label* on_not_heap_number); | 1357 Label* on_not_heap_number); |
| 1357 | 1358 |
| 1358 // ------------------------------------------------------------------------- | 1359 // ------------------------------------------------------------------------- |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1545 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1546 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1547 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1547 #else | 1548 #else |
| 1548 #define ACCESS_MASM(masm) masm-> | 1549 #define ACCESS_MASM(masm) masm-> |
| 1549 #endif | 1550 #endif |
| 1550 | 1551 |
| 1551 } } // namespace v8::internal | 1552 } } // namespace v8::internal |
| 1552 | 1553 |
| 1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1554 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |