| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 MacroAssembler(void* buffer, int size); | 59 MacroAssembler(void* buffer, int size); |
| 60 | 60 |
| 61 void LoadRoot(Register destination, Heap::RootListIndex index); | 61 void LoadRoot(Register destination, Heap::RootListIndex index); |
| 62 void CompareRoot(Register with, Heap::RootListIndex index); | 62 void CompareRoot(Register with, Heap::RootListIndex index); |
| 63 void CompareRoot(Operand with, Heap::RootListIndex index); | 63 void CompareRoot(Operand with, Heap::RootListIndex index); |
| 64 void PushRoot(Heap::RootListIndex index); | 64 void PushRoot(Heap::RootListIndex index); |
| 65 | 65 |
| 66 // --------------------------------------------------------------------------- | 66 // --------------------------------------------------------------------------- |
| 67 // GC Support | 67 // GC Support |
| 68 | 68 |
| 69 // Check if object is in new space. The condition cc can be equal or |
| 70 // not_equal. If it is equal a jump will be done if the object is on new |
| 71 // space. The register scratch can be object itself, but it will be clobbered. |
| 72 void InNewSpace(Register object, |
| 73 Register scratch, |
| 74 Condition cc, |
| 75 Label* branch); |
| 76 |
| 69 // Set the remembered set bit for [object+offset]. | 77 // Set the remembered set bit for [object+offset]. |
| 70 // object is the object being stored into, value is the object being stored. | 78 // object is the object being stored into, value is the object being stored. |
| 71 // If offset is zero, then the scratch register contains the array index into | 79 // If offset is zero, then the scratch register contains the array index into |
| 72 // the elements array represented as a Smi. | 80 // the elements array represented as a Smi. |
| 73 // All registers are clobbered by the operation. | 81 // All registers are clobbered by the operation. |
| 74 void RecordWrite(Register object, | 82 void RecordWrite(Register object, |
| 75 int offset, | 83 int offset, |
| 76 Register value, | 84 Register value, |
| 77 Register scratch); | 85 Register scratch); |
| 78 | 86 |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 } \ | 842 } \ |
| 835 masm-> | 843 masm-> |
| 836 #else | 844 #else |
| 837 #define ACCESS_MASM(masm) masm-> | 845 #define ACCESS_MASM(masm) masm-> |
| 838 #endif | 846 #endif |
| 839 | 847 |
| 840 | 848 |
| 841 } } // namespace v8::internal | 849 } } // namespace v8::internal |
| 842 | 850 |
| 843 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 851 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |