OLD | NEW |
1 // Copyright 2010 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 2639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2651 CPU::FlushICache(address_, size_); | 2651 CPU::FlushICache(address_, size_); |
2652 | 2652 |
2653 // Check that the code was patched as expected. | 2653 // Check that the code was patched as expected. |
2654 ASSERT(masm_.pc_ == address_ + size_); | 2654 ASSERT(masm_.pc_ == address_ + size_); |
2655 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2655 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
2656 } | 2656 } |
2657 | 2657 |
2658 } } // namespace v8::internal | 2658 } } // namespace v8::internal |
2659 | 2659 |
2660 #endif // V8_TARGET_ARCH_X64 | 2660 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |