| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 void DispatchMap(Register obj, | 1462 void DispatchMap(Register obj, |
| 1463 Register scratch, | 1463 Register scratch, |
| 1464 Handle<Map> map, | 1464 Handle<Map> map, |
| 1465 Handle<Code> success, | 1465 Handle<Code> success, |
| 1466 SmiCheckType smi_check_type); | 1466 SmiCheckType smi_check_type); |
| 1467 | 1467 |
| 1468 // Test the bitfield of the heap object map with mask and set the condition | 1468 // Test the bitfield of the heap object map with mask and set the condition |
| 1469 // flags. The object register is preserved. | 1469 // flags. The object register is preserved. |
| 1470 void TestMapBitfield(Register object, uint64_t mask); | 1470 void TestMapBitfield(Register object, uint64_t mask); |
| 1471 | 1471 |
| 1472 // Load the elements kind field of an object, and return it in the result | 1472 // Load the elements kind field from a map, and return it in the result |
| 1473 // register. | 1473 // register. |
| 1474 void LoadElementsKind(Register result, Register object); | 1474 void LoadElementsKindFromMap(Register result, Register map); |
| 1475 | 1475 |
| 1476 // Compare the object in a register to a value from the root list. | 1476 // Compare the object in a register to a value from the root list. |
| 1477 void CompareRoot(const Register& obj, Heap::RootListIndex index); | 1477 void CompareRoot(const Register& obj, Heap::RootListIndex index); |
| 1478 | 1478 |
| 1479 // Compare the object in a register to a value and jump if they are equal. | 1479 // Compare the object in a register to a value and jump if they are equal. |
| 1480 void JumpIfRoot(const Register& obj, | 1480 void JumpIfRoot(const Register& obj, |
| 1481 Heap::RootListIndex index, | 1481 Heap::RootListIndex index, |
| 1482 Label* if_equal); | 1482 Label* if_equal); |
| 1483 | 1483 |
| 1484 // Compare the object in a register to a value and jump if they are not equal. | 1484 // Compare the object in a register to a value and jump if they are not equal. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 // Test the bits of register defined by bit_pattern, and branch to | 1528 // Test the bits of register defined by bit_pattern, and branch to |
| 1529 // if_any_set, if_all_clear or fall_through accordingly. | 1529 // if_any_set, if_all_clear or fall_through accordingly. |
| 1530 void TestAndSplit(const Register& reg, | 1530 void TestAndSplit(const Register& reg, |
| 1531 uint64_t bit_pattern, | 1531 uint64_t bit_pattern, |
| 1532 Label* if_all_clear, | 1532 Label* if_all_clear, |
| 1533 Label* if_any_set, | 1533 Label* if_any_set, |
| 1534 Label* fall_through); | 1534 Label* fall_through); |
| 1535 | 1535 |
| 1536 // Check if a map for a JSObject indicates that the object has fast elements. | 1536 // Check if a map for a JSObject indicates that the object has fast elements. |
| 1537 // Jump to the specified label if it does not. | 1537 // Jump to the specified label if it does not. |
| 1538 void CheckFastElements(Register map, | 1538 void CheckFastElements(Register map, Register scratch, Label* fail); |
| 1539 Register scratch, | |
| 1540 Label* fail); | |
| 1541 | 1539 |
| 1542 // Check if a map for a JSObject indicates that the object can have both smi | 1540 // Check if a map for a JSObject indicates that the object can have both smi |
| 1543 // and HeapObject elements. Jump to the specified label if it does not. | 1541 // and HeapObject elements. Jump to the specified label if it does not. |
| 1544 void CheckFastObjectElements(Register map, | 1542 void CheckFastObjectElements(Register map, Register scratch, Label* fail); |
| 1545 Register scratch, | |
| 1546 Label* fail); | |
| 1547 | |
| 1548 // Check if a map for a JSObject indicates that the object has fast smi only | |
| 1549 // elements. Jump to the specified label if it does not. | |
| 1550 void CheckFastSmiElements(Register map, Register scratch, Label* fail); | |
| 1551 | 1543 |
| 1552 // Check to see if number can be stored as a double in FastDoubleElements. | 1544 // Check to see if number can be stored as a double in FastDoubleElements. |
| 1553 // If it can, store it at the index specified by key_reg in the array, | 1545 // If it can, store it at the index specified by key_reg in the array, |
| 1554 // otherwise jump to fail. | 1546 // otherwise jump to fail. |
| 1555 void StoreNumberToDoubleElements(Register value_reg, | 1547 void StoreNumberToDoubleElements(Register value_reg, |
| 1556 Register key_reg, | 1548 Register key_reg, |
| 1557 Register elements_reg, | 1549 Register elements_reg, |
| 1558 Register scratch1, | 1550 Register scratch1, |
| 1559 FPRegister fpscratch1, | 1551 FPRegister fpscratch1, |
| 1560 FPRegister fpscratch2, | 1552 FPRegister fpscratch2, |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2302 #error "Unsupported option" | 2294 #error "Unsupported option" |
| 2303 #define CODE_COVERAGE_STRINGIFY(x) #x | 2295 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2304 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2296 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2305 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2297 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2306 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2298 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2307 #else | 2299 #else |
| 2308 #define ACCESS_MASM(masm) masm-> | 2300 #define ACCESS_MASM(masm) masm-> |
| 2309 #endif | 2301 #endif |
| 2310 | 2302 |
| 2311 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2303 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |