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 void RecordWriteHelper(Register object, |
| 70 Register addr, |
| 71 Register scratch); |
| 72 |
69 // Check if object is in new space. The condition cc can be equal or | 73 // 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 | 74 // 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. | 75 // space. The register scratch can be object itself, but it will be clobbered. |
72 void InNewSpace(Register object, | 76 void InNewSpace(Register object, |
73 Register scratch, | 77 Register scratch, |
74 Condition cc, | 78 Condition cc, |
75 Label* branch); | 79 Label* branch); |
76 | 80 |
77 // Set the remembered set bit for [object+offset]. | 81 // Set the remembered set bit for [object+offset]. |
78 // object is the object being stored into, value is the object being stored. | 82 // object is the object being stored into, value is the object being stored. |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 } \ | 853 } \ |
850 masm-> | 854 masm-> |
851 #else | 855 #else |
852 #define ACCESS_MASM(masm) masm-> | 856 #define ACCESS_MASM(masm) masm-> |
853 #endif | 857 #endif |
854 | 858 |
855 | 859 |
856 } } // namespace v8::internal | 860 } } // namespace v8::internal |
857 | 861 |
858 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 862 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |