| 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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 void LoadAllocationTopHelper(Register result, | 1499 void LoadAllocationTopHelper(Register result, |
| 1500 Register scratch, | 1500 Register scratch, |
| 1501 AllocationFlags flags); | 1501 AllocationFlags flags); |
| 1502 | 1502 |
| 1503 // Update allocation top with value in result_end register. | 1503 // Update allocation top with value in result_end register. |
| 1504 // If scratch is valid, it contains the address of the allocation top. | 1504 // If scratch is valid, it contains the address of the allocation top. |
| 1505 void UpdateAllocationTopHelper(Register result_end, | 1505 void UpdateAllocationTopHelper(Register result_end, |
| 1506 Register scratch, | 1506 Register scratch, |
| 1507 AllocationFlags flags); | 1507 AllocationFlags flags); |
| 1508 | 1508 |
| 1509 // Helper for PopHandleScope. Allowed to perform a GC and returns | |
| 1510 // NULL if gc_allowed. Does not perform a GC if !gc_allowed, and | |
| 1511 // possibly returns a failure object indicating an allocation failure. | |
| 1512 Object* PopHandleScopeHelper(Register saved, | |
| 1513 Register scratch, | |
| 1514 bool gc_allowed); | |
| 1515 | |
| 1516 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1509 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
| 1517 void InNewSpace(Register object, | 1510 void InNewSpace(Register object, |
| 1518 Register scratch, | 1511 Register scratch, |
| 1519 Condition cc, | 1512 Condition cc, |
| 1520 Label* branch, | 1513 Label* branch, |
| 1521 Label::Distance distance = Label::kFar); | 1514 Label::Distance distance = Label::kFar); |
| 1522 | 1515 |
| 1523 // Helper for finding the mark bits for an address. Afterwards, the | 1516 // Helper for finding the mark bits for an address. Afterwards, the |
| 1524 // bitmap register points at the word with the mark bits and the mask | 1517 // bitmap register points at the word with the mark bits and the mask |
| 1525 // the position of the first bit. Uses rcx as scratch and leaves addr_reg | 1518 // the position of the first bit. Uses rcx as scratch and leaves addr_reg |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 masm->popfq(); \ | 1617 masm->popfq(); \ |
| 1625 } \ | 1618 } \ |
| 1626 masm-> | 1619 masm-> |
| 1627 #else | 1620 #else |
| 1628 #define ACCESS_MASM(masm) masm-> | 1621 #define ACCESS_MASM(masm) masm-> |
| 1629 #endif | 1622 #endif |
| 1630 | 1623 |
| 1631 } } // namespace v8::internal | 1624 } } // namespace v8::internal |
| 1632 | 1625 |
| 1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1626 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |