| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 void LoadRoot(Register destination, Heap::RootListIndex index); | 72 void LoadRoot(Register destination, Heap::RootListIndex index); |
| 73 void CompareRoot(Register with, Heap::RootListIndex index); | 73 void CompareRoot(Register with, Heap::RootListIndex index); |
| 74 void CompareRoot(Operand with, Heap::RootListIndex index); | 74 void CompareRoot(Operand with, Heap::RootListIndex index); |
| 75 void PushRoot(Heap::RootListIndex index); | 75 void PushRoot(Heap::RootListIndex index); |
| 76 void StoreRoot(Register source, Heap::RootListIndex index); | 76 void StoreRoot(Register source, Heap::RootListIndex index); |
| 77 | 77 |
| 78 // --------------------------------------------------------------------------- | 78 // --------------------------------------------------------------------------- |
| 79 // GC Support | 79 // GC Support |
| 80 | 80 |
| 81 // Set the remebered set bit for an address which points into an | 81 // For page containing |object| mark region covering |addr| dirty. |
| 82 // object. RecordWriteHelper only works if the object is not in new | 82 // RecordWriteHelper only works if the object is not in new |
| 83 // space. | 83 // space. |
| 84 void RecordWriteHelper(Register object, | 84 void RecordWriteHelper(Register object, |
| 85 Register addr, | 85 Register addr, |
| 86 Register scratch); | 86 Register scratch); |
| 87 | 87 |
| 88 // Check if object is in new space. The condition cc can be equal or | 88 // Check if object is in new space. The condition cc can be equal or |
| 89 // not_equal. If it is equal a jump will be done if the object is on new | 89 // not_equal. If it is equal a jump will be done if the object is on new |
| 90 // space. The register scratch can be object itself, but it will be clobbered. | 90 // space. The register scratch can be object itself, but it will be clobbered. |
| 91 void InNewSpace(Register object, | 91 void InNewSpace(Register object, |
| 92 Register scratch, | 92 Register scratch, |
| 93 Condition cc, | 93 Condition cc, |
| 94 Label* branch); | 94 Label* branch); |
| 95 | 95 |
| 96 // Set the remembered set bit for [object+offset]. | 96 // For page containing |object| mark region covering [object+offset] dirty. |
| 97 // object is the object being stored into, value is the object being stored. | 97 // object is the object being stored into, value is the object being stored. |
| 98 // If offset is zero, then the scratch register contains the array index into | 98 // If offset is zero, then the scratch register contains the array index into |
| 99 // the elements array represented as a Smi. | 99 // the elements array represented as a Smi. |
| 100 // All registers are clobbered by the operation. | 100 // All registers are clobbered by the operation. |
| 101 void RecordWrite(Register object, | 101 void RecordWrite(Register object, |
| 102 int offset, | 102 int offset, |
| 103 Register value, | 103 Register value, |
| 104 Register scratch); | 104 Register scratch); |
| 105 | 105 |
| 106 // Set the remembered set bit for [object+offset]. | 106 // For page containing |object| mark region covering [object+offset] dirty. |
| 107 // The value is known to not be a smi. | 107 // The value is known to not be a smi. |
| 108 // object is the object being stored into, value is the object being stored. | 108 // object is the object being stored into, value is the object being stored. |
| 109 // If offset is zero, then the scratch register contains the array index into | 109 // If offset is zero, then the scratch register contains the array index into |
| 110 // the elements array represented as a Smi. | 110 // the elements array represented as a Smi. |
| 111 // All registers are clobbered by the operation. | 111 // All registers are clobbered by the operation. |
| 112 void RecordWriteNonSmi(Register object, | 112 void RecordWriteNonSmi(Register object, |
| 113 int offset, | 113 int offset, |
| 114 Register value, | 114 Register value, |
| 115 Register scratch); | 115 Register scratch); |
| 116 | 116 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 // Convert smi to 64-bit integer (sign extended if necessary). | 215 // Convert smi to 64-bit integer (sign extended if necessary). |
| 216 void SmiToInteger64(Register dst, Register src); | 216 void SmiToInteger64(Register dst, Register src); |
| 217 | 217 |
| 218 // Multiply a positive smi's integer value by a power of two. | 218 // Multiply a positive smi's integer value by a power of two. |
| 219 // Provides result as 64-bit integer value. | 219 // Provides result as 64-bit integer value. |
| 220 void PositiveSmiTimesPowerOfTwoToInteger64(Register dst, | 220 void PositiveSmiTimesPowerOfTwoToInteger64(Register dst, |
| 221 Register src, | 221 Register src, |
| 222 int power); | 222 int power); |
| 223 | 223 |
| 224 // Divide a positive smi's integer value by a power of two. |
| 225 // Provides result as 32-bit integer value. |
| 226 void PositiveSmiDivPowerOfTwoToInteger32(Register dst, |
| 227 Register src, |
| 228 int power); |
| 229 |
| 230 |
| 224 // Simple comparison of smis. | 231 // Simple comparison of smis. |
| 225 void SmiCompare(Register dst, Register src); | 232 void SmiCompare(Register dst, Register src); |
| 226 void SmiCompare(Register dst, Smi* src); | 233 void SmiCompare(Register dst, Smi* src); |
| 227 void SmiCompare(Register dst, const Operand& src); | 234 void SmiCompare(Register dst, const Operand& src); |
| 228 void SmiCompare(const Operand& dst, Register src); | 235 void SmiCompare(const Operand& dst, Register src); |
| 229 void SmiCompare(const Operand& dst, Smi* src); | 236 void SmiCompare(const Operand& dst, Smi* src); |
| 230 // Sets sign and zero flags depending on value of smi in register. | 237 // Sets sign and zero flags depending on value of smi in register. |
| 231 void SmiTest(Register src); | 238 void SmiTest(Register src); |
| 232 | 239 |
| 233 // Functions performing a check on a known or potential smi. Returns | 240 // Functions performing a check on a known or potential smi. Returns |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 } \ | 884 } \ |
| 878 masm-> | 885 masm-> |
| 879 #else | 886 #else |
| 880 #define ACCESS_MASM(masm) masm-> | 887 #define ACCESS_MASM(masm) masm-> |
| 881 #endif | 888 #endif |
| 882 | 889 |
| 883 | 890 |
| 884 } } // namespace v8::internal | 891 } } // namespace v8::internal |
| 885 | 892 |
| 886 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 893 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |