| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 Register scratch, | 79 Register scratch, |
| 80 SaveFPRegsMode save_fp); | 80 SaveFPRegsMode save_fp); |
| 81 | 81 |
| 82 template<typename LabelType> | 82 template<typename LabelType> |
| 83 void CheckPageFlag(Register object, | 83 void CheckPageFlag(Register object, |
| 84 Register scratch, | 84 Register scratch, |
| 85 MemoryChunk::MemoryChunkFlags flag, | 85 MemoryChunk::MemoryChunkFlags flag, |
| 86 Condition cc, | 86 Condition cc, |
| 87 LabelType* condition_met); | 87 LabelType* condition_met); |
| 88 | 88 |
| 89 template<typename LabelType> |
| 90 void InNewSpace(Register object, |
| 91 Register scratch, |
| 92 Condition cc, |
| 93 LabelType* condition_met); |
| 94 |
| 89 // Check if an object has a given incremental marking colour. Also uses ecx! | 95 // Check if an object has a given incremental marking colour. Also uses ecx! |
| 90 // The colour bits are found by splitting the address at the bit offset | 96 // The colour bits are found by splitting the address at the bit offset |
| 91 // indicated by the mask: bits that are zero in the mask are used for the | 97 // indicated by the mask: bits that are zero in the mask are used for the |
| 92 // address of the bitmap, and bits that are one in the mask are used for the | 98 // address of the bitmap, and bits that are one in the mask are used for the |
| 93 // index of the bit. | 99 // index of the bit. |
| 94 template <typename LabelType> | 100 template <typename LabelType> |
| 95 void HasColour(Register object, | 101 void HasColour(Register object, |
| 96 Register scratch0, | 102 Register scratch0, |
| 97 Register scratch1, | 103 Register scratch1, |
| 98 LabelType* has_colour, | 104 LabelType* has_colour, |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 } \ | 861 } \ |
| 856 masm-> | 862 masm-> |
| 857 #else | 863 #else |
| 858 #define ACCESS_MASM(masm) masm-> | 864 #define ACCESS_MASM(masm) masm-> |
| 859 #endif | 865 #endif |
| 860 | 866 |
| 861 | 867 |
| 862 } } // namespace v8::internal | 868 } } // namespace v8::internal |
| 863 | 869 |
| 864 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 870 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |