| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 push(Operand(r13, index << kPointerSizeLog2)); | 56 push(Operand(r13, index << kPointerSizeLog2)); |
| 57 } | 57 } |
| 58 | 58 |
| 59 | 59 |
| 60 void MacroAssembler::CompareRoot(Register with, | 60 void MacroAssembler::CompareRoot(Register with, |
| 61 Heap::RootListIndex index) { | 61 Heap::RootListIndex index) { |
| 62 cmpq(with, Operand(r13, index << kPointerSizeLog2)); | 62 cmpq(with, Operand(r13, index << kPointerSizeLog2)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 |
| 66 void MacroAssembler::CompareRoot(Operand with, |
| 67 Heap::RootListIndex index) { |
| 68 LoadRoot(kScratchRegister, index); |
| 69 cmpq(with, kScratchRegister); |
| 70 } |
| 71 |
| 72 |
| 66 static void RecordWriteHelper(MacroAssembler* masm, | 73 static void RecordWriteHelper(MacroAssembler* masm, |
| 67 Register object, | 74 Register object, |
| 68 Register addr, | 75 Register addr, |
| 69 Register scratch) { | 76 Register scratch) { |
| 70 Label fast; | 77 Label fast; |
| 71 | 78 |
| 72 // Compute the page start address from the heap object pointer, and reuse | 79 // Compute the page start address from the heap object pointer, and reuse |
| 73 // the 'object' register for it. | 80 // the 'object' register for it. |
| 74 ASSERT(is_int32(~Page::kPageAlignmentMask)); | 81 ASSERT(is_int32(~Page::kPageAlignmentMask)); |
| 75 masm->and_(object, | 82 masm->and_(object, |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 // Indicate that code has changed. | 2177 // Indicate that code has changed. |
| 2171 CPU::FlushICache(address_, size_); | 2178 CPU::FlushICache(address_, size_); |
| 2172 | 2179 |
| 2173 // Check that the code was patched as expected. | 2180 // Check that the code was patched as expected. |
| 2174 ASSERT(masm_.pc_ == address_ + size_); | 2181 ASSERT(masm_.pc_ == address_ + size_); |
| 2175 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2182 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 2176 } | 2183 } |
| 2177 | 2184 |
| 2178 | 2185 |
| 2179 } } // namespace v8::internal | 2186 } } // namespace v8::internal |
| OLD | NEW |