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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1420 // HeapNumber utilities. | 1420 // HeapNumber utilities. |
1421 | 1421 |
1422 void JumpIfNotHeapNumber(Register object, | 1422 void JumpIfNotHeapNumber(Register object, |
1423 Register heap_number_map, | 1423 Register heap_number_map, |
1424 Register scratch, | 1424 Register scratch, |
1425 Label* on_not_heap_number); | 1425 Label* on_not_heap_number); |
1426 | 1426 |
1427 // ------------------------------------------------------------------------- | 1427 // ------------------------------------------------------------------------- |
1428 // String utilities. | 1428 // String utilities. |
1429 | 1429 |
| 1430 // Generate code to do a lookup in the number string cache. If the number in |
| 1431 // the register object is found in the cache the generated code falls through |
| 1432 // with the result in the result register. The object and the result register |
| 1433 // can be the same. If the number is not found in the cache the code jumps to |
| 1434 // the label not_found with only the content of register object unchanged. |
| 1435 void LookupNumberStringCache(Register object, |
| 1436 Register result, |
| 1437 Register scratch1, |
| 1438 Register scratch2, |
| 1439 Register scratch3, |
| 1440 Label* not_found); |
| 1441 |
1430 // Checks if both instance types are sequential ASCII strings and jumps to | 1442 // Checks if both instance types are sequential ASCII strings and jumps to |
1431 // label if either is not. | 1443 // label if either is not. |
1432 void JumpIfBothInstanceTypesAreNotSequentialAscii( | 1444 void JumpIfBothInstanceTypesAreNotSequentialAscii( |
1433 Register first_object_instance_type, | 1445 Register first_object_instance_type, |
1434 Register second_object_instance_type, | 1446 Register second_object_instance_type, |
1435 Register scratch1, | 1447 Register scratch1, |
1436 Register scratch2, | 1448 Register scratch2, |
1437 Label* failure); | 1449 Label* failure); |
1438 | 1450 |
1439 // Check if instance type is sequential ASCII string and jump to label if | 1451 // Check if instance type is sequential ASCII string and jump to label if |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1635 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1624 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1636 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1625 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1637 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1626 #else | 1638 #else |
1627 #define ACCESS_MASM(masm) masm-> | 1639 #define ACCESS_MASM(masm) masm-> |
1628 #endif | 1640 #endif |
1629 | 1641 |
1630 } } // namespace v8::internal | 1642 } } // namespace v8::internal |
1631 | 1643 |
1632 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1644 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |